Skip to content

Commit

Permalink
Fix for scratchpad creation of buffers in resizer, mark such instance…
Browse files Browse the repository at this point in the history
…s as concrete

Signed-off-by: andyfox-rushc <[email protected]>
  • Loading branch information
andyfox-rushc committed Dec 3, 2024
1 parent 5d9e3e4 commit e639568
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/dbSta/src/dbNetwork.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1993,6 +1993,20 @@ Instance* dbNetwork::makeInstance(LibertyCell* cell,
dbMaster* master = db_->findMaster(cell_name);
if (master) {
dbInst* inst = dbInst::create(block_, master, name);
//
// Register all liberty cells as being concrete
// Sometimes this method is called by the sta
// to build "test circuits" eg to find the max wire length
// And those cells need to use the external api
// to get timing characteristics, so they have to be
// concrete
Cell* inst_cell = dbToSta(master);
registerConcreteCell(inst_cell);
std::unique_ptr<sta::CellPortIterator> port_iter{portIterator(inst_cell)};
while (port_iter->hasNext()) {
Port* cur_port = port_iter->next();
registerConcretePort(cur_port);
}
return dbToSta(inst);
}
} else {
Expand All @@ -2003,6 +2017,20 @@ Instance* dbNetwork::makeInstance(LibertyCell* cell,
dbMaster* master = db_->findMaster(cell_name);
dbModule* parent = mod_inst->getMaster();
dbInst* inst = dbInst::create(block_, master, name, false, parent);
Cell* inst_cell = dbToSta(master);
//
// Register all liberty cells as being concrete
// Sometimes this method is called by the sta
// to build "test circuits" eg to find the max wire length
// And those cells need to use the external api
// to get timing characteristics, so they have to be
// concrete
registerConcreteCell(inst_cell);
std::unique_ptr<sta::CellPortIterator> port_iter{portIterator(inst_cell)};
while (port_iter->hasNext()) {
Port* cur_port = port_iter->next();
registerConcretePort(cur_port);
}
return dbToSta(inst);
}
}
Expand Down

0 comments on commit e639568

Please sign in to comment.