File tree Expand file tree Collapse file tree 6 files changed +18
-12
lines changed
Expand file tree Collapse file tree 6 files changed +18
-12
lines changed Original file line number Diff line number Diff line change 1515
1616design .getClockGating ().run ()
1717
18- design .evalTclString ("write_verilog results/aes_nangate45_gated.v" )
19- helpers .diff_files ("aes_nangate45_gated.vok" , "results/aes_nangate45_gated.v" )
18+ verilog_file = helpers .make_result_file ("aes_nangate45_gated.v" )
19+ design .evalTclString (f"write_verilog { verilog_file } " )
20+ helpers .diff_files ("aes_nangate45_gated.vok" , verilog_file )
Original file line number Diff line number Diff line change @@ -6,5 +6,6 @@ read_verilog aes_nangate45.v
66link_design aes_cipher_top
77create_clock [get_ports clk] -name core_clock -period 0.5
88clock_gating
9- write_verilog results/aes_nangate45_gated.v
10- diff_file aes_nangate45_gated.vok results/aes_nangate45_gated.v
9+ set verilog_file [make_result_file aes_nangate45_gated.v]
10+ write_verilog $verilog_file
11+ diff_file aes_nangate45_gated.vok $verilog_file
Original file line number Diff line number Diff line change 2121cgt .setMinInstances (1 )
2222cgt .run ()
2323
24- design .evalTclString ("write_verilog results/countdown_asap7_gated.v" )
25- helpers .diff_files ("countdown_asap7_gated.vok" , "results/countdown_asap7_gated.v" )
24+ verilog_file = helpers .make_result_file ("countdown_asap7_gated.v" )
25+ design .evalTclString (f"write_verilog { verilog_file } " )
26+ helpers .diff_files ("countdown_asap7_gated.vok" , verilog_file )
Original file line number Diff line number Diff line change @@ -10,5 +10,6 @@ read_verilog countdown_asap7.v
1010link_design countdown
1111create_clock [get_ports clk] -name clock -period 0.5
1212clock_gating -min_instances 1
13- write_verilog results/countdown_asap7_gated.v
14- diff_file countdown_asap7_gated.vok results/countdown_asap7_gated.v
13+ set verilog_file [make_result_file countdown_asap7_gated.v]
14+ write_verilog $verilog_file
15+ diff_file countdown_asap7_gated.vok $verilog_file
Original file line number Diff line number Diff line change 1717cgt .setMaxCover (50 )
1818cgt .run ()
1919
20- design .evalTclString ("write_verilog results/ibex_sky130hd_gated.v" )
21- helpers .diff_files ("ibex_sky130hd_gated.vok" , "results/ibex_sky130hd_gated.v" )
20+ verilog_file = helpers .make_result_file ("ibex_sky130hd_gated.v" )
21+ design .evalTclString (f"write_verilog { verilog_file } " )
22+ helpers .diff_files ("ibex_sky130hd_gated.vok" , verilog_file )
Original file line number Diff line number Diff line change @@ -6,5 +6,6 @@ read_verilog ibex_sky130hd.v
66link_design ibex_core
77create_clock [get_ports clk_i] -name core_clock -period 10
88clock_gating -max_cover 50
9- write_verilog results/ibex_sky130hd_gated.v
10- diff_file ibex_sky130hd_gated.vok results/ibex_sky130hd_gated.v
9+ set verilog_file [make_result_file ibex_sky130hd_gated_tcl.v]
10+ write_verilog $verilog_file
11+ diff_file ibex_sky130hd_gated_tcl.vok $verilog_file
You can’t perform that action at this time.
0 commit comments