Files
lowobservable.coax/interface2/rtl/Makefile
2020-07-09 07:50:24 -05:00

26 lines
469 B
Makefile

YOSYS ?= yosys
NEXTPNR ?= nextpnr-ice40
ICEPACK ?= icepack
TINYPROG ?= tinyprog
all: top.bin
top.json: top.v coax_tx_bit_timer.v coax_tx.v coax_tx_distorter.v coax_rx_bit_timer.v coax_rx.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