12 lines
833 B
Plaintext
12 lines
833 B
Plaintext
# Manual synthesis script, equivalent to the steps automatically generated by proxmark5_fpga.mk.
|
|
# Run in the fpga directory: yosys -s pm5/run.ys (use make pm5 for building)
|
|
|
|
# 1. Read source code and macro definitions
|
|
read_verilog -D PM5 -D WITH_TIMODE -D WITH_HF_15 -D WITH_FELICA_PROBE common/define.v common/mux8.v common/clk_divider.v common/lp20khz_1MSa_iir_filter.v common/min_max_tracker.v common/hi_flite.v common/hi_get_trace.v common/hi_iso14443a.v common/hi_reader.v common/hi_simulate.v common/hi_sniffer.v common/lf_edge_detect.v common/lo_adc.v common/lo_edge_detect.v common/lo_passthru.v common/lo_read.v pm5/gowin_rpll.v pm5/fpga_pm5_hf.v pm5/fpga_pm5_lf.v pm5/fpga_pm5_top.v
|
|
|
|
# 2. Check and explicitly specify the top level
|
|
hierarchy -top fpga_top
|
|
|
|
# 3. Perform synthesis
|
|
synth_gowin -nolutram -json output.json
|