|
14 | 14 | #include "detailed_manager.h" |
15 | 15 | #include "infrastructure/architecture.h" |
16 | 16 | #include "infrastructure/detailed_segment.h" |
| 17 | +#include "odb/dbTypes.h" |
17 | 18 | #include "util/symmetry.h" |
18 | 19 | #include "util/utility.h" |
19 | 20 | #include "utl/Logger.h" |
@@ -153,6 +154,8 @@ int DetailedOrient::orientCells(int& changed) |
153 | 154 | //////////////////////////////////////////////////////////////////////////////// |
154 | 155 | bool DetailedOrient::orientMultiHeightCellForRow(Node* ndi, int row) |
155 | 156 | { |
| 157 | + using odb::dbOrientType; |
| 158 | + |
156 | 159 | // Takes a multi height cell and fixes its orientation so |
157 | 160 | // that it is correct/agrees with the power stripes. |
158 | 161 | // Return true is orientation is okay, otherwise false to |
@@ -211,8 +214,10 @@ bool DetailedOrient::orientSingleHeightCellForRow(Node* ndi, int row) |
211 | 214 | return false; |
212 | 215 | } |
213 | 216 |
|
214 | | - unsigned rowOri = arch_->getRow(row)->getOrient(); |
215 | | - unsigned cellOri = ndi->getOrient(); |
| 217 | + const unsigned rowOri = arch_->getRow(row)->getOrient(); |
| 218 | + const unsigned cellOri = ndi->getOrient(); |
| 219 | + |
| 220 | + using odb::dbOrientType; |
216 | 221 |
|
217 | 222 | if (rowOri == dbOrientType::R0 || rowOri == dbOrientType::MY) { |
218 | 223 | if (cellOri == dbOrientType::R0 || cellOri == dbOrientType::MY) { |
@@ -346,6 +351,7 @@ int DetailedOrient::flipCells() |
346 | 351 | || ndi->getRight() + leftPadding > rx) { |
347 | 352 | continue; |
348 | 353 | } |
| 354 | + using odb::dbOrientType; |
349 | 355 | dbOrientType orig_orient = ndi->getOrient(); |
350 | 356 | dbOrientType flipped_orient; |
351 | 357 | switch (orig_orient) { |
@@ -402,8 +408,10 @@ unsigned DetailedOrient::orientFind(Node* ndi, int row) |
402 | 408 | // orientation, but this might be a little smarter if cells have been flipped |
403 | 409 | // around the Y-axis previously to improve WL... |
404 | 410 |
|
405 | | - unsigned rowOri = arch_->getRow(row)->getOrient(); |
406 | | - unsigned cellOri = ndi->getOrient(); |
| 411 | + const unsigned rowOri = arch_->getRow(row)->getOrient(); |
| 412 | + const unsigned cellOri = ndi->getOrient(); |
| 413 | + |
| 414 | + using odb::dbOrientType; |
407 | 415 |
|
408 | 416 | if (rowOri == dbOrientType::R0 || rowOri == dbOrientType::MY) { |
409 | 417 | if (cellOri == dbOrientType::R0 || cellOri == dbOrientType::MY) { |
@@ -435,6 +443,7 @@ bool DetailedOrient::isLegalSym(unsigned rowOri, |
435 | 443 | unsigned siteSym, |
436 | 444 | unsigned cellOri) |
437 | 445 | { |
| 446 | + using odb::dbOrientType; |
438 | 447 | // Messy... |
439 | 448 | if (siteSym == Symmetry_Y) { |
440 | 449 | if (rowOri == dbOrientType::R0) { |
|
0 commit comments