Skip to content

Commit

Permalink
Tidy up
Browse files Browse the repository at this point in the history
Signed-off-by: Eddie Hung <eddie.hung@amd.com>
  • Loading branch information
eddieh-xlnx committed Nov 13, 2024
1 parent 8c0acba commit d1e843a
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions src/com/xilinx/rapidwright/rwroute/RWRoute.java
Original file line number Diff line number Diff line change
Expand Up @@ -627,19 +627,16 @@ protected NetWrapper createNetWrapperAndConnections(Net net) {
}

indirectConnections.add(connection);
BitSet[] eastWestWires = (routingGraph.eastWestWires == null) ? null :
routingGraph.eastWestWires.get(sinkINTNode.getTile().getTileTypeEnum());
RouteNode sinkRnode;
if (eastWestWires != null && eastWestWires[0].get(sinkINTNode.getWireIndex())) {
sinkRnode = routingGraph.getOrCreate(sinkINTNode, RouteNodeType.EXCLUSIVE_SINK_EAST);
sinkRnode.setType(RouteNodeType.EXCLUSIVE_SINK_EAST);
} else if (eastWestWires != null && eastWestWires[1].get(sinkINTNode.getWireIndex())) {
sinkRnode = routingGraph.getOrCreate(sinkINTNode, RouteNodeType.EXCLUSIVE_SINK_WEST);
sinkRnode.setType(RouteNodeType.EXCLUSIVE_SINK_WEST);
} else {
sinkRnode = routingGraph.getOrCreate(sinkINTNode, RouteNodeType.EXCLUSIVE_SINK_BOTH);
sinkRnode.setType(RouteNodeType.EXCLUSIVE_SINK_BOTH);
}

RouteNodeInfo rni = RouteNodeInfo.get(sinkINTNode, routingGraph);
assert(rni.type.isAnyLocal());
RouteNodeType sinkType = rni.type == RouteNodeType.LOCAL_EAST ? RouteNodeType.EXCLUSIVE_SINK_EAST :
rni.type == RouteNodeType.LOCAL_WEST ? RouteNodeType.EXCLUSIVE_SINK_WEST :
rni.type == RouteNodeType.LOCAL_BOTH ? RouteNodeType.EXCLUSIVE_SINK_BOTH :
null;
assert(sinkType != null);
RouteNode sinkRnode = routingGraph.getOrCreate(sinkINTNode, sinkType);
sinkRnode.setType(sinkType);
connection.setSinkRnode(sinkRnode);

// Where appropriate, allow all 6 LUT pins to be swapped to begin with
Expand Down

0 comments on commit d1e843a

Please sign in to comment.