1717#include " boost/geometry/geometry.hpp"
1818#include " dpl/OptMirror.h"
1919#include " graphics/DplObserver.h"
20+ #include " infrastructure/Coordinates.h"
2021#include " infrastructure/Grid.h"
2122#include " infrastructure/Objects.h"
2223#include " infrastructure/Padding.h"
@@ -32,6 +33,7 @@ using std::string;
3233
3334using utl::DPL;
3435
36+ using odb::dbInst;
3537using odb::Rect;
3638
3739// //////////////////////////////////////////////////////////////
@@ -61,7 +63,7 @@ void Opendp::setPaddingGlobal(const int left, const int right)
6163 padding_->setPaddingGlobal (GridX{left}, GridX{right});
6264}
6365
64- void Opendp::setPadding (dbInst* inst, const int left, const int right)
66+ void Opendp::setPadding (odb:: dbInst* inst, const int left, const int right)
6567{
6668 padding_->setPadding (inst, GridX{left}, GridX{right});
6769}
@@ -138,7 +140,7 @@ void Opendp::updateDbInstLocations()
138140{
139141 for (auto & cell : network_->getNodes ()) {
140142 if (!cell->isFixed () && cell->isStdCell ()) {
141- dbInst* db_inst_ = cell->getDbInst ();
143+ odb:: dbInst* db_inst_ = cell->getDbInst ();
142144 // Only move the instance if necessary to avoid triggering callbacks.
143145 if (db_inst_->getOrient () != cell->getOrient ()) {
144146 db_inst_->setOrient (cell->getOrient ());
@@ -234,12 +236,12 @@ int Opendp::padGlobalRight() const
234236 return padding_->padGlobalRight ().v ;
235237}
236238
237- int Opendp::padLeft (dbInst* inst) const
239+ int Opendp::padLeft (odb:: dbInst* inst) const
238240{
239241 return padding_->padLeft (inst).v ;
240242}
241243
242- int Opendp::padRight (dbInst* inst) const
244+ int Opendp::padRight (odb:: dbInst* inst) const
243245{
244246 return padding_->padRight (inst).v ;
245247}
@@ -353,7 +355,7 @@ void Opendp::groupInitPixels2()
353355 }
354356}
355357
356- dbInst* Opendp::getAdjacentInstance (dbInst* inst, bool left) const
358+ odb:: dbInst* Opendp::getAdjacentInstance (odb:: dbInst* inst, bool left) const
357359{
358360 const Rect inst_rect = inst->getBBox ()->getBox ();
359361 DbuX x_dbu = left ? DbuX{inst_rect.xMin () - 1 } : DbuX{inst_rect.xMax () + 1 };
@@ -364,7 +366,7 @@ dbInst* Opendp::getAdjacentInstance(dbInst* inst, bool left) const
364366
365367 Pixel* pixel = grid_->gridPixel (x, y);
366368
367- dbInst* adjacent_inst = nullptr ;
369+ odb:: dbInst* adjacent_inst = nullptr ;
368370
369371 // do not return macros, endcaps and tapcells
370372 if (pixel != nullptr && pixel->cell && pixel->cell ->getDbInst ()->isCore ()) {
@@ -378,9 +380,9 @@ std::vector<dbInst*> Opendp::getAdjacentInstancesCluster(dbInst* inst) const
378380{
379381 const bool left = true ;
380382 const bool right = false ;
381- std::vector<dbInst*> adj_inst_cluster;
383+ std::vector<odb:: dbInst*> adj_inst_cluster;
382384
383- dbInst* left_inst = getAdjacentInstance (inst, left);
385+ odb:: dbInst* left_inst = getAdjacentInstance (inst, left);
384386 while (left_inst != nullptr ) {
385387 adj_inst_cluster.push_back (left_inst);
386388 // the right instance can be ignored, since it was added in the line above
@@ -390,7 +392,7 @@ std::vector<dbInst*> Opendp::getAdjacentInstancesCluster(dbInst* inst) const
390392 std::reverse (adj_inst_cluster.begin (), adj_inst_cluster.end ());
391393 adj_inst_cluster.push_back (inst);
392394
393- dbInst* right_inst = getAdjacentInstance (inst, right);
395+ odb:: dbInst* right_inst = getAdjacentInstance (inst, right);
394396 while (right_inst != nullptr ) {
395397 adj_inst_cluster.push_back (right_inst);
396398 // the left instance can be ignored, since it was added in the line above
0 commit comments