all: leds.bin # Synthesize leds.json: leds.vhd yosys -m ghdl -p 'ghdl leds.vhd -e leds; synth_ice40 -json leds.json' # Place and route leds.asc: leds.json nextpnr-ice40 --up5k --pcf leds.pcf --json leds.json --asc leds.asc # Bitstream generation leds.bin: leds.asc icepack leds.asc leds.bin # Configure the FPGA prog: leds.bin iceprog leds.bin # Clean: clean: rm -f *.json *.asc *.bin .PHONY: all prog clean