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

Aperta
#11,543 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@osamahammad21 ci sta già lavorando.

Dal 28/9/2026.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Verilog
Stelle
3.4k
Fork
1.1k
Merge medio
3g 11h
PR unite (30g)
245

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di The-OpenROAD-Project/OpenROAD

Tutte le issue di The-OpenROAD-Project/OpenROAD

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.