aboutsummaryrefslogtreecommitdiffstats
path: root/atk16_fpga/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'atk16_fpga/Makefile')
-rw-r--r--atk16_fpga/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/atk16_fpga/Makefile b/atk16_fpga/Makefile
new file mode 100644
index 0000000..cada068
--- /dev/null
+++ b/atk16_fpga/Makefile
@@ -0,0 +1,24 @@
+BIN ?= program.bin
+
+hardware.bin: top.v
+ apio verify
+ apio test
+ apio build
+
+.PHONY: hw
+hw: hardware.bin
+ apio upload
+
+.PHONY: sw
+sw: $(BIN)
+ iceprogduino -w -o 1M $(BIN)
+
+.PHONY: graph
+graph:
+ yosys -f verilog -p "show -format dot -colors 1 -prefix hardware top" -q top.v
+ dot -Tsvg hardware.dot -o hardware.svg
+ open -a LibreWolf hardware.svg
+
+.PHONY: clean
+clean:
+ apio clean