hades.models.io
Class RomDiode
java.lang.Object
hades.simulator.SimObject
hades.models.gates.GenericGate
hades.models.io.RomDiode
- All Implemented Interfaces:
- java.lang.Cloneable, ContextToolTip, java.io.Serializable, Simulatable
- public class RomDiode
- extends GenericGate
- implements Simulatable
RomDiode: a faked diode useful for demonstrating ROM or PLA arrays.
This model uses the std_logic levels to simulate a diode-like
behaviour; however, we use a fixed input-output assignment.
A logical 1 at the kathode input will result in a 1 output,
while other input values result in a Z output value.
- 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 |
evaluate(java.lang.Object arg)
calculate the StdLogic1164 negation of input A,
schedule to Y after t_delay |
Methods inherited from class hades.models.gates.GenericGate |
configure, copy, elaborate, getDelay, getToolTip, initialize, scheduleEvent, scheduleEventAfter, scheduleOutputValue, scheduleOutputValueAfter, setDelay, setDelay, write |
Methods inherited from class hades.simulator.SimObject |
constructDynamicSymbol, 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 |
port_A
protected PortStdLogic1164 port_A
port_Y
protected PortStdLogic1164 port_Y
next_Y
protected StdLogic1164 next_Y
_rom_table
static final int[] _rom_table
RomDiode
public RomDiode()
evaluate
public void evaluate(java.lang.Object arg)
- calculate the StdLogic1164 negation of input A,
schedule to Y after t_delay
- Specified by:
evaluate
in interface Simulatable
- Overrides:
evaluate
in class SimObject
- Parameters:
arg
- an arbitrary object argument