|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbyucc.edif.EdifPortRef
public class EdifPortRef
Represents a port reference within an EdifEnvironment. This object contains a reference to an EdifPort, an EdifNet, and an EdifCellInstance. The EdifPort object is a port that is contained by an EdifCell object. The EdifNet object is the parent or "owner" of this object (i.e. this object is contained in the EdifNet list of EdifPortRef objects). The EdifCellInstance object refers to the cell instance that owns the port. If this reference is null, the referenced port is a top-level port found in the EdifCell that owns the EdifNet object.
EdifPortRef,
EdifNet| Field Summary | |
|---|---|
private EdifCellInstance |
_cellInstance
The EdifCellInstance Object that this EdifPortRef Object connects to. |
private EdifNet |
_net
The EdifNet Object that connects to this EdifPortRef Object. |
private EdifSingleBitPort |
_refSingleBitPort
The EdifPort Object this EdifPortRef Object refers to. |
| Constructor Summary | |
|---|---|
EdifPortRef(EdifNet net,
EdifPort port,
EdifCellInstance instance)
Deprecated. Please use EdifPortRef(EdifNet,EdifSingleBitPort,EdifCellInstance) instead |
|
EdifPortRef(EdifNet net,
EdifPort port,
EdifCellInstance instance,
int busMember)
Deprecated. Please use EdifPortRef(EdifNet,EdifSingleBitPort,EdifCellInstance) instead |
|
EdifPortRef(EdifNet net,
EdifSingleBitPort port,
EdifCellInstance instance)
A constructor for the new EdifSingleBitPort. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Copy reference of refPort (DOES NOT COPY PORT!) Copy reference of EdifCellInstance (DOES NOT COPY INSTANCE) Copy reference to EdifNet (DOES NOT COPY NET) |
boolean |
equalsPortRefWithin(java.util.Collection portRefs)
Return true if the current port ref's port equals within one of the passed-in collection of EdifPortRef Object's port. |
boolean |
equalsPortWithin(java.util.Collection ports)
Return true if the current port ref equals within one of the passed-in collection of EdifPort Objects. |
int |
getBusMember()
Return the index this EdifPortRef Object refers to within a bus. |
EdifCellInstance |
getCellInstance()
Return the EdifCellInstance Object that this EdifPortRef Object connects to. |
EdifNet |
getNet()
Return the EdifNet Object that this EdifPortRef Object is connected to. |
EdifPort |
getPort()
Return the EdifPort Object that this EdifPortRef Object refers to. |
EdifCellInstance |
getRefCell()
Deprecated. This method has been deprecated in favor of the EdifPort.getCellInstance() method that contains a more intuitive method name. |
EdifPort |
getRefPort()
Deprecated. This method has been deprecated in favor of the EdifPort.getPort() method that contains a more intuitive method name. |
EdifSingleBitPort |
getSingleBitPort()
Return the EdifSingleBitPort Object that this EdifPortRef Object refers to. |
private void |
init(EdifNet net,
EdifSingleBitPort port,
EdifCellInstance i)
|
boolean |
isDriverPortRef()
Indicate whether the port ref is a "driver" connection rather than a sink connection. |
boolean |
isSingleBitPortRef()
Return true if port ref corresponds to a single-bit port (i.e. |
boolean |
isTopLevelPortRef()
Indicate whether the EdifPortRef is connected to a top level port. |
boolean |
matchesWithin(java.util.Collection portRefs)
Return true if the current port ref matches within the passed-in collection of EdifPortRef Objects. |
java.lang.String |
toString()
Return a String representation of this Object. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private EdifSingleBitPort _refSingleBitPort
private EdifCellInstance _cellInstance
private EdifNet _net
| Constructor Detail |
|---|
@Deprecated
public EdifPortRef(EdifNet net,
EdifPort port,
EdifCellInstance instance)
net - The EdifNet Object this EdifPortRef Object is connected toport - The EdifPort Object that this EdifPortRef refers toinstance - The EdifCellInstance Object this EdifPortRef connects to
@Deprecated
public EdifPortRef(EdifNet net,
EdifPort port,
EdifCellInstance instance,
int busMember)
net - The EdifNet Object this EdifPortRef Object is connected toport - The EdifPort Object that this EdifPortRef refers toinstance - The EdifCellInstance Object this EdifPortRef connects tobusMember - The position within the EdifPort object to retrieve the
EdifSingleBitPort
public EdifPortRef(EdifNet net,
EdifSingleBitPort port,
EdifCellInstance instance)
net - The EdifNet Object this EdifPortRef Object is connected toport - The EdifSingleBitPort Object that this EdifPortRef refers toinstance - The EdifCellInstance Object this EdifPortRef connects to.| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Objectpublic boolean equalsPortRefWithin(java.util.Collection portRefs)
portRefs - A Collection of EdifPortRef Objects that the port of this
EdifPortRef Object will be compared to in order to determine if an
EdifPort exists between this EdifPortRef Object, and an
EdifPortRef Object within the Collection
public boolean equalsPortWithin(java.util.Collection ports)
ports - A Collection of EdifPort Objects that this EdifPortRef
Object will be compared to in order to determine if an EdifPort
exists between this EdifPortRef Object, and an EdifPort Object
within the Collection
public int getBusMember()
public EdifCellInstance getCellInstance()
public EdifNet getNet()
public EdifPort getPort()
@Deprecated public EdifCellInstance getRefCell()
@Deprecated public EdifPort getRefPort()
public EdifSingleBitPort getSingleBitPort()
public boolean isDriverPortRef()
public boolean isSingleBitPortRef()
public boolean isTopLevelPortRef()
public boolean matchesWithin(java.util.Collection portRefs)
portRefs - A Collection of EdifPortRef Objects that this EdifPortRef
Object will be compared to in order to determine if a match exists
between this EdifPortRef Object, and an EdifPortRef Object within
the Collection
public java.lang.String toString()
Top-level port: TOP-<CellName>.<port>
Internal port: <InstanceName>.<port>
toString in class java.lang.Object
private void init(EdifNet net,
EdifSingleBitPort port,
EdifCellInstance i)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||