|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.platforms.util.VPortInfo
This class is used to encapsulate all of the information given by the user when requesting a port. This class should never be constructed directly, but will be constructed when the user calls the wa() method in GenericUserCore.
Field Summary |
Fields inherited from interface byucc.jhdl.platforms.util.UtilConstants |
directions, IN, NONE, OUT, TRISTATE, UNASSIGNED |
Constructor Summary | |
VPortInfo(java.lang.String port)
Constructor used when the entire bus is wanted. |
|
VPortInfo(java.lang.String port,
int index)
Constructor used when a single bit is wanted. |
|
VPortInfo(java.lang.String port,
int top,
int bottom)
Constructor used when a range is wanted. |
|
VPortInfo(java.lang.String port,
int top,
int bottom,
java.lang.String[] attrib)
Constructor used when a range is wanted. |
|
VPortInfo(java.lang.String port,
int index,
java.lang.String[] attrib)
Constructor used when a single bit is wanted. |
|
VPortInfo(java.lang.String port,
java.lang.String[] attrib)
Constructor used when the entire bus is wanted. |
Method Summary | |
PortProperty[] |
getAttributes()
Get the array of attributes |
int |
getBottom()
Gets the LSB of the requested range |
int |
getDirection()
Get the direction of the port |
Wire |
getEnable()
Get the enable wire. |
int |
getIndex()
Gets the index of the requested bit |
java.lang.String |
getPortName()
Gets the name of the requested port. |
int |
getTop()
Gets the MSB of the requested range |
boolean |
isEntireBus()
|
boolean |
isRange()
|
boolean |
isSingleBit()
|
void |
setDirection(int direction)
Set the direction of the port |
void |
setEnable(Wire enable)
Set the enable wire. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public VPortInfo(java.lang.String port, int top, int bottom, java.lang.String[] attrib)
port
- Name of requested port.top
- Index of the MSB of the requested wirebottom
- Index of the MSB of the requested wireattrib
- List of attributes. The list is simply a
comma and/or space deliminated list.public VPortInfo(java.lang.String port, int top, int bottom)
port
- Name of requested port.top
- Index of the MSB of the requested wirebottom
- Index of the MSB of the requested wirepublic VPortInfo(java.lang.String port, int index, java.lang.String[] attrib)
port
- Name of requested port.index
- Index of the requested bitattrib
- List of attributes. The list is simply a
comma and/or space deliminated list.public VPortInfo(java.lang.String port, int index)
port
- Name of requested port.index
- Index of the requested bitpublic VPortInfo(java.lang.String port, java.lang.String[] attrib)
port
- Name of requested port.attrib
- List of attributes. The list is simply a
comma and/or space deliminated list.public VPortInfo(java.lang.String port)
port
- Name of requested port.Method Detail |
public java.lang.String toString()
public java.lang.String getPortName()
public int getTop()
public int getBottom()
public int getIndex()
public boolean isEntireBus()
public boolean isSingleBit()
public boolean isRange()
public PortProperty[] getAttributes()
public void setDirection(int direction)
direction
- Direction of the portpublic int getDirection()
public void setEnable(Wire enable)
enable
- Enable wire.public Wire getEnable()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |