hades.models.flipflops
Class Srff

java.lang.Object
  extended byhades.simulator.SimObject
      extended byhades.models.flipflops.GenericFlipflop
          extended byhades.models.flipflops.Srff
All Implemented Interfaces:
Assignable, java.lang.Cloneable, ContextToolTip, java.io.Serializable, Simulatable
Direct Known Subclasses:
SrffRtlib

public class Srff
extends GenericFlipflop
implements Simulatable, java.io.Serializable

Srff: a simple SR-flipflop with standard symbol. Reset has precedence over Set. Both signals are active high. Signals are expected to be StdLogic1164 objects.

See Also:
Serialized Form

Field Summary
protected  StdLogic1164 next_NQ
           
protected  StdLogic1164 next_Q
           
protected  PortStdLogic1164 port_R
           
protected  PortStdLogic1164 port_S
           
 
Fields inherited from class hades.models.flipflops.GenericFlipflop
port_NQ, port_Q, t_hold, t_pass, t_setup
 
Fields inherited from class hades.simulator.SimObject
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible
 
Constructor Summary
Srff()
           
 
Method Summary
 void evaluate(java.lang.Object arg)
          evaluate: check the S and R inputs and calculate Q and NQ.
 
Methods inherited from class hades.models.flipflops.GenericFlipflop
assign, configure, elaborate, getDelay, getHoldTime, getSetupTime, getToolTip, initialize, scheduleEvent, scheduleEventAfter, scheduleOutputValue, scheduleOutputValueAfter, setDelay, setDelay, setHoldTime, setHoldTime, setSetupTime, setSetupTime, write
 
Methods inherited from class hades.simulator.SimObject
constructDynamicSymbol, copy, 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
elaborate, message
 

Field Detail

port_S

protected PortStdLogic1164 port_S

port_R

protected PortStdLogic1164 port_R

next_Q

protected StdLogic1164 next_Q

next_NQ

protected StdLogic1164 next_NQ
Constructor Detail

Srff

public Srff()
Method Detail

evaluate

public void evaluate(java.lang.Object arg)
evaluate: check the S and R inputs and calculate Q and NQ.

Specified by:
evaluate in interface Simulatable
Overrides:
evaluate in class SimObject
Parameters:
arg - an arbitrary object argument