How to write a .blif or .bench without any optimization and only write the combinational parts of the circuits? #3823
Replies: 2 comments
-
This does not work. As noted in the documentation for the
|
Beta Was this translation helpful? Give feedback.
-
Appreciate your prompt reply. I want to get combinational parts of a sequential circuit without logic optimization, and then implement custom logic optimization by ABC using these extracted combinational parts as .blif. Could you please help me fix the Yosys script using the example ac97? |
Beta Was this translation helpful? Give feedback.
-
I found a Yosys script that can write .blif, and implement it on an open-source control ac97. The script is as follows:
read_verilog ac97_top.v synth -flatten -top ac97_top async2sync dffunmap abc -g AND write_blif ac97.blif
However, this script can not write the combinational AIG as .blif. So, I write an ABC script named comb.script as follows:
strash write ac97_comb.bench
Then, I add a line in Yosys script:
read_verilog ac97_top.v synth -flatten -top ac97_top async2sync dffunmap abc -g AND -script comb.script write_blif ac97.blif
Finally, I can get a .blif file without DFFs. Is this flow correct? Additionally, I found this flow runs some OPT passes, but I only want the unoptimized AIG. Are these optimizations necessary?
Beta Was this translation helpful? Give feedback.
All reactions