|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.simulator.SimObject
hades.models.rtlib.memory.GenericMemory
hades.models.rtlib.memory.MR
MR - a microcode ROM with some bus-, a state-, and 16 single outputs.
Field Summary | |
protected java.lang.String[] |
alabel
|
protected int |
cache_read_addr
|
protected int |
D_SIZE
|
protected int[][] |
fdata
|
protected int[] |
fdefaultValues
|
protected java.lang.String[] |
flabel
|
protected int[] |
flength
|
protected boolean[] |
fseparator
|
protected static int[] |
lengthMask
|
protected MREditorFrame |
MEF
|
protected int |
n_fields
|
protected int |
n_words
|
protected PortStdLogicVector |
port_A
|
protected PortStdLogic1164[] |
port_D
|
protected PortStdLogic1164 |
port_S0
|
protected PortStdLogic1164 |
port_S1
|
protected Port |
port_STATE
|
protected PortStdLogicVector |
port_X
|
protected PortStdLogicVector |
port_Y
|
protected FatLabel |
stateLabel
|
static double |
t_access
|
static double |
t_tristate
|
static double |
t_undefined
|
Fields inherited from class hades.models.rtlib.memory.GenericMemory |
bit_mask, data, enableAnimationFlag, last_read_addr, last_read_data, last_write_addr, last_write_data, n_bits, resourcename, TRISTATED, UNDEFINED, 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 | |
MR()
MR constructor |
Method Summary | |
void |
configure()
create and display a 'ConfigDialog' to set the parameters for a SimObject. |
protected void |
constructPorts()
|
void |
createDefaultValues(int[] data)
|
void |
createField(int index,
int length,
java.lang.String name)
|
void |
createTypesAndFieldsAndMemory()
|
void |
elaborate(java.lang.Object arg)
elaborate(): On elaboration, the inputs of the MR will be undefined. |
void |
evaluate(java.lang.Object arg)
evaluate(): Return the data at address after t_access |
int |
getData(int addr,
int field)
|
int |
getFieldBits(int i)
|
int |
getFieldChars(int i)
|
java.lang.String |
getFieldName(int i)
|
int |
getNumberOfFields()
|
int |
getSize()
get the number of words in this memory. |
java.lang.String |
getStateLabel(int i)
|
java.lang.String |
getToolTip(java.awt.Point position,
long millis)
construct a (not so short) tool tip message. |
void |
initializeWithDefaultValues()
|
boolean |
isDefaultValue(int addr,
int field)
|
boolean |
isSeparator(int i)
|
boolean |
parse(java.io.BufferedReader reader)
parse RAM data from a file specified via its Java 1.1 resourcename. |
boolean |
save(java.io.PrintWriter PW)
write the memory data in a trivial addr:data format, one address per line. |
void |
schedulePortOutput(PortStdLogicVector port,
int value,
double time)
|
void |
scheduleSingleOutput(Port port,
int value,
double time)
|
void |
setData(int addr,
int field,
int value)
|
void |
setDSize()
|
void |
setFieldName(int f,
java.lang.String s)
|
void |
setStateLabel(int addr,
java.lang.String s)
|
void |
setSymbol(Symbol s)
|
Methods inherited from class hades.simulator.SimObject |
constructDynamicSymbol, copy, getBindkey, getClassLoader, getDebug, getEditor, getFullName, getName, getParent, getPort, getPorts, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getVersionId, isVisible, keyPressed, message, mousePressed, needsDynamicSymbol, setClassLoader, setConsole, setDebug, setEditor, setName, setParent, setPorts, setSimulator, setVersionId, setVisible, tearDown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int n_words
protected int n_fields
protected java.lang.String[] alabel
protected java.lang.String[] flabel
protected int[] flength
protected int[][] fdata
protected int[] fdefaultValues
protected boolean[] fseparator
protected MREditorFrame MEF
protected int D_SIZE
protected FatLabel stateLabel
protected int cache_read_addr
protected PortStdLogicVector port_A
protected PortStdLogic1164 port_S1
protected PortStdLogic1164 port_S0
protected PortStdLogicVector port_X
protected PortStdLogicVector port_Y
protected PortStdLogic1164[] port_D
protected Port port_STATE
public static final double t_access
public static final double t_tristate
public static final double t_undefined
protected static int[] lengthMask
Constructor Detail |
public MR()
Method Detail |
public void setDSize()
public void createTypesAndFieldsAndMemory()
public void createField(int index, int length, java.lang.String name)
public int getSize()
Memory
getSize
in interface Memory
getSize
in class GenericMemory
public int getNumberOfFields()
public int getFieldBits(int i)
public java.lang.String getStateLabel(int i)
public java.lang.String getFieldName(int i)
public boolean isSeparator(int i)
public int getFieldChars(int i)
public int getData(int addr, int field)
public void setData(int addr, int field, int value)
public void setStateLabel(int addr, java.lang.String s)
public void setFieldName(int f, java.lang.String s)
public void createDefaultValues(int[] data)
public void initializeWithDefaultValues()
initializeWithDefaultValues
in class GenericMemory
public boolean isDefaultValue(int addr, int field)
protected void constructPorts()
constructPorts
in class GenericMemory
public boolean save(java.io.PrintWriter PW)
save
in interface Memory
save
in class GenericMemory
public boolean parse(java.io.BufferedReader reader) throws java.lang.Exception
parse
in interface Memory
parse
in class GenericMemory
java.lang.Exception
public void elaborate(java.lang.Object arg)
elaborate
in interface Simulatable
elaborate
in class GenericMemory
public void evaluate(java.lang.Object arg)
evaluate
in interface Simulatable
evaluate
in class GenericMemory
public void scheduleSingleOutput(Port port, int value, double time)
public void schedulePortOutput(PortStdLogicVector port, int value, double time)
public void configure()
SimObject
configure
in class GenericMemory
public void setSymbol(Symbol s)
setSymbol
in class SimObject
public java.lang.String getToolTip(java.awt.Point position, long millis)
getToolTip
in interface ContextToolTip
getToolTip
in class GenericMemory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |