Remaining assumptions that the top chip always has a block (3DBlox)

Abierto
#11,543 0 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@osamahammad21 ya está trabajando en esto.

Desde el 28/9/2026.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp

Línea de trabajo

Start with src/odb/src/db/dbModITerm.cpp:106 and the read_db path, then trace the listed Design.cc, OpenRoad.cc, ODB, CTS, STA, DFT, fill, and web entry points. Compare each chip-only or chip-to-block check against the HIER-top case described in the issue. Done means all listed assumptions are addressed, including misleading design-loaded messages, without leaving the tracked crash or wrong-design paths.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

With 3DBlox the top chip (db->getChip()) can be a HIER chip with no block. A lot of code still treats "chip exists" as "block exists", or uses chip && chip->getBlock() as the "design loaded" test. The read_db guard (ORD-47) was one case. This issue tracks the rest.

Crash or wrong design during load/link
  • src/odb/src/db/dbModITerm.cpp:106: the stream-in uses db->getChip()->getBlock()->modinst_tbl_. This crashes read_db when a chiplet block has hierarchy. It should use the owning block, not the top chip's block.
  • src/Design.cc:51: the readVerilog guard (ORD-36) only checks chip->getBlock(), so it passes with a HIER top. Verilog2db::makeBlock (dbReadVerilog.cc:237) then creates a flat block under the HIER top. makeUnusedBlock (:1172) uses a null top_block_.
  • read_def without -chip (src/OpenRoad.tcl:85, src/Design.cc:74, src/odb/src/swig/common/swig_common.cpp:51) passes the HIER top to defin. ODB-251 doesn't reject it, so a block gets created under the top chip. If the DEF read fails, definReader.cpp:1873 destroys the top chip. The ORD-48 check at OpenRoad.cc:376 has the same assumption.
  • src/odb/src/db/dbDatabase.cpp:842 removeUnusedMasters: no null check. It also removes masters that are only used in chiplets.
  • src/odb/src/db/dbMPin.cpp:140,154 getPinAccess/clearPinAccess: these take ap_tbl_ from the top chip's block.
Chip-only check, then block used
  • src/OpenRoad.cc:671 getCore (ord::get_db_core, used by finale.tcl)
  • src/OpenRoad.i: db_layer_has_tracks, report_hpwl, report_each_net_hpwl
  • src/OpenRoad.cc:425,512 writeDef/writeCdl: return silently when there's no block. writeAbstractLef errors instead (ORD-53).
  • src/OpenRoad.cc:555-565 write3Dbv/write3Dbx: no null-chip check
  • src/odb/src/swig/tcl/odb.tcl: about 16 procs check $chip == "NULL" and then call [$chip getBlock] methods (physical cluster/voltage domain procs, set_min_layer/set_max_layer, write_guides, write_macro_placement, design_is_routed, which Resizer.tcl:373 uses as a gate)
  • cts: TritonCTS.tcl:186 checks only the chip. TritonCTS.cpp:93,645 and TechChar.cpp:475 use the block unguarded.
  • src/dbSta/src/dbSta.cc:717,743,1082 and dbSta.i:222 db_network_defined
  • dft (ScanReplace.cpp:341,452, ScanCellFactory.cpp:211, ScanStitch.cpp:41) and fin/src/DensityFill.cpp:529: these call chip->getBlock() without a null check.
  • src/web/src/dbDescriptors.cpp:95,946 and the visitAllObjects functions at :4875,4974,5076,5155,5257,5334,5412
Misleading message only
  • The [ord::get_db_block] == "NULL" checks in dpl/gpl/grt/pdn/tap/mpl/etc. do fire, but they report "design not loaded" even though a 3D design is loaded.
Lenguaje dominante
Verilog
Estrellas
3.4k
Forks
1.1k
Merge medio
3 d 11 h
PR fusionados (30 d)
245

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

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.