YosysHQ / yosys

Yosys Open SYnthesis Suite
https://yosyshq.net/yosys/
ISC License
3.5k stars 895 forks source link

synth_quicklogic: add -noflatten option #4735

Open nakengelhardt opened 1 week ago

nakengelhardt commented 1 week ago

What are the reasons/motivation for this change?

Not flattening gives faster execution time and lower memory usage in exchange for worse QoR. Probably more useful for debugging/exploring synthesis results than for actual use with an FPGA (not sure if the VPR P&R flow even accepts hierarchical netlists at all).

Explain how this is achieved.

Same way as for the other synth_* passes (except synth_xilinx which doesn't flatten by default).

If applicable, please suggest to reviewers how they can test the change.