diff options
author | Pavel V. Shatov (Meister) <meisterpaul1@yandex.ru> | 2021-12-20 13:03:52 +0300 |
---|---|---|
committer | Pavel V. Shatov (Meister) <meisterpaul1@yandex.ru> | 2021-12-20 13:07:19 +0300 |
commit | 6d9bf8ee598da6720b6eaa1febc9e7f31c5ab2f2 (patch) | |
tree | 21b3b879e801ba379efb62c313bf7d94e1c4fd8a | |
parent | 8a4d32c458814cb4561fd2ce7788b78225ff2a65 (diff) |
Makefile to build the MKM firmware. Build tested with Yosys 0.9, note that
version 0.7 *which is shipped with Ubuntu 18.04) doesn't work.
-rw-r--r-- | mkm_refdes/src/Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mkm_refdes/src/Makefile b/mkm_refdes/src/Makefile new file mode 100644 index 0000000..304e598 --- /dev/null +++ b/mkm_refdes/src/Makefile @@ -0,0 +1,10 @@ +filename = mkm_refdes +pcf_file = $(filename).pcf + +build: + yosys -p "synth_ice40 -blif $(filename).blif" $(filename).v + arachne-pnr -d 5k -P sg48 -p $(pcf_file) $(filename).blif -o $(filename).asc + icepack $(filename).asc $(filename).bin + +clean: + rm -rf $(filename).blif $(filename).asc $(filename).bin |