@@ -1876,21 +1876,17 @@ void GlobalRouter::addResourcesForPinAccess()
18761876 const int layer = pin.getConnectionLayer ();
18771877 odb::dbTechLayer* tech_layer = tech->findRoutingLayer (layer);
18781878 if (tech_layer->getDirection () == odb::dbTechLayerDir::VERTICAL) {
1879- const bool east_north_pin = pin.getEdge () == PinEdge::east
1880- || pin.getEdge () == PinEdge::north;
1881- int pin_y1, pin_y2;
1882- pin_y1 = east_north_pin ? pin_y : pin_y - 1 ;
1883- pin_y2 = east_north_pin ? pin_y + 1 : pin_y;
1879+ const bool north_pin = pin.getEdge () == PinEdge::north;
1880+ const int pin_y1 = north_pin ? pin_y : pin_y - 1 ;
1881+ const int pin_y2 = north_pin ? pin_y + 1 : pin_y;
18841882 const int edge_cap = fastroute_->getEdgeCapacity (
18851883 pin_x, pin_y1, pin_x, pin_y2, layer);
18861884 fastroute_->addAdjustment (
18871885 pin_x, pin_y1, pin_x, pin_y2, layer, edge_cap + 1 , false );
18881886 } else {
1889- const bool east_north_pin = pin.getEdge () == PinEdge::east
1890- || pin.getEdge () == PinEdge::north;
1891- int pin_x1, pin_x2;
1892- pin_x1 = east_north_pin ? pin_x : pin_x - 1 ;
1893- pin_x2 = east_north_pin ? pin_x + 1 : pin_x;
1887+ const bool east_pin = pin.getEdge () == PinEdge::east;
1888+ const int pin_x1 = east_pin ? pin_x : pin_x - 1 ;
1889+ const int pin_x2 = east_pin ? pin_x + 1 : pin_x;
18941890 const int edge_cap = fastroute_->getEdgeCapacity (
18951891 pin_x1, pin_y, pin_x2, pin_y, layer);
18961892 fastroute_->addAdjustment (
0 commit comments