public abstract class AbstractRouter
extends Object
Constructor and Description |
---|
AbstractRouter() |
Modifier and Type | Method and Description |
---|---|
void |
addInitialSourceForRouting(SitePinInst currSource)
This will add the sole source of the net to the set of sources to be used by the router.
|
Design |
getDesign() |
HashMap<Net,ArrayList<RouteNode>> |
getReservedNodes() |
ArrayList<RouteNode> |
getReservedNodesForNet(Net net)
Gets are returns a list of reserved nodes for the provide net.
|
ArrayList<RouteNode> |
getSourcesFromPIPs(ArrayList<PIP> pips)
Creates sources from a list of PIPs
|
static boolean |
isClkPin(SitePinInst sinkPin) |
boolean |
isNodeUsed(RouteNode routeNode) |
boolean |
isNodeUsed(Tile tile,
int wire) |
void |
markNodeUsed(RouteNode n) |
void |
markPIPsAsUsed(ArrayList<PIP> pips)
Examines the pips in the list and marks all of the resources
as used.
|
void |
setCost(RouteNode routeNode,
boolean isRouteThrough)
Cost function, used to set each node's cost to be prioritized by the queue
|
public Design getDesign()
public HashMap<Net,ArrayList<RouteNode>> getReservedNodes()
public ArrayList<RouteNode> getReservedNodesForNet(Net net)
net
- The net to get reserved nodes for.public boolean isNodeUsed(Tile tile, int wire)
public boolean isNodeUsed(RouteNode routeNode)
public void markPIPsAsUsed(ArrayList<PIP> pips)
pips
- The PIPs to mark as used.public ArrayList<RouteNode> getSourcesFromPIPs(ArrayList<PIP> pips)
pips
- The pips of the net to examine.public void markNodeUsed(RouteNode n)
public void addInitialSourceForRouting(SitePinInst currSource)
currSource
- The source pin of the netpublic void setCost(RouteNode routeNode, boolean isRouteThrough)
routeNode
- The node to calculate and set its cost based on currSink.public static boolean isClkPin(SitePinInst sinkPin)