byucc.jhdl.platforms.util
Class UserPortInfo
java.lang.Object
byucc.jhdl.platforms.util.UserPortInfo
- All Implemented Interfaces:
- UtilConstants
- public class UserPortInfo
- extends java.lang.Object
- implements UtilConstants
The class contains the information needed to instance pads, etc.
based on the parameters of the user circuit.
Constructor Summary |
UserPortInfo(java.lang.String name,
VPortInfo vpi)
Used to construct a port that has an enable wire. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserPortInfo
public UserPortInfo(java.lang.String name,
VPortInfo vpi)
- Used to construct a port that has an enable wire.
addDirection
public void addDirection(VPortInfo vpi)
- Method used to add a direction to a bit of a virtual port
which has already been assigned.
getPortType
public int getPortType()
- Get the port type for this port.
- Returns:
- Port type, either IN, OUT, TRISTATE or UNASSIGNED
getEnableWire
public Wire getEnableWire()
getTop
public int getTop()
getBottom
public int getBottom()
getInAttributes
public PortProperty[] getInAttributes()
getInAttribute
public PortProperty getInAttribute(java.lang.String prop)
getOutAttributes
public PortProperty[] getOutAttributes()
getOutAttribute
public PortProperty getOutAttribute(java.lang.String prop)
getSingleEnable
public Wire getSingleEnable(int index)
getName
public java.lang.String getName()
hasInPort
public boolean hasInPort()
hasOutPort
public boolean hasOutPort()
getWidth
public int getWidth()
Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.