Skip to content

Commit

Permalink
Visualization update for the yosys generator to create full depth cir…
Browse files Browse the repository at this point in the history
…cuits, removing extraneous wires.

PiperOrigin-RevId: 559858161
  • Loading branch information
Fully Homomorphic Encryption Team authored and copybara-github committed Aug 24, 2023
1 parent 45e5ad7 commit c3ce049
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions transpiler/fhe_yosys.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ memory
techmap; opt
abc -liberty {cell_library}
opt_clean -purge
hierarchy -generate * o:Y o:Q i:*
torder -stop DFFSR Q
clean
write_verilog {netlist_path}
show -format dot -prefix {netlist_path} -viewer touch
Expand All @@ -73,6 +75,8 @@ write_verilog -attr2comment {netlist_path}.pre_techmap
show -format dot -prefix {netlist_path} -viewer touch
techmap -map {lutmap_script}
opt_clean -purge
hierarchy -generate * o:Y o:Q i:*
torder -stop DFFSR Q
clean
write_verilog -noexpr -attr2comment {netlist_path}
EOF
Expand Down

0 comments on commit c3ce049

Please sign in to comment.