|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.simulator.SimObject
hades.models.flipflops.GenericFlipflop
GenericFlipflop: abstract base class used for flipflops. Signals are expected to be StdLogic1164 objects. This class also provides three timing parameters, for flipflop setup time, flipflop hold time, and D-to-Q propagation time.
Field Summary | |
protected PortStdLogic1164 |
port_NQ
|
protected PortStdLogic1164 |
port_Q
|
protected double |
t_hold
|
protected double |
t_pass
|
protected double |
t_setup
|
Fields inherited from class hades.simulator.SimObject |
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible |
Constructor Summary | |
GenericFlipflop()
|
Method Summary | |
void |
assign(java.lang.String value,
double time)
used to specify a new output value from an external source (e.g. |
void |
configure()
display a dialog window allowing to specify the name, setup time, hold time, and propagation delay time for this flipflop model. |
void |
elaborate(java.lang.Object arg)
elaborate: just store a reference to the current simulator |
double |
getDelay()
|
double |
getHoldTime()
|
double |
getSetupTime()
|
java.lang.String |
getToolTip(java.awt.Point position,
long millis)
construct a (short) tool tip message for a SimObject. |
boolean |
initialize(java.lang.String s)
initialize a GenericFlipflop from a String that contains the integer version id of this gate and its propagation delay (in seconds), e.g. |
void |
scheduleEvent(Signal signal,
double time,
StdLogic1164 value,
Port port)
|
void |
scheduleEventAfter(Signal signal,
double delay,
StdLogic1164 value,
Port port)
|
void |
scheduleOutputValue(Port port,
StdLogic1164 value,
double time)
|
void |
scheduleOutputValueAfter(Port port,
StdLogic1164 value,
double delay)
|
void |
setDelay(double t)
|
void |
setDelay(java.lang.String s)
|
void |
setHoldTime(double t)
|
void |
setHoldTime(java.lang.String s)
|
void |
setSetupTime(double t)
|
void |
setSetupTime(java.lang.String s)
|
void |
write(java.io.PrintWriter ps)
write out the versionId, propagation delay, setup time, hold time |
Methods inherited from class hades.simulator.SimObject |
constructDynamicSymbol, copy, evaluate, getBindkey, getClassLoader, getDebug, getEditor, getExternalResources, getFullName, getName, getParent, getPort, getPorts, getPropertySheet, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getVersionId, isVisible, keyPressed, message, mousePressed, needsDynamicSymbol, needsExternalResources, setClassLoader, setConsole, setDebug, setEditor, setName, setParent, setPorts, setSimulator, setSymbol, setVersionId, setVisible, tearDown, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface hades.simulator.Simulatable |
evaluate, message |
Field Detail |
protected double t_pass
protected double t_setup
protected double t_hold
protected PortStdLogic1164 port_Q
protected PortStdLogic1164 port_NQ
Constructor Detail |
public GenericFlipflop()
Method Detail |
public double getDelay()
public double getSetupTime()
public double getHoldTime()
public void setDelay(double t)
public void setSetupTime(double t)
public void setHoldTime(double t)
public void setDelay(java.lang.String s)
public void setSetupTime(java.lang.String s)
public void setHoldTime(java.lang.String s)
public void configure()
configure
in class SimObject
public boolean initialize(java.lang.String s)
initialize
in class SimObject
public void write(java.io.PrintWriter ps)
write
in class SimObject
public void elaborate(java.lang.Object arg)
elaborate
in interface Simulatable
elaborate
in class SimObject
public void scheduleEvent(Signal signal, double time, StdLogic1164 value, Port port)
public void scheduleEventAfter(Signal signal, double delay, StdLogic1164 value, Port port)
public void scheduleOutputValue(Port port, StdLogic1164 value, double time)
public void scheduleOutputValueAfter(Port port, StdLogic1164 value, double delay)
public void assign(java.lang.String value, double time)
The 'value' String is expected to have a one-character encoding of the StdLogic1164 value, namely "U" "X" "0" "1" "Z" "H" "L" "W" "D".
Note that you have to override this method for simulation models who need to update their graphical symbol in order to show or highlight their internal state.
assign
in interface Assignable
public java.lang.String getToolTip(java.awt.Point position, long millis)
getToolTip
in interface ContextToolTip
getToolTip
in class SimObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |