Skip to content

Commit 5a77d9e

Browse files
authored
Merge pull request #9121 from LucasYuki/odb_dbRegionGroupItr_fix2
dpl: Handling filler name conflicts
2 parents 411fe8b + 8497429 commit 5a77d9e

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/dpl/src/FillerPlacement.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,11 @@ void Opendp::placeRowFillers(GridY row,
217217
for (dbMaster* master : fillers) {
218218
std::string inst_name
219219
= prefix + to_string(row.v) + "_" + to_string(k.v);
220-
odb::dbInst* inst = odb::dbInst::create(block_,
221-
master,
222-
inst_name.c_str(),
223-
/* physical_only */ true);
220+
odb::dbInst* inst
221+
= odb::dbInst::makeUniqueDbInst(block_,
222+
master,
223+
inst_name.c_str(),
224+
/* physical_only */ true);
224225
DbuX x{core_.xMin() + gridToDbu(k, site_width)};
225226
DbuY y{core_.yMin() + grid_->gridYToDbu(row)};
226227
inst->setOrient(orient);

src/odb/include/odb/db.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3089,8 +3089,8 @@ class dbInst : public dbObject
30893089
static dbInst* makeUniqueDbInst(dbBlock* block,
30903090
dbMaster* master,
30913091
const char* name,
3092-
bool physical_only,
3093-
dbModule* target_module);
3092+
bool physical_only = false,
3093+
dbModule* target_module = nullptr);
30943094

30953095
///
30963096
/// Create a new instance of child_block in top_block.

0 commit comments

Comments
 (0)