hades.models.rtlib.compare
Class CompareAll
java.lang.Object
hades.simulator.SimObject
hades.models.rtlib.logic.GenericOnebitLogicObject
hades.models.rtlib.compare.CompareAll
- All Implemented Interfaces:
- java.lang.Cloneable, ContextToolTip, java.io.Serializable, Simulatable, Wakeable
- public class CompareAll
- extends GenericOnebitLogicObject
CompareAll - compare the two input vectors (SignalStdLogicVector)
and generate StdLogic1164 output values for the tests
A < B (less than, output LT),
A <= B (less equal, output LE),
A == B (equal, output EQ),
A >= B (greater equal, output GE),
A > B (greater than, output GT),
- See Also:
- Serialized Form
Fields inherited from class hades.models.rtlib.logic.GenericOnebitLogicObject |
defaultdelay, delay, n_bits, value, value_0, value_1, value_U, value_X, value_Z, valueLabel, vector, vector_000, vector_111, vector_UUU, vector_XXX, vector_ZZZ |
Fields inherited from class hades.simulator.SimObject |
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible |
Methods inherited from class hades.models.rtlib.logic.GenericOnebitLogicObject |
configure, constructStandardValues, copy, elaborate, getDelay, getValue, getWidth, initialize, initValueLabel, isConnected, setDelay, setDelay, setValue, setValue, setWidth, setWidth, toString, updateSymbol, wakeup, write |
Methods inherited from class hades.simulator.SimObject |
constructDynamicSymbol, getBindkey, getClassLoader, getDebug, getEditor, getExternalResources, getFullName, getName, getParent, getPort, getPorts, getPropertySheet, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getToolTip, getVersionId, isVisible, keyPressed, message, mousePressed, needsDynamicSymbol, needsExternalResources, setClassLoader, setConsole, setDebug, setEditor, setName, setParent, setPorts, setSimulator, setSymbol, setVersionId, setVisible, tearDown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
port_A
protected Port port_A
port_B
protected Port port_B
port_LT
protected Port port_LT
port_LE
protected Port port_LE
port_EQ
protected Port port_EQ
port_GE
protected Port port_GE
port_GT
protected Port port_GT
value_A
protected StdLogicVector value_A
value_B
protected StdLogicVector value_B
output_0
protected StdLogic1164 output_0
output_1
protected StdLogic1164 output_1
output_X
protected StdLogic1164 output_X
_0
protected int _0
_1
protected int _1
_X
protected int _X
CompareAll
public CompareAll()
constructPorts
public void constructPorts()
- Overrides:
constructPorts
in class GenericOnebitLogicObject
evaluate
public void evaluate(java.lang.Object arg)
- evaluate: read the input data at Ports A and B and compare them.
Schedule the results to the Less-than, Less-equal, Equals,
Greater-Equals, and Greater-than outputs.
- Specified by:
evaluate
in interface Simulatable
- Overrides:
evaluate
in class SimObject
- Parameters:
arg
- an arbitrary object argument
setOutputs
public void setOutputs(int lt,
int le,
int eq,
int ge,
int gt)
setOutput
public void setOutput(Port port,
int i,
SimKernel simulator,
double time)