public class TimingGroup extends Object implements Comparable<TimingGroup>
Modifier and Type | Field and Description |
---|---|
float |
cost |
int |
d
Term "D" that is used within the delay calculation
|
float |
delay |
int |
dist
This is the distance of the TimingGroup corresponding to its wire length type.
|
static TimingGroup[] |
EMPTY_ARRAY
Memoized static array for use by Collection.toArray() or similar
|
int |
sameSpotCounter |
Constructor and Description |
---|
TimingGroup(SitePinInst startPin,
TimingModel timingModel)
Constructor used for Router example to create a TimingGroup, starting at a given SitePinInst.
|
TimingGroup(TimingModel timingModel)
Default constructor used by the TimingModel to create a TimingGroup.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Node n,
IntentCode c)
Used for adding a node into a TimingGroup.
|
void |
add(PIP p)
Used for adding a PIP into a TimingGroup.
|
int |
compareTo(TimingGroup tg)
This object implements the comparable object interface so that TimingGroup objects may be
compared.
|
void |
computeTypes()
Computes the TimingGroup GroupDelayType for this group.
|
GroupDelayType |
getDelayType() |
TimingDirection |
getDirection() |
Node |
getLastNode()
Gets the last node in the timing group
|
PIP |
getLastPIP() |
TimingGroup[] |
getNextTimingGroups()
Method used by the Router example to get the downhill TimingGroups from a given TimingGroup.
|
Node |
getNode(int i)
Gets the node in the timing group at the specified index
|
List<Node> |
getNodes()
Gets the list of nodes in the timing group.
|
IntentCode |
getNodeType(int i) |
List<IntentCode> |
getNodeTypes() |
PIP |
getPIP(int i) |
List<PIP> |
getPIPs() |
GroupWireDirection |
getWireDirection() |
boolean |
hasPinFeed() |
boolean |
hasPIPs()
Returns whether this TimingGroup contains any PIPs.
|
boolean |
isFinalGroup() |
boolean |
isInitialGroup() |
void |
setFinalGroup(boolean value) |
void |
setInitialGroup(boolean value) |
String |
toString()
Returns a String representation of this object that may be useful for debugging.
|
public int d
public int dist
public float delay
public float cost
public int sameSpotCounter
public static final TimingGroup[] EMPTY_ARRAY
public TimingGroup(TimingModel timingModel)
timingModel
- Reference to the TimingModel.public TimingGroup(SitePinInst startPin, TimingModel timingModel)
startPin
- Starting SitePinInst for the TimingGroup.timingModel
- Reference to the current TimingModel.public TimingGroup[] getNextTimingGroups()
public void add(Node n, IntentCode c)
n
- Node to be added.c
- IntentCode is the Vivado-assigned Type for the given node.public void add(PIP p)
p
- PIP to be added.public String toString()
toString
in class Object
public void computeTypes()
public int compareTo(TimingGroup tg)
compareTo
in interface Comparable<TimingGroup>
tg
- Second TimingGroup to compare this object to.public boolean hasPIPs()
public List<Node> getNodes()
public Node getNode(int i)
i
- Index of the node to get.public Node getLastNode()
public List<PIP> getPIPs()
public PIP getPIP(int i)
public PIP getLastPIP()
public List<IntentCode> getNodeTypes()
public IntentCode getNodeType(int i)
public GroupDelayType getDelayType()
public GroupWireDirection getWireDirection()
public TimingDirection getDirection()
public boolean isInitialGroup()
public boolean isFinalGroup()
public void setInitialGroup(boolean value)
public void setFinalGroup(boolean value)
public boolean hasPinFeed()