Skip to content

Commit 2646ce3

Browse files
authored
Merge pull request #8284 from The-OpenROAD-Project-staging/cgt-fix-tests
Cgt fix tests
2 parents 895afdf + f361507 commit 2646ce3

File tree

6 files changed

+18
-12
lines changed

6 files changed

+18
-12
lines changed

src/cgt/test/aes_nangate45.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@
1515

1616
design.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)

src/cgt/test/aes_nangate45.tcl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ read_verilog aes_nangate45.v
66
link_design aes_cipher_top
77
create_clock [get_ports clk] -name core_clock -period 0.5
88
clock_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

src/cgt/test/countdown_asap7.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@
2121
cgt.setMinInstances(1)
2222
cgt.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)

src/cgt/test/countdown_asap7.tcl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ read_verilog countdown_asap7.v
1010
link_design countdown
1111
create_clock [get_ports clk] -name clock -period 0.5
1212
clock_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

src/cgt/test/ibex_sky130hd.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@
1717
cgt.setMaxCover(50)
1818
cgt.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)

src/cgt/test/ibex_sky130hd.tcl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ read_verilog ibex_sky130hd.v
66
link_design ibex_core
77
create_clock [get_ports clk_i] -name core_clock -period 10
88
clock_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.vok $verilog_file

0 commit comments

Comments
 (0)