1515#include " grid.h"
1616#include " odb/db.h"
1717#include " odb/dbSet.h"
18+ #include " odb/isotropy.h"
1819#include " pdn/PdnGen.hh"
1920#include " shape.h"
2021#include " utl/Logger.h"
@@ -184,14 +185,15 @@ void SRoute::createSrouteWires(
184185 stripe_metal_layer = wire->getTechLayer ();
185186 const odb::Orientation2D direction = wire->getDir ();
186187 if (first) {
187- if ((direction == odb::horizontal) && (stripe_metal_layer == metal_layer)
188+ if ((direction == odb::horizontal)
189+ && (stripe_metal_layer == metal_layer)
188190 && (wire->getDY () != Hdy)) {
189191 first = false ;
190192 pdn_wire = wire;
191193 }
192194 } else {
193- if ((direction == odb::horizontal) && (stripe_metal_layer == metal_layer)
194- && (wire->getDY () != Hdy)
195+ if ((direction == odb::horizontal)
196+ && (stripe_metal_layer == metal_layer) && ( wire->getDY () != Hdy)
195197 && (std::abs (wire->yMin () - avg_iterm_y)
196198 < std::abs (pdn_wire->yMin () - avg_iterm_y))) {
197199 pdn_wire = wire;
@@ -211,7 +213,8 @@ void SRoute::createSrouteWires(
211213 right_pdn_wire = wire;
212214 }
213215 } else {
214- if ((direction == odb::vertical) && (wire->xMax () < pdn_wire->xMax ())
216+ if ((direction == odb::vertical)
217+ && (wire->xMax () < pdn_wire->xMax ())
215218 && (wire->xMax () > avg_iterm_x)) {
216219 right_pdn_wire = wire;
217220 }
@@ -231,7 +234,8 @@ void SRoute::createSrouteWires(
231234 left_pdn_wire = wire;
232235 }
233236 } else {
234- if ((direction == odb::vertical) && (wire->xMin () > pdn_wire->xMin ())
237+ if ((direction == odb::vertical)
238+ && (wire->xMin () > pdn_wire->xMin ())
235239 && (wire->xMin () < avg_iterm_x)) {
236240 left_pdn_wire = wire;
237241 }
0 commit comments