diff options
author | Martin Stensgård <mastensg@mastensg.net> | 2025-07-16 21:32:10 +0200 |
---|---|---|
committer | Martin Stensgård <mastensg@mastensg.net> | 2025-07-16 21:32:10 +0200 |
commit | 7410377b0cecf00a38b53a073d2ca0edb424d4e2 (patch) | |
tree | 8220ae351ea6821fe9fb7b2386792c8770826883 /record/Makefile | |
parent | 994608b15b70720c4c2b5f41095b6fe92dfb8bad (diff) |
move top -> record
Diffstat (limited to 'record/Makefile')
-rw-r--r-- | record/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/record/Makefile b/record/Makefile new file mode 100644 index 0000000..493a2d2 --- /dev/null +++ b/record/Makefile @@ -0,0 +1,26 @@ +TOP = top + +all: check top.bin + +check: + verilator --lint-only --top $(TOP) top.v + +clean: + rm -f top.asc top.bin top.json + +gui: + nextpnr-ice40 --hx1k --package tq144 --json top.json --pcf top.pcf --asc top.asc --top $(TOP) --gui + +load: all + iceprog top.bin + +.PHONY: all check clean gui load + +top.asc: top.json top.pcf + nextpnr-ice40 --hx1k --package tq144 --json top.json --pcf top.pcf --asc top.asc --top $(TOP) + +top.bin: top.asc + icepack top.asc top.bin + +top.json: top.v + yosys -q -p "synth_ice40 -json top.json -top $(TOP)" top.v |