diff options
| author | Julian Blake Kongslie | 2021-03-23 22:23:45 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2021-03-23 22:23:45 -0700 |
| commit | e13c73e76e2c94ee680f49e4ff34de97b72ecfa8 (patch) | |
| tree | a252cb8a96bccbeb304661593f96d1d1ac95fa67 | |
| parent | Move conditional from init.bat to build.bat; easier to do a clean (diff) | |
| download | toycpu-e13c73e76e2c94ee680f49e4ff34de97b72ecfa8.tar.xz | |
Clean before building.
Diffstat (limited to '')
| -rw-r--r-- | build.bat | 2 | ||||
| -rw-r--r-- | clean.bat | 1 | ||||
| -rw-r--r-- | clean.tcl | 3 | ||||
| -rw-r--r-- | init.bat | 4 |
4 files changed, 10 insertions, 0 deletions
| @@ -1,5 +1,7 @@ | |||
| 1 | if not exist toycpu.qpf ( | 1 | if not exist toycpu.qpf ( |
| 2 | call init.bat | 2 | call init.bat |
| 3 | ) else ( | ||
| 4 | call clean.bat | ||
| 3 | ) | 5 | ) |
| 4 | 6 | ||
| 5 | quartus_sh.exe --flow compile toycpu | 7 | quartus_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 @@ | |||
| 1 | project_open toycpu -revision toycpu | ||
| 2 | |||
| 3 | project_clean -revision toycpu | ||
| @@ -1 +1,5 @@ | |||
| 1 | if exist toycpu.qpf ( | ||
| 2 | call clean.bat | ||
| 3 | ) | ||
| 4 | |||
| 1 | quartus_sh.exe -t init.tcl | 5 | quartus_sh.exe -t init.tcl |
