|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.simulator.SimObject
hades.models.register.Register
hades.models.register.RegisterR
RegisterR - a simple subclass of Register that models a n-bit rising-edge triggered, editable D-register with reset. Signals are expected to be StdLogic1164 objects.
Field Summary | |
protected Port |
port_NR
|
Fields inherited from class hades.models.register.Register |
data, display, h, labels, n_bits, port_C, t_pass, t_setup, value_0, value_1, value_U, value_X, w |
Fields inherited from class hades.simulator.SimObject |
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible |
Constructor Summary | |
RegisterR()
construct an rising-edge triggered, editable D-RegisterR with low- active reset input, using a default width of 4 bits. |
Method Summary | |
SimObject |
copy()
copy(): This function is used to create a clone of the current SimObject. |
protected void |
createGlobalPortSymbols()
|
void |
evaluate(java.lang.Object arg)
evaluate(): called by the simulation engine on all events that concern this object. |
protected void |
initPortsAndData()
the internal utility method to create the array of ports and flipflop values, corresponding to the desired bit-width specified by the global variable n_bits. |
java.lang.String |
toString()
toString() - the usual info method |
Methods inherited from class hades.models.register.Register |
addDisplayElementsToSymbol, configure, constructDynamicSymbol, elaborate, getBitWidth, getDefaultBitWidth, getPassTime, initDisplay, initialize, mousePressed, needsDynamicSymbol, removeDisplayElementsFromSymbol, schedule, setBitWidth, setBitWidth, setPassTime, setPassTime, setSymbol, show, showDInputPorts, write |
Methods inherited from class hades.simulator.SimObject |
getBindkey, getClassLoader, getDebug, getEditor, getExternalResources, getFullName, getName, getParent, getPort, getPorts, getPropertySheet, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getToolTip, getVersionId, isVisible, keyPressed, message, needsExternalResources, setClassLoader, setConsole, setDebug, setEditor, setName, setParent, setPorts, setSimulator, setVersionId, setVisible, tearDown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface hades.simulator.Simulatable |
message |
Field Detail |
protected Port port_NR
Constructor Detail |
public RegisterR()
The width can be changed later in the 'initialize' method or interactively using the 'PropertySheet' dialog.
Method Detail |
protected void initPortsAndData()
A register uses n_bits inputs, n_bits outputs, one clock and one reset input.
initPortsAndData
in class Register
protected void createGlobalPortSymbols()
createGlobalPortSymbols
in class Register
public void evaluate(java.lang.Object arg)
evaluate
in interface Simulatable
evaluate
in class Register
public SimObject copy()
SimObject
I am not yet sure about the correct and best semantic for copy(). Currently a new object of the current class is created by calling the default constructor.
copy
in class Register
public java.lang.String toString()
toString
in class Register
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |