From e37b995f54bc922346bc9779558af732047b41d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Stensg=C3=A5rd?= Date: Thu, 17 Apr 2025 21:18:27 +0200 Subject: uart_benchmark: transmit U at 12 MBd --- uart_benchmark/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 uart_benchmark/Makefile (limited to 'uart_benchmark/Makefile') diff --git a/uart_benchmark/Makefile b/uart_benchmark/Makefile new file mode 100644 index 0000000..1afafb7 --- /dev/null +++ b/uart_benchmark/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 -- cgit v1.2.3