[Script] Split rewrite yosys scripts into two runs because yosys cannot output consistent verilog files using 'design -reset'

This commit is contained in:
tangxifan 2021-03-10 13:56:35 -07:00
parent d21909ad6c
commit 90a00da1df
2 changed files with 4 additions and 8 deletions

View File

@ -0,0 +1,4 @@
# Rewrite the .blif to Verilog
# so that the pin sequence matches
read_blif rewritten_${OUTPUT_BLIF}
write_verilog ${OUTPUT_VERILOG}

View File

@ -20,11 +20,3 @@ synth -run check
# Clean and output blif
opt_clean -purge
write_blif rewritten_${OUTPUT_BLIF}
# Clear all the designs
design -reset
# Rewrite the .blif to Verilog
# so that the pin sequence matches
read_blif rewritten_${OUTPUT_BLIF}
write_verilog ${OUTPUT_VERILOG}