hades.models.ttl74
Class SN7405
java.lang.Object
hades.simulator.SimObject
hades.models.ttl74.SN7405
- All Implemented Interfaces:
- java.lang.Cloneable, ContextToolTip, java.io.Serializable, Simulatable
- Direct Known Subclasses:
- SN7405_pinout
- public class SN7405
- extends SimObject
- implements Simulatable
SN7405 - a subclass of SimObject that models a standard SN7405
INV*6 (open collector outputs) gate.
Signals are expected to be StdLogic1164 objects.
- See Also:
- Serialized Form
Fields inherited from class hades.simulator.SimObject |
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible |
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(): extract the active Port from the SimEvent argument
and calculate the corresponding open-collector INV output. |
StdLogic1164 |
getValueOrU(Port p)
|
void |
schedule(Port port_Y,
Port port_A,
double time)
model open-collector inverter |
void |
schedule(Port target,
StdLogic1164 value,
double time)
|
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 |
port_A1
protected Port port_A1
port_Y1
protected Port port_Y1
port_A2
protected Port port_A2
port_Y2
protected Port port_Y2
port_A3
protected Port port_A3
port_Y3
protected Port port_Y3
port_A4
protected Port port_A4
port_Y4
protected Port port_Y4
port_A5
protected Port port_A5
port_Y5
protected Port port_Y5
port_A6
protected Port port_A6
port_Y6
protected Port port_Y6
port_GND
protected Port port_GND
port_VCC
protected Port port_VCC
value_0
protected StdLogic1164 value_0
value_1
protected StdLogic1164 value_1
value_Z
protected StdLogic1164 value_Z
value_X
protected StdLogic1164 value_X
value_U
protected StdLogic1164 value_U
t_delay
static double t_delay
SN7405
public SN7405()
elaborate
public void elaborate(java.lang.Object arg)
- elaborate(): This method is called by the simulation engine
to initialize the simulation object. We schedule "U" values
on all outputs Y1, ... Y6 at time t=0.0 seconds.
- Specified by:
elaborate
in interface Simulatable
- Overrides:
elaborate
in class SimObject
evaluate
public void evaluate(java.lang.Object arg)
- evaluate(): extract the active Port from the SimEvent argument
and calculate the corresponding open-collector INV output.
- Specified by:
evaluate
in interface Simulatable
- Overrides:
evaluate
in class SimObject
- Parameters:
arg
- an arbitrary object argument
schedule
public void schedule(Port port_Y,
Port port_A,
double time)
- model open-collector inverter
schedule
public void schedule(Port target,
StdLogic1164 value,
double time)
getValueOrU
public StdLogic1164 getValueOrU(Port p)
toString
public java.lang.String toString()
- toString() - the usual info method
- Overrides:
toString
in class SimObject