hades.models
Class PortStdLogic1164

java.lang.Object
  extended byhades.simulator.Port
      extended byhades.models.PortStdLogic1164
All Implemented Interfaces:
ContextToolTip, java.io.Serializable

public class PortStdLogic1164
extends Port

PortStdLogic1164: a Port for SignalStdLogic1164 signals.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class hades.simulator.Port
BIDIR, class1164, GND, handler, IN, INOUT, name, optArg, OUT, parent, PASSIVE_IN, signal, signalClass, TOPLEVEL_IN, type, UNUSED, value, VCC
 
Constructor Summary
PortStdLogic1164(SimObject parent, java.lang.String name, int type, Signal signal)
           
 
Method Summary
 StdLogic1164 getValueOrU()
          return a StdLogic1164 with the current value of the signal connected to this port.
 boolean hasEvent()
          check whether the Signal connected to this Port has an event at the current simulation time.
 
Methods inherited from class hades.simulator.Port
getHandler, getName, getOptArg, getParent, getSignal, getSignalClass, getToolTip, getType, getTypeString, getValue, isInputPort, isPowerPort, setHandler, setName, setOptArg, setParent, setSignal, setValue, tearDown, toString, toStringVerbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PortStdLogic1164

public PortStdLogic1164(SimObject parent,
                        java.lang.String name,
                        int type,
                        Signal signal)
Method Detail

getValueOrU

public StdLogic1164 getValueOrU()
return a StdLogic1164 with the current value of the signal connected to this port. If no signal is connected to this port, return the the undefined StdLogic1164 (_U) value.


hasEvent

public boolean hasEvent()
check whether the Signal connected to this Port has an event at the current simulation time. Return false if no Signal is connected to this port.