Files
lowobservable.coax/interface2/rtl/Makefile
Andrew Kay 9dd8d37ef5 wip
2020-06-16 16:53:53 -05:00

26 lines
409 B
Makefile

YOSYS ?= yosys
NEXTPNR ?= nextpnr-ice40
ICEPACK ?= icepack
TINYPROG ?= tinyprog
all: top.bin
top.json: top.v coax_rx_bit_timer.v
prog: top.bin
$(TINYPROG) -p top.bin
clean:
rm -f *.json *.asc *.bin
%.json:
$(YOSYS) -p 'synth_ice40 -top top -json $@' $^
%.asc: %.json pins.pcf
$(NEXTPNR) --lp8k --package cm81 --json $< --pcf pins.pcf --asc $@
%.bin: %.asc
$(ICEPACK) $< $@
.PHONY: all prog clean