From 2843105739db84851c3e9d2436c2c3c2c0563abf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Stensg=C3=A5rd?= Date: Wed, 16 Jul 2025 22:44:32 +0200 Subject: filter: transmit 16000 Hz signed 8 bit PCM over UART --- filter/Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 filter/Makefile (limited to 'filter/Makefile') diff --git a/filter/Makefile b/filter/Makefile new file mode 100644 index 0000000..195fcbc --- /dev/null +++ b/filter/Makefile @@ -0,0 +1,27 @@ +TOP = top +VS = top.v ../cocotb_try/cic3_pdm.v + +all: check top.bin + +check: + verilator --lint-only --top $(TOP) $(VS) + +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: $(VS) + yosys -q -p "synth_ice40 -json top.json -top $(TOP)" $(VS) -- cgit v1.2.3