hades.models.ruge
Class Register
java.lang.Object
hades.simulator.SimObject
hades.models.ruge.Register
- All Implemented Interfaces:
- java.lang.Cloneable, ContextToolTip, java.io.Serializable, Simulatable
- public class Register
- extends SimObject
- implements Simulatable, java.io.Serializable
Register - a Register for integer values
- 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 |
configure()
create and display a 'ConfigDialog' to set the parameters for
a SimObject. |
void |
elaborate(java.lang.Object arg)
elaborate(): This method is called by the simulation engine
to initialize the simulation object. |
void |
evaluate(java.lang.Object arg)
evaluate(): called by the simulation engine on all events that
concern this object. |
double |
getDelay()
|
java.lang.Integer |
getValue()
|
boolean |
initialize(java.lang.String s)
initialize a Register from a String that contains the integer
version id, the default output value, and the propagation delay, e.g. |
void |
schedule()
|
void |
setDelay(double _delay)
|
void |
setDelay(java.lang.String s)
|
void |
setValue(java.lang.Integer _value)
|
void |
setValue(java.lang.String s)
|
java.lang.String |
toString()
toString() - the usual info method |
void |
updateColors()
|
void |
write(java.io.PrintWriter ps)
|
Methods inherited from class hades.simulator.SimObject |
constructDynamicSymbol, copy, getBindkey, getClassLoader, getDebug, getEditor, getExternalResources, getFullName, getName, getParent, getPort, getPorts, getPropertySheet, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getToolTip, getVersionId, isVisible, keyPressed, message, mousePressed, needsDynamicSymbol, needsExternalResources, setClassLoader, setConsole, setDebug, setEditor, setName, setParent, setPorts, setSimulator, setSymbol, setVersionId, setVisible, tearDown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
port_CLK
protected Port port_CLK
port_ENA
protected Port port_ENA
port_D
protected Port port_D
port_Q
protected Port port_Q
value
protected java.lang.Integer value
value_U
protected java.lang.Integer value_U
ieee_U
protected StdLogic1164 ieee_U
delay
protected double delay
defaultdelay
protected double defaultdelay
t_setup
protected double t_setup
Register
public Register()
getValue
public java.lang.Integer getValue()
setValue
public void setValue(java.lang.Integer _value)
setValue
public void setValue(java.lang.String s)
getDelay
public double getDelay()
setDelay
public void setDelay(double _delay)
setDelay
public void setDelay(java.lang.String s)
elaborate
public void elaborate(java.lang.Object arg)
- Description copied from interface:
Simulatable
- elaborate(): This method is called by the simulation engine
to initialize the simulation object.
- Specified by:
elaborate
in interface Simulatable
- Overrides:
elaborate
in class SimObject
evaluate
public void evaluate(java.lang.Object arg)
- Description copied from interface:
Simulatable
- evaluate(): called by the simulation engine on all events that
concern this object. The object is responsible for updating its
internal state and for scheduling all pending output events.
- Specified by:
evaluate
in interface Simulatable
- Overrides:
evaluate
in class SimObject
- Parameters:
arg
- an arbitrary object argument
schedule
public void schedule()
updateColors
public void updateColors()
configure
public void configure()
- Description copied from class:
SimObject
- create and display a 'ConfigDialog' to set the parameters for
a SimObject. The default ConfigDialog for the base class (SimObject)
itself is empty except for the 'instance name' of the SimObject.
- Overrides:
configure
in class SimObject
initialize
public boolean initialize(java.lang.String s)
- initialize a Register from a String that contains the integer
version id, the default output value, and the propagation delay, e.g.
'1001 42 4.6E-8'.
- Overrides:
initialize
in class SimObject
write
public void write(java.io.PrintWriter ps)
- Overrides:
write
in class SimObject
toString
public java.lang.String toString()
- toString() - the usual info method
- Overrides:
toString
in class SimObject