|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.simulator.SimObject
hades.models.rtlib.GenericRtlibObject
hades.models.rtlib.io.IpinVector
IpinVector - a simple switch to specify bus values from Integer values. The width of the corresponding bus is specified by an IpinVector attribute and cannot be changed once a Signal (or the matching width) is connected. The default width is 16 bits.
Also, a IpinVector object can be used as an input for a hierarchical Design.
Nested Class Summary |
Nested classes inherited from class hades.models.rtlib.GenericRtlibObject |
GenericRtlibObject.BinaryValueLabelFormatter, GenericRtlibObject.DecimalValueLabelFormatter, GenericRtlibObject.DINColorSource, GenericRtlibObject.FlexibleLabelFormatter, GenericRtlibObject.HexValueLabelFormatter |
Field Summary | |
protected int |
numberFormat
|
protected Port |
port_toplevel
|
protected Port |
port_Y
|
protected double |
t_delay
|
Fields inherited from class hades.models.rtlib.GenericRtlibObject |
BINARY, DECIMAL, defaultdelay, delay, enableAnimationFlag, HEX, labelFormatter, n_bits, 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 |
Constructor Summary | |
IpinVector()
IpinVector(): simple constructor |
Method Summary | |
void |
assign(java.lang.String value,
double simTime)
assign: set a new value for a SimObject's internal state at the specified simulation time. |
void |
configure()
create and display a 'ConfigDialog' to set the parameters for a SimObject. |
void |
constructPorts()
|
void |
elaborate(java.lang.Object arg)
elaborate(): |
void |
evaluate(java.lang.Object arg)
evaluate(): for an IpinVector, this method is only called in hierarchical designs on any change on the toplevel input. |
int |
getNumberFormat()
|
java.lang.String |
getToolTip(java.awt.Point position,
long millis)
construct a (short) tool tip message. |
boolean |
initialize(java.lang.String s)
initialize an IpinVector object from a String, which contains the integer version id, the width of this vector, the start value(e.g. |
boolean |
isUXZClick(java.awt.event.MouseEvent evt)
|
boolean |
isUXZClickOLD(java.awt.event.MouseEvent evt)
|
void |
mousePressed(java.awt.event.MouseEvent me)
mousePressed: increment (click) or decrement (shift+click) the output value of this IpinVector. |
void |
schedule()
|
void |
setName(java.lang.String name)
set the name of this SimObject. |
void |
setNumberFormat(java.lang.String s)
|
void |
setSymbol(Symbol s)
|
void |
setValue(java.lang.String s)
|
void |
wakeup(java.lang.Object arg)
wakeup: react to wakeup events. |
void |
write(java.io.PrintWriter ps)
write the following data to PrintWriter ps: our versionId, the width (n_bits), the current value, the default delay (propagation delay from the next lower hierarchy level, might be zero), and the default label format (dec=0/hex=1/bin=2) |
Methods inherited from class hades.models.rtlib.GenericRtlibObject |
constructStandardValues, copy, getDelay, getEnableAnimationFlag, getFormattedValue, getValue, getWidth, initValueLabel, isConnected, scheduleAfter, scheduleAfter, scheduleVectorOutputPort, setDelay, setDelay, setEnableAnimationFlag, setEnableAnimationFlag, setFormattedValue, setNumberFormat, setValue, setWidth, setWidth, toString, updateSymbol, wakeupAfter |
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, needsDynamicSymbol, needsExternalResources, setClassLoader, setConsole, setDebug, setEditor, setParent, setPorts, setSimulator, 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 |
protected Port port_Y
protected Port port_toplevel
protected int numberFormat
protected double t_delay
Constructor Detail |
public IpinVector()
Method Detail |
public void constructPorts()
constructPorts
in class GenericRtlibObject
public void setSymbol(Symbol s)
setSymbol
in class GenericRtlibObject
public void setName(java.lang.String name)
SimObject
To avoid consistency problems, when the user changes a SimObject's name interactively, we also try to enforce a unique name.
setName
in class SimObject
public void setValue(java.lang.String s)
setValue
in class GenericRtlibObject
public void mousePressed(java.awt.event.MouseEvent me)
<-- old way of doing things
To allow efficient input of the nonstandard values UUU, XXX, ZZZ,
we use the following convention. If the mouse click is in the rightmost
part of the IpinVector symbol, the output uses the sequence
-->
To allow efficient input of the values UUU, XXX, ZZZ, we check
for the
A normal mouse click in the IpinVector symbol, however,
increments through the standard numerical values (use
mousePressed
in class SimObject
public void schedule()
public boolean isUXZClickOLD(java.awt.event.MouseEvent evt)
public boolean isUXZClick(java.awt.event.MouseEvent evt)
public void elaborate(java.lang.Object arg)
elaborate
in interface Simulatable
elaborate
in class GenericRtlibObject
public void evaluate(java.lang.Object arg)
evaluate
in interface Simulatable
evaluate
in class SimObject
arg
- An arbitrary and unused objectpublic void assign(java.lang.String value, double simTime)
Assignable
assign
in interface Assignable
assign
in class GenericRtlibObject
public void wakeup(java.lang.Object arg)
wakeup
in interface Wakeable
wakeup
in class GenericRtlibObject
public boolean initialize(java.lang.String s)
initialize
in class GenericRtlibObject
public void write(java.io.PrintWriter ps)
write
in class GenericRtlibObject
public void configure()
SimObject
configure
in class GenericRtlibObject
public int getNumberFormat()
getNumberFormat
in class GenericRtlibObject
public void setNumberFormat(java.lang.String s)
setNumberFormat
in class GenericRtlibObject
public java.lang.String getToolTip(java.awt.Point position, long millis)
getToolTip
in interface ContextToolTip
getToolTip
in class GenericRtlibObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |