view fpga/sniffer-basic/Makefile @ 58:95ed46b5f8f1 default tip

doc/Sniffing-hw-setup: mv-sniffer is here
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 04 Oct 2023 05:55:09 +0000
parents cbfcc480d61b
children
line wrap: on
line source

VSRC=	clk_edge.v reset_detect.v sniff_rx.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-tee top $@ synthesis.rpt ${VSRC}

${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