public class Port
extends Object
implements Serializable, Cloneable
SitePinInst to which they are
connected.| Constructor and Description |
|---|
Port()
Default constructor, everything is null.
|
Port(String name) |
Port(String name,
boolean isOutputPort,
String initialPassThruPinName)
Special constructor when creating a port that has a pass-thru connection
|
Port(String name,
Collection<SitePinInst> sitePinInsts) |
Port(String name,
SitePinInst sitePinInst) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPassThruPortName(String portName) |
void |
addSitePinInst(SitePinInst sitePinInst) |
boolean |
equals(Object obj)
Checks if this and obj are equal ports by comparing port name,
instance name and pin name.
|
RelocatableTileRectangle |
getBoundingBox() |
String |
getName()
Gets and returns the name of the port.
|
Net |
getNet() |
Tile |
getPartitionPinLoc() |
List<String> |
getPassThruPortNames() |
SiteInst |
getSingleSiteInst() |
String |
getSingleSiteInstName()
Gets and returns the instance name.
|
SitePinInst |
getSingleSitePinInst()
Convenience method for ports with at most one SitePinInst.
|
String |
getSingleSitePinInstName()
Gets the pin name of the instance where the port resides.
|
Set<SitePinInst> |
getSitePinInsts() |
PortType |
getType() |
float |
getWorstCasePortDelay() |
int |
hashCode()
Generates hashCode for this port based on instance name, port name, and pin name.
|
boolean |
isOutPort()
Simply looks at the pin of the port to determine
its direction.
|
void |
removeSitePinInst(SitePinInst p) |
void |
setName(String name)
Sets the name of the port.
|
void |
setOutputPort(boolean isOutputPort) |
void |
setPartitionPinLoc(Tile partitionPinLoc) |
void |
setPassThruPortNames(ArrayList<String> passThruPinNames) |
void |
setType(PortType type) |
void |
setWorstCasePortDelay(float worstCasePortDelay) |
String |
toString() |
public Port()
public Port(String name,
SitePinInst sitePinInst)
name - Name of the port.sitePinInst - Pin which the port referencespublic Port(String name,
Collection<SitePinInst> sitePinInsts)
name - Name of the port.sitePinInsts - Pins which the port referencespublic Port(String name,
boolean isOutputPort,
String initialPassThruPinName)
name - Name of the port on the moduleisOutputPort - Flag denoting if this port is an output or inputinitialPassThruPinName - The name of the pass-thru port this port connects topublic Port(String name)
name - Name of the port.public String getName()
public void setName(String name)
name - The new name of the port.public String getSingleSiteInstName()
public String getSingleSitePinInstName()
public void addSitePinInst(SitePinInst sitePinInst)
sitePinInst - the pin to addpublic SitePinInst getSingleSitePinInst()
public Set<SitePinInst> getSitePinInsts()
public SiteInst getSingleSiteInst()
public boolean isOutPort()
public void setOutputPort(boolean isOutputPort)
isOutputPort - the isOutputPort to setpublic List<String> getPassThruPortNames()
public void setPassThruPortNames(ArrayList<String> passThruPinNames)
passThruPinNames - the passThruPinNames to setpublic void addPassThruPortName(String portName)
public Tile getPartitionPinLoc()
public void setPartitionPinLoc(Tile partitionPinLoc)
public float getWorstCasePortDelay()
public void setWorstCasePortDelay(float worstCasePortDelay)
worstCasePortDelay - the worstCasePortDelay to setpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Objectpublic PortType getType()
public void setType(PortType type)
type - the type to setpublic Net getNet()
public void removeSitePinInst(SitePinInst p)
public RelocatableTileRectangle getBoundingBox()