blob: 6954f527c4fbc03eaa2b757fe1300adbc8c4b5f2 [file] [log] [blame]
PROJ=morse
all: ${PROJ}.bit
%.json: %.v
yosys -p "synth_ecp5 -noccu2 -nomux -nodram -json $@" $<
%_out.config: %.json
nextpnr-ecp5 --json $< --textcfg $@ --85k --package CSFBGA285
%.bit: %_out.config
ecppack $< $@
clean:
rm *.bit *.svf *_out.config *.json
prog: ${PROJ}.bit
tinyprog -p $<
.PHONY: clean