|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.simulator.SimObject
hades.models.io.BitReg6
BitReg6 - a 6-bit rising-edge triggered, editable D-register. Signals are expected to be StdLogic1164 objects. The individual bits in the register can be toggled interactively by the user via mouse-clicks.
Field Summary | |
protected StdLogic1164[] |
data
|
protected Label[] |
labels
|
protected int |
n_bits
|
protected Port |
port_C
|
protected Port |
port_NR
|
(package private) static double |
t_pass
|
(package private) static double |
t_setup
|
protected StdLogic1164 |
value_0
|
protected StdLogic1164 |
value_1
|
protected StdLogic1164 |
value_U
|
protected StdLogic1164 |
value_X
|
Fields inherited from class hades.simulator.SimObject |
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible |
Constructor Summary | |
BitReg6()
|
Method Summary | |
void |
elaborate(java.lang.Object arg)
elaborate: store a reference to our simulator. |
void |
evaluate(java.lang.Object arg)
evaluate: check the NR and C inputs and calculate the data Q outputs. |
void |
initDisplay()
create the (dynamic) symbol for this BitReg6 |
void |
mousePressed(java.awt.event.MouseEvent me)
mousePressed: react to interactive user events. |
void |
schedule(int bitIndex,
double time)
schedule the output value for a single bit of the register |
void |
setSymbol(Symbol s)
|
void |
show()
show: update the BitReg6 symbol |
Methods inherited from class hades.simulator.SimObject |
configure, constructDynamicSymbol, copy, getClassLoader, getDebug, getEditor, getExternalResources, getFullName, getName, getParent, getPort, getPorts, getPropertySheet, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getToolTip, getVersionId, initialize, isVisible, message, needsDynamicSymbol, needsExternalResources, setClassLoader, setConsole, setDebug, setEditor, setName, setParent, setPorts, setSimulator, setVersionId, setVisible, toString, write |
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 int n_bits
protected Port port_C
protected Port port_NR
protected StdLogic1164 value_U
protected StdLogic1164 value_X
protected StdLogic1164 value_0
protected StdLogic1164 value_1
protected StdLogic1164[] data
protected Label[] labels
static double t_pass
static double t_setup
Constructor Detail |
public BitReg6()
Method Detail |
public void setSymbol(Symbol s)
setSymbol
in class SimObject
public void initDisplay()
public void show()
public void mousePressed(java.awt.event.MouseEvent me)
mousePressed
in class SimObject
public void elaborate(java.lang.Object arg)
elaborate
in interface Simulatable
elaborate
in class SimObject
public void evaluate(java.lang.Object arg)
evaluate
in interface Simulatable
evaluate
in class SimObject
arg
- an arbitrary object argumentpublic void schedule(int bitIndex, double time)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |