hades.models.io
Class Constant
java.lang.Object
hades.simulator.SimObject
hades.models.io.Constant
- All Implemented Interfaces:
- java.lang.Cloneable, ContextToolTip, java.io.Serializable, Simulatable
- Direct Known Subclasses:
- Constant0, Constant1, ConstantH, ConstantL, ConstantU, ConstantW, ConstantX, ConstantZ
- public class Constant
- extends SimObject
- implements Simulatable, java.io.Serializable
Constant - common subclass for Constant_0, Constant_1, Constant_H,
etc., that is, simulation models that generate constant StdLogic1164 values.
Signals are expected to be StdLogic1164 objects.
- See Also:
- Serialized Form
Fields inherited from class hades.simulator.SimObject |
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible |
Method Summary |
void |
elaborate(java.lang.Object arg)
elaborate:
If our output signal is non-null, we schedule an SimEvent at
the current simulation time, in order to initialize the Signal
with the value Constant ('0'). |
void |
evaluate(java.lang.Object arg)
evaluate:
As a Constant-Object, we will schedule a new 'Constant' value, whenever
the Signal might have changed. |
protected StdLogic1164 |
getOutputValue()
|
Methods inherited from class hades.simulator.SimObject |
configure, constructDynamicSymbol, copy, getBindkey, getClassLoader, getDebug, getEditor, getExternalResources, getFullName, getName, getParent, getPort, getPorts, getPropertySheet, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getToolTip, getVersionId, initialize, isVisible, keyPressed, message, mousePressed, needsDynamicSymbol, needsExternalResources, setClassLoader, setConsole, setDebug, setEditor, setName, setParent, setPorts, setSimulator, setSymbol, setVersionId, setVisible, tearDown, toString, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
port_Y
protected PortStdLogic1164 port_Y
value_Y
protected StdLogic1164 value_Y
Constant
public Constant()
getOutputValue
protected StdLogic1164 getOutputValue()
elaborate
public void elaborate(java.lang.Object arg)
- elaborate:
If our output signal is non-null, we schedule an SimEvent at
the current simulation time, in order to initialize the Signal
with the value Constant ('0').
- Specified by:
elaborate
in interface Simulatable
- Overrides:
elaborate
in class SimObject
evaluate
public void evaluate(java.lang.Object arg)
- evaluate:
As a Constant-Object, we will schedule a new 'Constant' value, whenever
the Signal might have changed.
- Specified by:
evaluate
in interface Simulatable
- Overrides:
evaluate
in class SimObject
- Parameters:
arg
- an arbitrary object argument