view fpga/sniffer-basic/Makefile @ 12:d29dcfa78124

FPGA Makefile: generate pnr.rpt
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 21 Aug 2023 01:10:23 +0000
parents 10c779b8753e
children 82da4b7835b7
line wrap: on
line source

VSRC=	clk_edge.v reset_detect.v sniff_rx.v sync_inputs.v top.v uart_tx.v
PCF=	icestick.pcf
PROJ=	fpga

all:	${PROJ}.bin

${PROJ}.json:	${VSRC}
	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 $< $@

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