comparison fpga/sniffer-pps/Makefile @ 28:0f74428c177c

fpga/sniffer-pps: first version
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 29 Aug 2023 20:05:23 +0000
parents fpga/sniffer-basic/Makefile@990ecafdddb4
children ab37fcb71744
comparison
equal deleted inserted replaced
27:990ecafdddb4 28:0f74428c177c
1 VSRC= clk_edge.v pps_catcher.v reset_detect.v sniff_rx.v sync_inputs.v top.v \
2 uart_tx.v
3 PCF= ../common/icestick.pcf
4 PROJ= fpga
5
6 all: ${PROJ}.bin timing.rpt
7
8 ${PROJ}.json: ${VSRC}
9 ../tools/yosys-wrap top $@ ${VSRC} | tee synthesis.rpt
10
11 ${PROJ}.asc: ${PROJ}.json ${PCF}
12 nextpnr-ice40 --hx1k --package tq144 --asc $@ --pcf ${PCF} \
13 --json ${PROJ}.json -l pnr.rpt
14
15 ${PROJ}.bin: ${PROJ}.asc
16 icepack $< $@
17
18 timing.rpt: ${PROJ}.asc
19 icetime -d hx1k -mtr $@ $<
20
21 clean:
22 rm -f *.json *.asc *.bin *.rpt