hades.models.rtlib.io
Class Merge3
java.lang.Object
hades.simulator.SimObject
hades.models.rtlib.GenericRtlibObject
hades.models.rtlib.io.Merge3
- All Implemented Interfaces:
- java.lang.Cloneable, ContextToolTip, java.io.Serializable, Simulatable, Wakeable
- public class Merge3
- extends GenericRtlibObject
Merge3 - merge three input vectors into one
- See Also:
- Serialized Form
Fields inherited from class hades.models.rtlib.GenericRtlibObject |
BINARY, DECIMAL, defaultdelay, delay, enableAnimationFlag, HEX, labelFormatter, valueLabel, vector, vector_000, vector_111, vector_UUU, vector_XXX, vector_ZZZ, vectorOutputPort |
Fields inherited from class hades.simulator.SimObject |
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible |
Method Summary |
void |
configure()
create and display a 'ConfigDialog' to set the parameters for
a SimObject. |
void |
constructPorts()
|
void |
evaluate(java.lang.Object arg)
evaluate(): called by the simulation engine on all events that
concern this object. |
int |
getLower()
|
int |
getMiddle()
|
int |
getUpper()
|
boolean |
initialize(java.lang.String s)
initialize a RTLIB object from a String
which contains the integer version id, the width of the input vector,
the upper, middle, and lower subset indices,
a String of the desired start value
(e.g. "1001 8 01ZXW001" for an 8 bit vector),
and the default delay. |
void |
setLower(java.lang.String s)
|
void |
setMiddle(java.lang.String s)
|
void |
setSymbol(Symbol s)
|
void |
setUpper(java.lang.String s)
|
void |
updateSymbol()
|
void |
write(java.io.PrintWriter ps)
write the following data to PrintWriter ps:
our versionId, the width (n_bits),
the upper, middle, and lower subset indices,
the default output value (vector), and the default delay.
|
Methods inherited from class hades.models.rtlib.GenericRtlibObject |
assign, constructStandardValues, copy, elaborate, getDelay, getEnableAnimationFlag, getFormattedValue, getNumberFormat, getToolTip, getValue, getWidth, initValueLabel, isConnected, scheduleAfter, scheduleAfter, scheduleVectorOutputPort, setDelay, setDelay, setEnableAnimationFlag, setEnableAnimationFlag, setFormattedValue, setNumberFormat, setValue, setValue, setWidth, setWidth, toString, wakeup, wakeupAfter |
Methods inherited from class hades.simulator.SimObject |
constructDynamicSymbol, getClassLoader, getDebug, getEditor, getExternalResources, getFullName, getName, getParent, getPort, getPorts, getPropertySheet, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getVersionId, isVisible, message, mousePressed, needsDynamicSymbol, needsExternalResources, setClassLoader, setConsole, setDebug, setEditor, setName, setParent, setPorts, setSimulator, setVersionId, setVisible |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
port_A
protected PortStdLogicVector port_A
port_B
protected PortStdLogicVector port_B
port_C
protected PortStdLogicVector port_C
port_Y
protected PortStdLogicVector port_Y
mergeLabel
protected Label mergeLabel
upper
protected int upper
middle
protected int middle
lower
protected int lower
n_bits
protected int n_bits
Merge3
public Merge3()
constructPorts
public void constructPorts()
- Overrides:
constructPorts
in class GenericRtlibObject
setSymbol
public void setSymbol(Symbol s)
- Overrides:
setSymbol
in class GenericRtlibObject
getUpper
public int getUpper()
getMiddle
public int getMiddle()
getLower
public int getLower()
setUpper
public void setUpper(java.lang.String s)
setMiddle
public void setMiddle(java.lang.String s)
setLower
public void setLower(java.lang.String s)
evaluate
public void evaluate(java.lang.Object arg)
- evaluate(): called by the simulation engine on all events that
concern this object. The object is responsible for updating its
internal state and for scheduling all pending output events.
- Specified by:
evaluate
in interface Simulatable
- Overrides:
evaluate
in class SimObject
- Parameters:
arg
- an arbitrary object argument
updateSymbol
public void updateSymbol()
- Overrides:
updateSymbol
in class GenericRtlibObject
write
public void write(java.io.PrintWriter ps)
- write the following data to PrintWriter ps:
our versionId, the width (n_bits),
the upper, middle, and lower subset indices,
the default output value (vector), and the default delay.
Hopefully, many RTLIB classes won't need to override write().
- Overrides:
write
in class GenericRtlibObject
initialize
public boolean initialize(java.lang.String s)
- initialize a RTLIB object from a String
which contains the integer version id, the width of the input vector,
the upper, middle, and lower subset indices,
a String of the desired start value
(e.g. "1001 8 01ZXW001" for an 8 bit vector),
and the default delay.
- Overrides:
initialize
in class GenericRtlibObject
configure
public void configure()
- Description copied from class:
SimObject
- create and display a 'ConfigDialog' to set the parameters for
a SimObject. The default ConfigDialog for the base class (SimObject)
itself is empty except for the 'instance name' of the SimObject.
- Overrides:
configure
in class GenericRtlibObject