OpenFPGA/openfpga_flow/misc/ys_tmpl_yosys_vpr_flow.ys

23 lines
360 B
Plaintext
Raw Permalink Normal View History

2019-08-09 17:49:05 -05:00
# Yosys synthesis script for ${TOP_MODULE}
# Read verilog files
${READ_VERILOG_FILE}
# Technology mapping
hierarchy -top ${TOP_MODULE}
proc
techmap -D NO_LUT -map +/adff2dff.v
# Synthesis
synth -top ${TOP_MODULE} -flatten
clean
# LUT mapping
abc -lut ${LUT_SIZE}
# Check
synth -run check
# Clean and output blif
opt_clean -purge
write_blif ${OUTPUT_BLIF}