|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthades.simulator.SimObject
hades.models.gates.GenericGate
hades.models.io.Ipin
hades.models.io.IpinStdLogic1164
IpinStdLogic1164 - an input pin (and hierarchy connectors) which allows to generate all nine std_logic values directly by clicking: U/X/0/1/Z/L/H/W/D.
| Field Summary | |
protected double |
delay
|
| Fields inherited from class hades.models.io.Ipin |
output_0, output_1, output_U, output_X, output_Z, port_toplevel, port_Y, showOnOff, startValue, state |
| Fields inherited from class hades.models.gates.GenericGate |
t_delay |
| Fields inherited from class hades.simulator.SimObject |
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible |
| Constructor Summary | |
IpinStdLogic1164()
IpinStdLogic1164(): simple constructor |
|
| Method Summary | |
void |
configure()
configure: display a dialog to specify the Ipin instance name, initial output value, and gate propagation delay. |
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: as interactive IpinStdLogic1164 events are handled by mousePressed(), this method is only called by the simulation engine whenever our (hidden) toplevel signal changes. |
int |
findStateFromMouseclick(java.awt.event.MouseEvent me)
|
protected void |
initDisplay()
|
void |
mousePressed(java.awt.event.MouseEvent me)
mousePressed: an interactive mouse click on this switch. |
void |
schedule(int state,
double delay,
boolean interactive)
|
void |
setStartState()
|
void |
setValueAtTime(StdLogic1164 value,
double time)
used to specify a new IpinStdLogic1164 output value from an external source (e.g. a script). |
void |
showState()
|
java.lang.String |
toString()
toString() - the usual info method |
| Methods inherited from class hades.models.io.Ipin |
assign, getDelay, getStartValue, initialize, setDelay, setName, setStartValue, setSymbol, wakeup, write |
| Methods inherited from class hades.models.gates.GenericGate |
copy, getToolTip, scheduleEvent, scheduleEventAfter, scheduleOutputValue, scheduleOutputValueAfter, setDelay |
| Methods inherited from class hades.simulator.SimObject |
constructDynamicSymbol, getClassLoader, getDebug, getEditor, getExternalResources, getFullName, getName, getParent, getPort, getPorts, getPropertySheet, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getVersionId, isVisible, message, needsDynamicSymbol, needsExternalResources, setClassLoader, setConsole, setDebug, setEditor, setParent, setPorts, setSimulator, setVersionId, setVisible |
| 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 double delay
| Constructor Detail |
public IpinStdLogic1164()
| Method Detail |
protected void initDisplay()
initDisplay in class Ipinpublic void setStartState()
setStartState in class Ipinpublic void showState()
showState in class Ipinpublic void mousePressed(java.awt.event.MouseEvent me)
For a normal click, we find the std_logic value whose "field" is selected by (or nearest to) the click position. The output value of this switch is then updated after t_delay. Note that the algorithm used for searching the right field does not work for mirrored symbols (yet).
If the SHIFT-key is down during the mouse click, we increment the switch state, allowing to toggle quickly through all nine std_logic values: U-X-0-1-Z-L-H-W-D-0-... The output value of this switch is updated after t_delay.
mousePressed in class Ipinpublic int findStateFromMouseclick(java.awt.event.MouseEvent me)
public void elaborate(java.lang.Object arg)
Ipin
elaborate in interface Simulatableelaborate in class Ipinarg - This parameter is ignored by Ipin
public void schedule(int state,
double delay,
boolean interactive)
schedule in class Ipin
public void setValueAtTime(StdLogic1164 value,
double time)
setValueAtTime in class Ipinpublic void evaluate(java.lang.Object arg)
evaluate in interface Simulatableevaluate in class Ipinpublic void configure()
Ipin
configure in class Ipinpublic java.lang.String toString()
toString in class SimObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||