| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthades.simulator.SimObject
hades.models.rtlib.logic.GenericOnebitLogicObject
GenericOnebitLogicObject - the utility base class for HADES n-to-1 bit logical RTLIB models,
This class supplies a generic configuration dialog with object name, input bus width (n_bits), default output value, default delay.
Input Signals are expected to be SignalStdLogicVector objects with n_bits bits, output Signals are of type SignalStdLogic1164.
| Field Summary | |
protected  double | 
defaultdelay
 | 
protected  double | 
delay
 | 
protected  int | 
n_bits
 | 
protected  StdLogic1164 | 
value
 | 
protected  StdLogic1164 | 
value_0
 | 
protected  StdLogic1164 | 
value_1
 | 
protected  StdLogic1164 | 
value_U
 | 
protected  StdLogic1164 | 
value_X
 | 
protected  StdLogic1164 | 
value_Z
 | 
protected  ColoredValueLabel | 
valueLabel
 | 
protected  StdLogicVector | 
vector
 | 
protected  StdLogicVector | 
vector_000
 | 
protected  StdLogicVector | 
vector_111
 | 
protected  StdLogicVector | 
vector_UUU
 | 
protected  StdLogicVector | 
vector_XXX
 | 
protected  StdLogicVector | 
vector_ZZZ
 | 
| Fields inherited from class hades.simulator.SimObject | 
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible | 
| Constructor Summary | |
GenericOnebitLogicObject()
 | 
|
| Method Summary | |
 void | 
configure()
create and display a 'ConfigDialog' to set the parameters for a SimObject.  | 
protected  void | 
constructPorts()
 | 
protected  void | 
constructStandardValues()
 | 
 SimObject | 
copy()
copy(): This function is used to create a clone of this RTLIB object, including the values for width (n_bits), currenct value (vector), propagation delay, and version ID.  | 
 void | 
elaborate(java.lang.Object arg)
elaborate(): This method is called by the simulation engine to initialize this RTLIB object for simulation.  | 
 double | 
getDelay()
 | 
 long | 
getValue()
 | 
 int | 
getWidth()
 | 
 boolean | 
initialize(java.lang.String s)
initialize a RTLIB object from a String which contains the integer version id, the width of this vector, the desired start value, and the default delay (e.g.  | 
protected  void | 
initValueLabel()
 | 
 boolean | 
isConnected()
 | 
 void | 
setDelay(double _delay)
 | 
 void | 
setDelay(java.lang.String s)
 | 
 void | 
setValue(long _value)
 | 
 void | 
setValue(java.lang.String s)
 | 
 void | 
setWidth(int _n)
 | 
 void | 
setWidth(java.lang.String s)
 | 
 java.lang.String | 
toString()
toString: generate a text description for this SimObject.  | 
 void | 
updateSymbol()
 | 
 void | 
wakeup(java.lang.Object arg)
wakeup(): Called by the simulator as a reaction to our own scheduleWakeup()-calls.  | 
 void | 
write(java.io.PrintWriter ps)
write the following data to PrintWriter ps: our versionId, the width (n_bits), the default output value (vector), and the default delay.  | 
| Methods inherited from class hades.simulator.SimObject | 
constructDynamicSymbol, evaluate, 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 | 
evaluate, message | 
| Field Detail | 
protected int n_bits
protected StdLogicVector vector
protected StdLogicVector vector_UUU
protected StdLogicVector vector_XXX
protected StdLogicVector vector_ZZZ
protected StdLogicVector vector_000
protected StdLogicVector vector_111
protected StdLogic1164 value
protected StdLogic1164 value_U
protected StdLogic1164 value_X
protected StdLogic1164 value_0
protected StdLogic1164 value_1
protected StdLogic1164 value_Z
protected double delay
protected double defaultdelay
protected ColoredValueLabel valueLabel
| Constructor Detail | 
public GenericOnebitLogicObject()
| Method Detail | 
protected void constructPorts()
protected void constructStandardValues()
public double getDelay()
public void setDelay(double _delay)
public void setDelay(java.lang.String s)
public int getWidth()
public void setWidth(int _n)
public void setWidth(java.lang.String s)
public long getValue()
public void setValue(long _value)
public void setValue(java.lang.String s)
public boolean isConnected()
public void configure()
SimObject
configure in class SimObjectprotected void initValueLabel()
public void updateSymbol()
public void elaborate(java.lang.Object arg)
GenericOnebitLogicObject just calls updateSymbol() to initialize its graphical representation. Probably, most RTLIB classes won't need to override this method.
elaborate in interface Simulatableelaborate in class SimObjectpublic void wakeup(java.lang.Object arg)
wakeup in interface Wakeablepublic boolean initialize(java.lang.String s)
initialize in class SimObjectpublic void write(java.io.PrintWriter ps)
write in class SimObjectpublic SimObject copy()
copy in class SimObjectpublic java.lang.String toString()
SimObject
toString in class SimObject
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||