byucc.jhdl.platforms.util
Class UserPortInfo

java.lang.Object
  extended bybyucc.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.


Field Summary
 
Fields inherited from interface byucc.jhdl.platforms.util.UtilConstants
directions, IN, NONE, OUT, TRISTATE, UNASSIGNED
 
Constructor Summary
UserPortInfo(java.lang.String name, VPortInfo vpi)
          Used to construct a port that has an enable wire.
 
Method Summary
 void addDirection(VPortInfo vpi)
          Method used to add a direction to a bit of a virtual port which has already been assigned.
 int getBottom()
           
 Wire getEnableWire()
           
 PortProperty getInAttribute(java.lang.String prop)
           
 PortProperty[] getInAttributes()
           
 java.lang.String getName()
           
 PortProperty getOutAttribute(java.lang.String prop)
           
 PortProperty[] getOutAttributes()
           
 int getPortType()
          Get the port type for this port.
 Wire getSingleEnable(int index)
           
 int getTop()
           
 int getWidth()
           
 boolean hasInPort()
           
 boolean hasOutPort()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserPortInfo

public UserPortInfo(java.lang.String name,
                    VPortInfo vpi)
Used to construct a port that has an enable wire.

Method Detail

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.