Skip to content

Commit f0b8b98

Browse files
committed
rcx: createContextNets use direction
Signed-off-by: LucasYuki <[email protected]>
1 parent 88a8f4c commit f0b8b98

File tree

2 files changed

+10
-21
lines changed

2 files changed

+10
-21
lines changed

src/rcx/src/dbUtil.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,7 @@ odb::dbNet* dbCreateNetUtil::createNetSingleWire(const char* netName,
270270
bool skipBterms)
271271
{
272272
if (dir == odb::dbTechLayerDir::NONE) {
273-
return createNetSingleWire(
274-
netName, x1, y1, x2, y2, routingLayer, dir, skipBterms);
273+
dir = odb::dbTechLayerDir::HORIZONTAL;
275274
}
276275

277276
if ((netName == nullptr) || (routingLayer < 1)

src/rcx/src/extmeasure.cpp

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -357,25 +357,15 @@ uint extMeasure::createContextNets(char* dirName,
357357
sprintf(netName, "%s_m%d_cntxt_%d", dirName, met, cnt++);
358358
dbNet* net;
359359
assert(_create_net_util.getBlock() == _block);
360-
if (mlayer->getDirection() != dbTechLayerDir::HORIZONTAL) {
361-
net = _create_net_util.createNetSingleWire(netName,
362-
ll[0],
363-
ll[1],
364-
ur[0],
365-
ur[1],
366-
met,
367-
dbTechLayerDir::HORIZONTAL,
368-
false);
369-
} else {
370-
net = _create_net_util.createNetSingleWire(netName,
371-
ll[0],
372-
ll[1],
373-
ur[0],
374-
ur[1],
375-
met,
376-
mlayer->getDirection(),
377-
false);
378-
}
360+
net = _create_net_util.createNetSingleWire(netName,
361+
ll[0],
362+
ll[1],
363+
ur[0],
364+
ur[1],
365+
met,
366+
mlayer->getDirection(),
367+
false);
368+
379369
addNew2dBox(net, ll, ur, met, true);
380370
}
381371
return cnt - 1;

0 commit comments

Comments
 (0)