view fpga/sniffer-pps/Makefile @ 44:74330513121e

simtrace3-sniff-dec: initial cosmetic fixes
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 31 Aug 2023 08:55:34 +0000
parents ab37fcb71744
children cbfcc480d61b
line wrap: on
line source

VSRC=	clk_edge.v pps_catcher.v reset_detect.v sniff_rx.v spenh_ctrl.v \
	sync_inputs.v top.v uart_tx.v
PCF=	../common/icestick.pcf
PROJ=	fpga

all:	${PROJ}.bin timing.rpt

${PROJ}.json:	${VSRC}
	../tools/yosys-wrap top $@ ${VSRC} | tee synthesis.rpt

${PROJ}.asc:	${PROJ}.json ${PCF}
	nextpnr-ice40 --hx1k --package tq144 --asc $@ --pcf ${PCF} \
		--json ${PROJ}.json -l pnr.rpt

${PROJ}.bin:	${PROJ}.asc
	icepack $< $@

timing.rpt:	${PROJ}.asc
	icetime -d hx1k -mtr $@ $<

clean:
	rm -f *.json *.asc *.bin *.rpt