hades.models.ttl74
Class SN7449

java.lang.Object
  extended byhades.simulator.SimObject
      extended byhades.models.ttl74.SN7449
All Implemented Interfaces:
java.lang.Cloneable, ContextToolTip, java.io.Serializable, Simulatable
Direct Known Subclasses:
SN7449_pinout

public class SN7449
extends SimObject
implements Simulatable, java.io.Serializable

SN7449 - a subclass of SimObject that models a SN7449 TTL seven-segment decoder. Signals are expected to be StdLogic1164 objects.

See Also:
Serialized Form

Field Summary
protected static int[][] CMATRIX
           
protected  int index
           
protected  StdLogic1164 next_Q
           
protected  Port port_A
           
protected  Port port_B
           
protected  Port port_C
           
protected  Port port_D
           
protected  Port port_GND
           
protected  Port port_Ndark
           
protected  Port port_VCC
           
protected  Port[] segments
           
(package private) static double t_delay
           
protected  StdLogic1164 value_0
           
protected  StdLogic1164 value_1
           
protected  StdLogic1164 value_U
           
protected  StdLogic1164 value_X
           
protected  StdLogic1164[] values
           
 
Fields inherited from class hades.simulator.SimObject
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible
 
Constructor Summary
SN7449()
           
 
Method Summary
 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(): read the current input Port values and calculate the corresponding seven-segment output values.
 java.lang.String toString()
          toString() - the usual info method
 
Methods inherited from class hades.simulator.SimObject
configure, constructDynamicSymbol, copy, getBindkey, getClassLoader, getDebug, getEditor, getExternalResources, getFullName, getName, getParent, getPort, getPorts, getPropertySheet, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getToolTip, getVersionId, initialize, isVisible, keyPressed, message, mousePressed, needsDynamicSymbol, needsExternalResources, setClassLoader, setConsole, setDebug, setEditor, setName, setParent, setPorts, setSimulator, setSymbol, setVersionId, setVisible, tearDown, 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

port_A

protected Port port_A

port_B

protected Port port_B

port_C

protected Port port_C

port_D

protected Port port_D

port_Ndark

protected Port port_Ndark

segments

protected Port[] segments

port_GND

protected Port port_GND

port_VCC

protected Port port_VCC

next_Q

protected StdLogic1164 next_Q

value_0

protected StdLogic1164 value_0

value_1

protected StdLogic1164 value_1

value_X

protected StdLogic1164 value_X

value_U

protected StdLogic1164 value_U

values

protected StdLogic1164[] values

index

protected int index

t_delay

static double t_delay

CMATRIX

protected static int[][] CMATRIX
Constructor Detail

SN7449

public SN7449()
Method Detail

elaborate

public void elaborate(java.lang.Object arg)
elaborate(): This method is called by the simulation engine to initialize the simulation object.

Specified by:
elaborate in interface Simulatable
Overrides:
elaborate in class SimObject

evaluate

public void evaluate(java.lang.Object arg)
evaluate(): read the current input Port values and calculate the corresponding seven-segment output values.

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

toString

public java.lang.String toString()
toString() - the usual info method

Overrides:
toString in class SimObject