[From ABKGroup] check_drc reports false end-of-line markers for split wires outside worker regions

Abierto
#12,525 1 comentario 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@bnmfw ya está trabajando en esto.

Desde el 30/11/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

bug drt
Describe the bug

Hi,

I am Yucheng Wang from ABKGroup/UCSD.

drt::check_drc splits the design into 7x7-GCell tiles and checks each tile independently. Each worker loads every wire segment whose bounding box touches its extBox (tile + 2000 DBU) in full, but does not load a continuing segment that starts outside extBox.

Because the continuation is missing, the worker sees a fake line end where the loaded segment stops and flags false end-of-line or spacing violations (such as Lef58EolKeepOut). Those markers are kept even when they lie outside the tile's drcBox (tile + 500 DBU). Checking the exact same layout as a single tile reports 0 markers.

In routed designs, this can occur where a wire splits at a via whose bounding box falls just outside extBox.

Related to #11697 (fixed in PR #11698 for via figures crossing extBox); wire segments are still loaded whole and markers outside drcBox are still kept.

Expected Behavior

drt::check_drc should report 0 markers on continuous wires regardless of how segments are split or where GCELLGRID tile boundaries fall, matching a single-tile check.

Environment
OpenROAD: reproduced on commit 5ad6131
Tech LEF: ASAP7 1x tech LEF (asap7_tech_1x_201209.lef from OpenROAD-flow-scripts)
OS: Linux
To Reproduce
  1. Set the ASAP7 tech LEF to 4000 DBU/um so M5's LEF58_EOLKEEPOUT side extension (0.02425 um = 97 DBU) does not round down to the 96 DBU track gap:
sed 's/DATABASE MICRONS 1000 ;/DATABASE MICRONS 4000 ;/' asap7_tech_1x_201209.lef > tech_4000dbu.lef
  1. Save b_edge.def. It defines one net with two parallel M5 wires on adjacent tracks (x = 13488 and 13680, width 96, gap 96), each split into two segments meeting at y = 36000 (true wire ends are staggered). With GCELLGRID step 4012, the first tile row has routeBox top y = 28084, drcBox top y = 28584, and extBox top y = 30084:
VERSION 5.8 ;
DIVIDERCHAR "/" ;
BUSBITCHARS "[]" ;
DESIGN B_edge ;
UNITS DISTANCE MICRONS 4000 ;
DIEAREA ( 0 0 ) ( 80240 80240 ) ;
TRACKS X 36 DO 557 STEP 144 LAYER M1 ;
TRACKS Y 36 DO 557 STEP 144 LAYER M1 ;
TRACKS X 36 DO 557 STEP 144 LAYER M2 ;
TRACKS Y 36 DO 557 STEP 144 LAYER M2 ;
TRACKS X 36 DO 557 STEP 144 LAYER M3 ;
TRACKS Y 36 DO 557 STEP 144 LAYER M3 ;
TRACKS X 48 DO 418 STEP 192 LAYER M4 ;
TRACKS Y 48 DO 418 STEP 192 LAYER M4 ;
TRACKS X 48 DO 418 STEP 192 LAYER M5 ;
TRACKS Y 48 DO 418 STEP 192 LAYER M5 ;
TRACKS X 64 DO 314 STEP 256 LAYER M6 ;
TRACKS Y 64 DO 314 STEP 256 LAYER M6 ;
TRACKS X 64 DO 314 STEP 256 LAYER M7 ;
TRACKS Y 64 DO 314 STEP 256 LAYER M7 ;
GCELLGRID X 0 DO 20 STEP 4012 ;
GCELLGRID Y 0 DO 20 STEP 4012 ;
NETS 1 ;
- n1
  + ROUTED M5 ( 13488 28000 ) ( 13488 36000 )
    NEW M5 ( 13488 36000 ) ( 13488 40000 )
    NEW M5 ( 13680 30000 ) ( 13680 36000 )
    NEW M5 ( 13680 36000 ) ( 13680 44000 )
  + USE SIGNAL ;
END NETS
END DESIGN
  1. Run check_drc:
# check.tcl
read_lef tech_4000dbu.lef
read_def b_edge.def
drt::check_drc -output_file b_edge.rpt
openroad -no_init -no_splash -exit -threads 1 check.tcl
  1. Change only the GCELLGRID lines in b_edge.def to check the same layout as a single tile:
GCELLGRID X 0 DO 1 STEP 80240 ;
GCELLGRID Y 0 DO 1 STEP 80240 ;

Re-running check_drc gives 0 markers. Using a different GCell step (DO 16 STEP 5000) or shifting the wires away from the border also gives 0 markers.

Relevant log output
Contents of b_edge.rpt on b_edge.def (1 marker):

violation type: Lef58EolKeepOut
	srcs: net:n1
	bbox = (3.3840, 9.0120) - (3.4080, 9.0120) on Layer M5

The lower segments cross extBox (y <= 30084) and are loaded whole up to y = 36048 (9.0120 um), while the upper segments start at y = 35952 and are skipped. The marker sits at the fake line ends, outside both drcBox (y <= 28584) and extBox (y <= 30084).

With the single-tile GCELLGRID (or STEP 5000), b_edge.rpt is empty (0 markers).
Screenshots

No response

Additional Context

Possible fix direction: Drop markers outside the reporting tile's drcBox (in getDRCMarkers or addMarker, where every point is covered by a tile that loaded shapes 1500 DBU beyond drcBox), or load continuing same-net objects when a loaded wire segment ends outside extBox.

Lenguaje dominante
Verilog
Estrellas
3.4k
Forks
1.1k
Merge medio
3 d 11 h
PR fusionados (30 d)
247

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de The-OpenROAD-Project/OpenROAD

Todos los issues de The-OpenROAD-Project/OpenROAD

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.