public class NetTools
extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NetTools.NodeTree |
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTINUE_ELBOW |
static String |
LAST_ELBOW |
static String |
VERTICAL_BAR |
static String |
WHITE_SPACE |
| Constructor and Description |
|---|
NetTools() |
| Modifier and Type | Method and Description |
|---|---|
static Node |
findClockRootVRoute(Net net)
Finds the clock root VROUTE node.
|
static String |
getClockTreeSpine(Net net)
Generates the clock tree up to the horizontal distribution nodes of the
provided clock net up to the NODE_PINFEED nodes.
|
static String |
getNetTreeString(Net net)
Returns a string representation of the net's routing tree using tree
characters (├─, └─).
|
static String |
getNetTreeString(Net net,
Function<Node,Boolean> filter)
Returns a string representation of the net's routing tree using tree
characters (├─, └─).
|
static String |
getNetTreeString(Net net,
Function<Node,Boolean> filter,
Function<Node,String> customToString)
Returns a string representation of the net's routing tree using tree
characters (├─, └─).
|
static List<NetTools.NodeTree> |
getNodeTrees(Net net)
Compute the node routing tree of the given Net by examining its PIPs.
|
static List<NetTools.NodeTree> |
getNodeTrees(Net net,
Function<Node,Boolean> filter)
Compute the node routing tree of the given Net by examining its PIPs.
|
static String |
getVerticalClockTreeSpine(Net net)
Gets a string representation of the vertical clock routing spine for the given net.
|
static boolean |
hasClockSinks(Net net)
Checks if the provided net drives a clock site pin input.
|
static boolean |
isGlobalClock(Net net) |
public static final String CONTINUE_ELBOW
public static final String LAST_ELBOW
public static final String VERTICAL_BAR
public static final String WHITE_SPACE
public static boolean isGlobalClock(Net net)
public static List<NetTools.NodeTree> getNodeTrees(Net net)
net - Net to analyze.public static List<NetTools.NodeTree> getNodeTrees(Net net, Function<Node,Boolean> filter)
net - Net to analyze.filter - A function that when is applied to a node, if it returns true will be excluded from the tree.public static boolean hasClockSinks(Net net)
net - The net to examine.public static String getNetTreeString(Net net)
net - The net to generate the tree of nodes from.public static String getNetTreeString(Net net, Function<Node,Boolean> filter)
net - The net to generate the tree of nodes from.filter - A function that when returns true for a node, the node should
be excluded.public static String getNetTreeString(Net net, Function<Node,Boolean> filter, Function<Node,String> customToString)
net - The net to generate the tree of nodes from.filter - A function that when returns true for a node, the node
should be excluded.customToString - A custom toString() function to be applied to the Node
when printed.public static String getClockTreeSpine(Net net)
net - The clock netpublic static String getVerticalClockTreeSpine(Net net)
net - The net to analyze