Skip to content

Commit a492502

Browse files
committed
test: Reduce escape slash regression
Replace the oversized escape_slash and escape_slash_hier regressions with minimal DEF-backed fixtures that preserve the targeted slash escaping cases. The old tests depended on floorplan, placement, and CTS behavior even though they only validated Verilog and SPEF name escaping. The new fixtures keep one flat escaped slash path and one hierarchical escaped slash path while avoiding unrelated flow commands. Update the expected Verilog, SPEF, and log goldens for the reduced designs. Tested: RESULTS_DIR=/workspace/exp/escape_slash_min/final_flat openroad -no_init -no_splash -exit -metrics /workspace/exp/escape_slash_min/final_escape_slash.metrics.json escape_slash.tcl Tested: RESULTS_DIR=/workspace/exp/escape_slash_min/final_hier openroad -no_init -no_splash -exit -metrics /workspace/exp/escape_slash_min/final_escape_slash_hier.metrics.json escape_slash_hier.tcl Tested: git diff --check Co-authored-by: OmX <omx@oh-my-codex.dev> Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
1 parent 8ff372b commit a492502

12 files changed

Lines changed: 138 additions & 7828 deletions

src/dbSta/test/escape_slash.def

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
VERSION 5.8 ;
2+
DIVIDERCHAR "/" ;
3+
BUSBITCHARS "[]" ;
4+
DESIGN multi_sink ;
5+
UNITS DISTANCE MICRONS 2000 ;
6+
DIEAREA ( 0 0 ) ( 40000 11200 ) ;
7+
ROW ROW_0 FreePDK45_38x28_10R_NP_162NW_34O 0 0 N DO 105 BY 1 STEP 380 0 ;
8+
ROW ROW_1 FreePDK45_38x28_10R_NP_162NW_34O 0 2800 FS DO 105 BY 1 STEP 380 0 ;
9+
ROW ROW_2 FreePDK45_38x28_10R_NP_162NW_34O 0 5600 N DO 105 BY 1 STEP 380 0 ;
10+
ROW ROW_3 FreePDK45_38x28_10R_NP_162NW_34O 0 8400 FS DO 105 BY 1 STEP 380 0 ;
11+
TRACKS X 190 DO 105 STEP 380 LAYER metal1 ;
12+
TRACKS Y 140 DO 40 STEP 280 LAYER metal1 ;
13+
TRACKS X 190 DO 105 STEP 380 LAYER metal2 ;
14+
TRACKS Y 140 DO 40 STEP 280 LAYER metal2 ;
15+
TRACKS X 190 DO 105 STEP 380 LAYER metal3 ;
16+
TRACKS Y 140 DO 40 STEP 280 LAYER metal3 ;
17+
COMPONENTS 3 ;
18+
- hi_inst\/gclk2_inst CLKGATE_X1 + PLACED ( 760 2800 ) FS ;
19+
- h1\/ff1 DFF_X1 + PLACED ( 6460 2800 ) FS ;
20+
- ff0\/name DFF_X1 + PLACED ( 13680 2800 ) FS ;
21+
END COMPONENTS
22+
PINS 1 ;
23+
- clk + NET clk + DIRECTION INPUT + USE SIGNAL
24+
+ PORT
25+
+ LAYER metal2 ( -70 -70 ) ( 70 70 )
26+
+ PLACED ( 190 2940 ) N ;
27+
END PINS
28+
NETS 2 ;
29+
- clk ( PIN clk ) ( hi_inst\/gclk2_inst CK ) + USE SIGNAL ;
30+
- hi_gclk2 ( hi_inst\/gclk2_inst GCK ) ( h1\/ff1 CK ) ( ff0\/name CK ) + USE SIGNAL ;
31+
END NETS
32+
END DESIGN

src/dbSta/test/escape_slash.ok

Lines changed: 4 additions & 336 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)