FreeCalypso > hg > fc-sim-sniff
annotate 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 |
rev | line source |
---|---|
6
7db5fd6646df
fpga/sniffer-basic: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 VSRC= clk_edge.v reset_detect.v sniff_rx.v sync_inputs.v top.v uart_tx.v |
27
990ecafdddb4
fpga tree: move icestick.pcf to common subdirectory
Mychaela Falconia <falcon@freecalypso.org>
parents:
19
diff
changeset
|
2 PCF= ../common/icestick.pcf |
6
7db5fd6646df
fpga/sniffer-basic: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 PROJ= fpga |
7db5fd6646df
fpga/sniffer-basic: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 |
13
82da4b7835b7
FPGA Makefile: generate timing.rpt
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
5 all: ${PROJ}.bin timing.rpt |
6
7db5fd6646df
fpga/sniffer-basic: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 |
7db5fd6646df
fpga/sniffer-basic: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 ${PROJ}.json: ${VSRC} |
52
cbfcc480d61b
fpga build: migrate to yosys-tee wrapper
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
8 ../tools/yosys-tee top $@ synthesis.rpt ${VSRC} |
6
7db5fd6646df
fpga/sniffer-basic: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 |
7db5fd6646df
fpga/sniffer-basic: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 ${PROJ}.asc: ${PROJ}.json ${PCF} |
7db5fd6646df
fpga/sniffer-basic: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 nextpnr-ice40 --hx1k --package tq144 --asc $@ --pcf ${PCF} \ |
12
d29dcfa78124
FPGA Makefile: generate pnr.rpt
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
12 --json ${PROJ}.json -l pnr.rpt |
6
7db5fd6646df
fpga/sniffer-basic: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 |
7db5fd6646df
fpga/sniffer-basic: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 ${PROJ}.bin: ${PROJ}.asc |
7db5fd6646df
fpga/sniffer-basic: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 icepack $< $@ |
7db5fd6646df
fpga/sniffer-basic: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 |
13
82da4b7835b7
FPGA Makefile: generate timing.rpt
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
17 timing.rpt: ${PROJ}.asc |
82da4b7835b7
FPGA Makefile: generate timing.rpt
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
18 icetime -d hx1k -mtr $@ $< |
82da4b7835b7
FPGA Makefile: generate timing.rpt
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
19 |
6
7db5fd6646df
fpga/sniffer-basic: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 clean: |
19
e92ab75ce6a8
FPGA make clean: rm *.rpt too
Mychaela Falconia <falcon@freecalypso.org>
parents:
18
diff
changeset
|
21 rm -f *.json *.asc *.bin *.rpt |