summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.bat2
-rw-r--r--clean.bat1
-rw-r--r--clean.tcl3
-rw-r--r--init.bat4
4 files changed, 10 insertions, 0 deletions
diff --git a/build.bat b/build.bat
index 15044da..0a42672 100644
--- a/build.bat
+++ b/build.bat
@@ -1,5 +1,7 @@
1if not exist toycpu.qpf ( 1if not exist toycpu.qpf (
2 call init.bat 2 call init.bat
3) else (
4 call clean.bat
3) 5)
4 6
5quartus_sh.exe --flow compile toycpu 7quartus_sh.exe --flow compile toycpu
diff --git a/clean.bat b/clean.bat
new file mode 100644
index 0000000..6870b7a
--- /dev/null
+++ b/clean.bat
@@ -0,0 +1 @@
quartus_sh -t clean.tcl
diff --git a/clean.tcl b/clean.tcl
new file mode 100644
index 0000000..eeadcb7
--- /dev/null
+++ b/clean.tcl
@@ -0,0 +1,3 @@
1project_open toycpu -revision toycpu
2
3project_clean -revision toycpu
diff --git a/init.bat b/init.bat
index dc1d804..526f8ea 100644
--- a/init.bat
+++ b/init.bat
@@ -1 +1,5 @@
1if exist toycpu.qpf (
2 call clean.bat
3)
4
1quartus_sh.exe -t init.tcl 5quartus_sh.exe -t init.tcl