|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbyucc.edif.EdifCellInterface
public class EdifCellInterface
Represents the port interface of an EdifCell object.
| Field Summary | |
|---|---|
private EdifCell |
_parent
Parent EdifCell that owns this interface |
private ArrayListNameSpaceResolver |
_portList
This List is used to hold all the EdifPort objects of the interface |
| Constructor Summary | |
|---|---|
EdifCellInterface(EdifCell parent)
Constructs an Empty EdifCellInterface Object with the passed-in EdifCell object as its parent. |
|
| Method Summary | |
|---|---|
EdifPort |
addPort(EdifNameable name,
int width,
int direction)
Adds a new port to the EdifCellInterface. |
EdifPort |
addPort(java.lang.String name,
int width,
int direction)
Adds a new port to the EdifCellInterface. |
boolean |
contains(EdifPort contain)
Checks to see if the passed-in EdifPort is already contained within this EdifCellInterface. |
boolean |
contains(EdifSingleBitPort esbp)
Checks to see if the EdifSingleBitPort is containted within the interface. |
EdifCellInterface |
copy(EdifCell parent)
Returns a deep copy of this EdifCellInterface Object. |
void |
deletePort(EdifPort port)
Removes a port from this EdifCellInterface. |
boolean |
equals(EdifCellInterface cell)
Determines whether the given EdifCell object matches the interface of the current EdifCell object. |
static java.util.Collection |
findMatchingSingleBitPorts(EdifPort busPort,
EdifCellInterface cellIf)
This method will search the passed in EdifCellInterface object for single-bit EdifPort objects that have a name that begins with the name provided by the passed in busPort. |
EdifCell |
getEdifCell()
Return the parent EdifCell that owns this object. |
java.util.Collection |
getInOutPorts()
Returns a Collection of only inout ports. |
java.util.Collection |
getInputOnlyPorts()
Returns a Collection of only input ports. |
java.util.Collection |
getInputPorts()
Returns a Collection of input and inout ports. |
EdifPort |
getMatchingPort(EdifPort port)
Returns a port contained within this EdifCellInterface that matches the passed-in port by calling EdifPort.equals(EdifPort). |
java.util.Collection |
getOutputOnlyPorts()
Returns a Collection of only output ports. |
java.util.Collection |
getOutputPorts()
Returns a Collection of output and inout ports. |
EdifPort |
getPort(java.lang.String name)
Returns the EdifPort object which defines a port on the current EdifCell object and corresponds to the given name. |
java.util.List |
getPortList()
Returns a Collection containing all of the EdifPort objects currently associated with this EdifCell object. |
java.util.Collection |
getSingleBitPortCollection()
|
java.util.Collection |
getSortedPortList()
Returns a sorted Collection containing all of the EdifPort objects currently associated with this EdifCell object. |
int |
getTotalInoutBits()
|
int |
getTotalInputOnlyBits()
|
int |
getTotalInterfaceBits()
|
int |
getTotalOutputOnlyBits()
|
boolean |
portCountEquals(EdifCellInterface cell)
Returns true if the # of output, input, and inout ports match for the current and passed-in cell interfaces. |
void |
toEdif(EdifPrintWriter epw)
Writes the EDIF representation of this EdifCell object to the EdifPrintWriter passed as a parameter. |
java.lang.String |
toString()
|
void |
trimToSize()
Trims this object and all other contained Trimmable Objects down to size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private ArrayListNameSpaceResolver _portList
private EdifCell _parent
| Constructor Detail |
|---|
public EdifCellInterface(EdifCell parent)
parent - The parent EdifCell Object, or owner if this
EdifCellInterface| Method Detail |
|---|
public EdifPort addPort(EdifNameable name,
int width,
int direction)
name - The name of the new port to addwidth - The width of the new port to adddirection - The direction of the new port to add
public EdifPort addPort(java.lang.String name,
int width,
int direction)
name - The name of the new port to addwidth - The width of the new port to adddirection - The direction of the new port to add
public boolean contains(EdifPort contain)
contain - The EdifPort to compare against the
EdifPort Objects contained within this EdifCellInterface Object
to check to see if it already exists in this EdifCellInterface
public boolean contains(EdifSingleBitPort esbp)
esbp -
public EdifCellInterface copy(EdifCell parent)
parent - The EdifCell that will be the parent to this copy
public void deletePort(EdifPort port)
port - The port to removepublic boolean equals(EdifCellInterface cell)
EdifPort.equals(byucc.edif.EdifPort)).
cell - EdifCell object to compare against the current
EdifCell objectcomparePossibleBus - Allows that the case when one port is
a bus and the other port isn't or vice versa to be considered
for interface equalityignoreBusDirection - If true, the direction of the individual
ports will be ignored
public static java.util.Collection findMatchingSingleBitPorts(EdifPort busPort,
EdifCellInterface cellIf)
busPort - A EdifPort object that is multiple bits (i.e. a bus). The
full name of this Port will be used to find matching single-bit EdifPort objects.cellIf - The EdifCellInterface object that will be searched.
public EdifCell getEdifCell()
public EdifPort getPort(java.lang.String name)
name - A string indicating the name of the EdifPort
object desired to be found
public EdifPort getMatchingPort(EdifPort port)
EdifPort.equals(EdifPort).
port - The EdifPort Object to match within this interfacepublic java.util.Collection getInputOnlyPorts()
public java.util.Collection getInputPorts()
public java.util.Collection getOutputOnlyPorts()
public java.util.Collection getOutputPorts()
public int getTotalInterfaceBits()
public int getTotalInputOnlyBits()
public int getTotalOutputOnlyBits()
public int getTotalInoutBits()
public java.util.Collection getInOutPorts()
public java.util.List getPortList()
public java.util.Collection getSingleBitPortCollection()
public java.util.Collection getSortedPortList()
public boolean portCountEquals(EdifCellInterface cell)
cell - The interface used for comparison
public void toEdif(EdifPrintWriter epw)
EdifPrintWriter passed as a parameter.
toEdif in interface EdifOutepw - EdifPrintWriter to which EDIF will be writtenpublic java.lang.String toString()
toString in class java.lang.Objectpublic void trimToSize()
trimToSize in interface Trimable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||