From bb6be8d6bf84071ad04247163932fecff500367e Mon Sep 17 00:00:00 2001 From: Hirosh Dabui Date: Tue, 11 Feb 2020 20:15:16 +0100 Subject: ported fpga fun music examples to iceFun. iceFun has built-in speakers. --- music/fpga4fun/high_speed_pursuit/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 music/fpga4fun/high_speed_pursuit/Makefile (limited to 'music/fpga4fun/high_speed_pursuit/Makefile') diff --git a/music/fpga4fun/high_speed_pursuit/Makefile b/music/fpga4fun/high_speed_pursuit/Makefile new file mode 100644 index 0000000..52d9869 --- /dev/null +++ b/music/fpga4fun/high_speed_pursuit/Makefile @@ -0,0 +1,21 @@ +# Project setup +PROJ = top + +# Files +FILES = top.v + +.PHONY: iceFUN clean burn + +iceFUN: + # synthesize using Yosys + yosys -p "synth_ice40 -top top -json $(PROJ).json" $(FILES) + # Place and route using nextpnr + nextpnr-ice40 -r --hx8k --json $(PROJ).json --package cb132 --asc $(PROJ).asc --opt-timing --pcf iceFUN.pcf + # Convert to bitstream using IcePack + icepack $(PROJ).asc $(PROJ).bin + +burn: + iceFUNprog $(PROJ).bin + +clean: + rm -f *.asc *.bin *.blif *.json -- cgit v1.2.3