@@ -33,6 +33,7 @@ using std::string;
3333
3434using utl::DPL;
3535
36+ using odb::dbInst;
3637using odb::Rect;
3738
3839// //////////////////////////////////////////////////////////////
@@ -62,7 +63,7 @@ void Opendp::setPaddingGlobal(const int left, const int right)
6263 padding_->setPaddingGlobal (GridX{left}, GridX{right});
6364}
6465
65- void Opendp::setPadding (dbInst* inst, const int left, const int right)
66+ void Opendp::setPadding (odb:: dbInst* inst, const int left, const int right)
6667{
6768 padding_->setPadding (inst, GridX{left}, GridX{right});
6869}
@@ -139,7 +140,7 @@ void Opendp::updateDbInstLocations()
139140{
140141 for (auto & cell : network_->getNodes ()) {
141142 if (!cell->isFixed () && cell->isStdCell ()) {
142- dbInst* db_inst_ = cell->getDbInst ();
143+ odb:: dbInst* db_inst_ = cell->getDbInst ();
143144 // Only move the instance if necessary to avoid triggering callbacks.
144145 if (db_inst_->getOrient () != cell->getOrient ()) {
145146 db_inst_->setOrient (cell->getOrient ());
@@ -235,12 +236,12 @@ int Opendp::padGlobalRight() const
235236 return padding_->padGlobalRight ().v ;
236237}
237238
238- int Opendp::padLeft (dbInst* inst) const
239+ int Opendp::padLeft (odb:: dbInst* inst) const
239240{
240241 return padding_->padLeft (inst).v ;
241242}
242243
243- int Opendp::padRight (dbInst* inst) const
244+ int Opendp::padRight (odb:: dbInst* inst) const
244245{
245246 return padding_->padRight (inst).v ;
246247}
@@ -354,7 +355,7 @@ void Opendp::groupInitPixels2()
354355 }
355356}
356357
357- dbInst* Opendp::getAdjacentInstance (dbInst* inst, bool left) const
358+ odb:: dbInst* Opendp::getAdjacentInstance (odb:: dbInst* inst, bool left) const
358359{
359360 const Rect inst_rect = inst->getBBox ()->getBox ();
360361 DbuX x_dbu = left ? DbuX{inst_rect.xMin () - 1 } : DbuX{inst_rect.xMax () + 1 };
@@ -365,7 +366,7 @@ dbInst* Opendp::getAdjacentInstance(dbInst* inst, bool left) const
365366
366367 Pixel* pixel = grid_->gridPixel (x, y);
367368
368- dbInst* adjacent_inst = nullptr ;
369+ odb:: dbInst* adjacent_inst = nullptr ;
369370
370371 // do not return macros, endcaps and tapcells
371372 if (pixel != nullptr && pixel->cell && pixel->cell ->getDbInst ()->isCore ()) {
@@ -379,9 +380,9 @@ std::vector<dbInst*> Opendp::getAdjacentInstancesCluster(dbInst* inst) const
379380{
380381 const bool left = true ;
381382 const bool right = false ;
382- std::vector<dbInst*> adj_inst_cluster;
383+ std::vector<odb:: dbInst*> adj_inst_cluster;
383384
384- dbInst* left_inst = getAdjacentInstance (inst, left);
385+ odb:: dbInst* left_inst = getAdjacentInstance (inst, left);
385386 while (left_inst != nullptr ) {
386387 adj_inst_cluster.push_back (left_inst);
387388 // the right instance can be ignored, since it was added in the line above
@@ -391,7 +392,7 @@ std::vector<dbInst*> Opendp::getAdjacentInstancesCluster(dbInst* inst) const
391392 std::reverse (adj_inst_cluster.begin (), adj_inst_cluster.end ());
392393 adj_inst_cluster.push_back (inst);
393394
394- dbInst* right_inst = getAdjacentInstance (inst, right);
395+ odb:: dbInst* right_inst = getAdjacentInstance (inst, right);
395396 while (right_inst != nullptr ) {
396397 adj_inst_cluster.push_back (right_inst);
397398 // the left instance can be ignored, since it was added in the line above
0 commit comments