|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.byu.ece.edif.core.EdifCellInterface
public class EdifCellInterface
Represents the port interface of an EdifCell object. The port
interface is a list of EdifPort objects.
| Field Summary | |
|---|---|
private EdifCell |
_parent
Parent EdifCell that owns this interface |
private EdifNameSpaceList<EdifPort> |
_portList
This List is used to hold all the EdifPort objects of the interface |
| Constructor Summary | |
|---|---|
EdifCellInterface(EdifCell parent)
Construct an Empty EdifCellInterface Object with the passed-in EdifCell object as its parent. |
|
| Method Summary | |
|---|---|
EdifPort |
addPort(EdifNameable name,
int width,
int direction)
Add a new port to the EdifCellInterface. |
EdifPort |
addPort(java.lang.String name,
int width,
int direction)
Add a new port to the EdifCellInterface. |
EdifPort |
addPortUniqueName(EdifNameable name,
int width,
int direction)
|
EdifPort |
addPortUniqueName(java.lang.String name,
int width,
int direction)
|
boolean |
contains(EdifPort contain)
Check to see if the passed-in EdifPort is already contained within this EdifCellInterface. |
boolean |
contains(EdifSingleBitPort esbp)
Check to see if the EdifSingleBitPort is contained within the interface. |
EdifCellInterface |
copy(EdifCell parent)
Return a deep copy of this EdifCellInterface Object. |
void |
deletePort(EdifPort port)
Remove a port from this EdifCellInterface. |
boolean |
equals(EdifCellInterface cell)
Determine whether the given EdifCell object matches the interface of the current EdifCell object. |
static java.util.Collection<EdifPort> |
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<EdifPort> |
getInOutPorts()
Return a Collection of only inout ports. |
java.util.Collection<EdifPort> |
getInputOnlyPorts()
Return a Collection of only input ports. |
java.util.Collection<EdifPort> |
getInputPorts()
Return a Collection of input and inout ports. |
EdifPort |
getMatchingPort(EdifPort port)
Return a port contained within this EdifCellInterface that matches the passed-in port by calling EdifPort.equals(EdifPort). |
java.util.Collection<EdifPort> |
getOutputOnlyPorts()
Return a Collection of only output ports. |
java.util.Collection<EdifPort> |
getOutputPorts()
Return a Collection of output and inout ports. |
EdifPort |
getPort(java.lang.String name)
Return the EdifPort object which defines a port on the current EdifCell object and corresponds to the given name. |
java.util.List<EdifPort> |
getPortList()
Return a Collection containing all of the EdifPort objects currently associated with this EdifCell object. |
java.util.Collection<EdifSingleBitPort> |
getSingleBitPortCollection()
|
java.util.Collection<EdifPort> |
getSortedPortList()
Return a sorted Collection containing all of the EdifPort objects currently associated with this EdifCell object. |
int |
getTotalInoutBits()
|
int |
getTotalInputOnlyBits()
|
int |
getTotalInterfaceBits()
|
int |
getTotalOutputOnlyBits()
|
EdifNameable |
getUniquePortNameable(EdifNameable en)
|
EdifNameable |
getUniquePortNameable(EdifPort port)
|
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)
Write the EDIF representation of this EdifCell object to the EdifPrintWriter passed as a parameter. |
java.lang.String |
toString()
|
void |
trimToSize()
Trim 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 EdifCell _parent
private EdifNameSpaceList<EdifPort> _portList
| 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)
throws EdifNameConflictException
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
EdifNameConflictException
public EdifPort addPort(java.lang.String name,
int width,
int direction)
throws InvalidEdifNameException,
EdifNameConflictException
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
InvalidEdifNameException
EdifNameConflictException
public EdifPort addPortUniqueName(EdifNameable name,
int width,
int direction)
public EdifPort addPortUniqueName(java.lang.String name,
int width,
int direction)
throws InvalidEdifNameException
InvalidEdifNameExceptionpublic 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(EdifCellInterface)).
cell - EdifCell object to compare against the current EdifCell
object
public static java.util.Collection<EdifPort> 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 java.util.Collection<EdifPort> getInOutPorts()
public java.util.Collection<EdifPort> getInputOnlyPorts()
public java.util.Collection<EdifPort> getInputPorts()
public EdifPort getMatchingPort(EdifPort port)
EdifPort.equals(EdifPort).
port - The EdifPort Object to match within this interfacepublic java.util.Collection<EdifPort> getOutputOnlyPorts()
public java.util.Collection<EdifPort> getOutputPorts()
public EdifPort getPort(java.lang.String name)
name - A string indicating the name of the EdifPort object desired
to be found
public java.util.List<EdifPort> getPortList()
public java.util.Collection<EdifSingleBitPort> getSingleBitPortCollection()
public java.util.Collection<EdifPort> getSortedPortList()
public int getTotalInoutBits()
public int getTotalInputOnlyBits()
public int getTotalInterfaceBits()
public int getTotalOutputOnlyBits()
public EdifNameable getUniquePortNameable(EdifNameable en)
public EdifNameable getUniquePortNameable(EdifPort port)
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 | |||||||||