hades.models.rtlib.compare
Class CompareAll

java.lang.Object
  extended byhades.simulator.SimObject
      extended byhades.models.rtlib.logic.GenericOnebitLogicObject
          extended byhades.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

Field Summary
protected  int _0
           
protected  int _1
           
protected  int _X
           
protected  StdLogic1164 output_0
           
protected  StdLogic1164 output_1
           
protected  StdLogic1164 output_X
           
protected  Port port_A
           
protected  Port port_B
           
protected  Port port_EQ
           
protected  Port port_GE
           
protected  Port port_GT
           
protected  Port port_LE
           
protected  Port port_LT
           
protected  StdLogicVector value_A
           
protected  StdLogicVector value_B
           
 
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
 
Constructor Summary
CompareAll()
           
 
Method Summary
 void constructPorts()
           
 void evaluate(java.lang.Object arg)
          evaluate: read the input data at Ports A and B and compare them.
 void setOutput(Port port, int i, SimKernel simulator, double time)
           
 void setOutputs(int lt, int le, int eq, int ge, int gt)
           
 
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
 
Methods inherited from interface hades.simulator.Simulatable
message
 

Field Detail

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
Constructor Detail

CompareAll

public CompareAll()
Method Detail

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)