Skip to content

Commit 07db504

Browse files
jhkim-piiOmX
andcommitted
test: Read flat escape slash Verilog
Restore the flat escape_slash regression coverage for read_verilog parsing of top-level escaped slash identifiers before DEF floorplan data is applied. The test now links the minimal Verilog netlist and uses read_def -floorplan_initialize so the reduced fixture still exercises both Verilog parsing and Verilog/SPEF writing without invoking placement or CTS. Tested: RESULTS_DIR=/workspace/exp/escape_slash_min/review_verify_flat openroad -no_init -no_splash -exit -metrics /workspace/exp/escape_slash_min/review_verify_escape_slash.metrics.json escape_slash.tcl Tested: RESULTS_DIR=/workspace/exp/escape_slash_min/review_verify_hier openroad -no_init -no_splash -exit -metrics /workspace/exp/escape_slash_min/review_verify_escape_slash_hier.metrics.json escape_slash_hier.tcl Tested: git diff --check Tested: bazel test //src/dbSta/test:escape_slash-tcl_test //src/dbSta/test:escape_slash_hier-tcl_test Co-authored-by: OmX <omx@oh-my-codex.dev> Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
1 parent a492502 commit 07db504

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

src/dbSta/test/escape_slash.ok

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[INFO ODB-0227] LEF file: Nangate45/Nangate45.lef, created 22 layers, 27 vias, 135 library cells
22
[INFO ODB-0128] Design: multi_sink
3-
[INFO ODB-0130] Created 1 pins.
4-
[INFO ODB-0131] Created 3 components and 17 component-terminals.
5-
[INFO ODB-0133] Created 2 nets and 4 connections.
3+
[INFO ODB-0252] Updated 1 pins.
4+
[INFO ODB-0253] Updated 3 components.
5+
[INFO ODB-0254] Updated 2 nets and 4 connections.
66
No differences found.
77
No differences found.

src/dbSta/test/escape_slash.spefok

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ clk I
1818

1919
*D_NET clk 0.213642
2020
*CONN
21-
*I hi_inst\/gclk2_inst:CK I *D CLKGATE_X1
2221
*P clk I
22+
*I hi_inst\/gclk2_inst:CK I *D CLKGATE_X1
2323
*CAP
2424
1 clk:0 0.106821
2525
2 clk:1 0.106821
@@ -33,9 +33,9 @@ clk I
3333

3434
*D_NET hi_gclk2 0.430855
3535
*CONN
36-
*I hi_inst\/gclk2_inst:GCK O *D CLKGATE_X1
37-
*I h1\/ff1:CK I *D DFF_X1
3836
*I ff0\/name:CK I *D DFF_X1
37+
*I h1\/ff1:CK I *D DFF_X1
38+
*I hi_inst\/gclk2_inst:GCK O *D CLKGATE_X1
3939
*CAP
4040
1 hi_gclk2:0 0.0797636
4141
2 hi_gclk2:1 0.215427

src/dbSta/test/escape_slash.tcl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ set test_name escape_slash
66
source Nangate45/Nangate45.vars
77
read_liberty Nangate45/Nangate45_typ.lib
88
read_lef Nangate45/Nangate45.lef
9-
read_def $test_name.def
9+
read_verilog $test_name.v
10+
link_design multi_sink
11+
read_def -floorplan_initialize $test_name.def
1012

1113
source Nangate45/Nangate45.rc
1214
source $layer_rc_file

0 commit comments

Comments
 (0)