summaryrefslogtreecommitdiff
path: root/uart_benchmark_3_megabaud/Makefile
diff options
context:
space:
mode:
authorMartin Stensgård <mastensg@mastensg.net>2025-04-17 21:29:40 +0200
committerMartin Stensgård <mastensg@mastensg.net>2025-04-17 21:29:40 +0200
commit044e0b10a345f85ae3d8a94dc29956511f3e12bf (patch)
tree07321bcfaa3b4ec99d7e4a440c4b3f4720e7ca24 /uart_benchmark_3_megabaud/Makefile
parente37b995f54bc922346bc9779558af732047b41d6 (diff)
uart_benchmark_3_megabaud: transmit U at pi's fastest rate
Diffstat (limited to 'uart_benchmark_3_megabaud/Makefile')
-rw-r--r--uart_benchmark_3_megabaud/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/uart_benchmark_3_megabaud/Makefile b/uart_benchmark_3_megabaud/Makefile
new file mode 100644
index 0000000..1afafb7
--- /dev/null
+++ b/uart_benchmark_3_megabaud/Makefile
@@ -0,0 +1,23 @@
+TOP = top
+
+all: check top.bin
+
+check:
+ verilator --lint-only --top $(TOP) top.v
+
+clean:
+ rm -f top.asc top.bin top.json
+
+load: all
+ iceprog top.bin
+
+.PHONY: all check clean 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