|
||||||||||
| 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
hades.models.rtlib.memory.AddressDecoder4
AddressDecoder4 - user-configurable address decoder with four outputs. For each low-active output, the user can specify the lower and upper address range.
| Field Summary | |
protected int |
_0
|
protected int |
_1
|
protected StdLogic1164 |
_nCS0
|
protected StdLogic1164 |
_nCS1
|
protected StdLogic1164 |
_nCS2
|
protected StdLogic1164 |
_nCS3
|
protected int |
_X
|
protected int |
base0
|
protected int |
base1
|
protected int |
base2
|
protected int |
base3
|
protected int |
limit0
|
protected int |
limit1
|
protected int |
limit2
|
protected int |
limit3
|
protected PortStdLogicVector |
port_A
|
protected PortStdLogic1164 |
port_nCS0
|
protected PortStdLogic1164 |
port_nCS1
|
protected PortStdLogic1164 |
port_nCS2
|
protected PortStdLogic1164 |
port_nCS3
|
protected StdLogicVector |
value_A
|
| 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 | |
AddressDecoder4()
|
|
| Method Summary | |
void |
configure()
construct a hades.gui.PropertySheet with fields for name, n_bits, delay, and the four (base/limit) address pairs. |
void |
constructPorts()
|
void |
evaluate(java.lang.Object arg)
called whenever the address bus input changes. |
java.lang.String |
format(int addr)
return an unsigned hex formatted String representation of addr. |
java.lang.String |
getFormattedBase0()
|
java.lang.String |
getFormattedBase1()
|
java.lang.String |
getFormattedBase2()
|
java.lang.String |
getFormattedBase3()
|
java.lang.String |
getFormattedLimit0()
|
java.lang.String |
getFormattedLimit1()
|
java.lang.String |
getFormattedLimit2()
|
java.lang.String |
getFormattedLimit3()
|
java.lang.String |
getToolTip(java.awt.Point position,
long millis)
construct a (short) tool tip message. |
boolean |
initialize(java.lang.String s)
initialize the AddressDecoder object from a String, which contains the integer version id, the width of this vector, the gate delay, and four pairs of base | limit addresses for the four chip select outputs, e.g. |
int |
parse(java.lang.String s)
called from the PropertySheet to specify new address ranges. |
void |
setFormattedBase0(java.lang.String s)
|
void |
setFormattedBase1(java.lang.String s)
|
void |
setFormattedBase2(java.lang.String s)
|
void |
setFormattedBase3(java.lang.String s)
|
void |
setFormattedLimit0(java.lang.String s)
|
void |
setFormattedLimit1(java.lang.String s)
|
void |
setFormattedLimit2(java.lang.String s)
|
void |
setFormattedLimit3(java.lang.String s)
|
void |
setOutput(Port port,
StdLogic1164 value,
double time)
|
void |
write(java.io.PrintWriter ps)
write versionID, n_bits, gate delay and the four (base/limit) address pairs to ps. |
| Methods inherited from class hades.models.rtlib.logic.GenericOnebitLogicObject |
constructStandardValues, copy, elaborate, getDelay, getValue, getWidth, initValueLabel, isConnected, setDelay, setDelay, setValue, setValue, setWidth, setWidth, toString, updateSymbol, wakeup |
| 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, 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 |
protected PortStdLogicVector port_A
protected PortStdLogic1164 port_nCS0
protected PortStdLogic1164 port_nCS1
protected PortStdLogic1164 port_nCS2
protected PortStdLogic1164 port_nCS3
protected StdLogicVector value_A
protected int _0
protected int _1
protected int _X
protected StdLogic1164 _nCS0
protected StdLogic1164 _nCS1
protected StdLogic1164 _nCS2
protected StdLogic1164 _nCS3
protected int base0
protected int limit0
protected int base1
protected int limit1
protected int base2
protected int limit2
protected int base3
protected int limit3
| Constructor Detail |
public AddressDecoder4()
| Method Detail |
public void constructPorts()
constructPorts in class GenericOnebitLogicObjectpublic java.lang.String getFormattedBase0()
public java.lang.String getFormattedBase1()
public java.lang.String getFormattedBase2()
public java.lang.String getFormattedBase3()
public void setFormattedBase0(java.lang.String s)
public void setFormattedBase1(java.lang.String s)
public void setFormattedBase2(java.lang.String s)
public void setFormattedBase3(java.lang.String s)
public java.lang.String getFormattedLimit0()
public java.lang.String getFormattedLimit1()
public java.lang.String getFormattedLimit2()
public java.lang.String getFormattedLimit3()
public void setFormattedLimit0(java.lang.String s)
public void setFormattedLimit1(java.lang.String s)
public void setFormattedLimit2(java.lang.String s)
public void setFormattedLimit3(java.lang.String s)
public int parse(java.lang.String s)
public java.lang.String format(int addr)
public void write(java.io.PrintWriter ps)
write in class GenericOnebitLogicObjectpublic boolean initialize(java.lang.String s)
initialize in class GenericOnebitLogicObjectpublic void evaluate(java.lang.Object arg)
evaluate in interface Simulatableevaluate in class SimObjectarg - an arbitrary object argument
public void setOutput(Port port,
StdLogic1164 value,
double time)
public void configure()
configure in class GenericOnebitLogicObject
public java.lang.String getToolTip(java.awt.Point position,
long millis)
getToolTip in interface ContextToolTipgetToolTip in class SimObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||