Class DcoreROM

  extended byhades.simulator.SimObject
      extended byhades.models.rtlib.memory.GenericMemory
          extended byhades.models.mcore.DcoreRAM
              extended byhades.models.mcore.DcoreROM
All Implemented Interfaces:
java.lang.Cloneable, ContextToolTip, Memory, java.io.Serializable, Simulatable

public class DcoreROM
extends DcoreRAM

DcoreROM - a ROM with n words by m bits and output enable inputs.

The user interface for the ROM offers a disassembler view with support for LABEL resolution and editing. Input and output formats display and use byte-addresses, but only aligned works will be accepted on input.

When chip-select or output enable are high, the data output of the ROM is tristated.

See Also:
Serialized Form

Field Summary
Fields inherited from class hades.models.mcore.DcoreRAM
addr_offset, editor, port_A, port_DIN, port_DOUT, port_nCS, port_nOE, port_nWE, t_access, t_min_we_cycle, t_setup, t_tristate, 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, MEF, n_bits, n_words, resourcename, TRISTATED, UNDEFINED, vector_000, vector_111, vector_UUU, vector_XXX, vector_ZZZ
Fields inherited from class hades.simulator.SimObject
classloader, console, debug, name, parent, ports, propertySheet, simulator, symbol, versionId, visible
Constructor Summary
          DcoreROM constructor
Method Summary
protected  void constructPorts()
          construct the ports for this memory.
 void evaluate(java.lang.Object arg)
Methods inherited from class hades.models.mcore.DcoreRAM
canChangeSize, configure, createEditor, elaborate, getAddrOffset, getPropertySheet, initialize, parse, parseLabelLine, resize, save, setBitsPerWord, setSize, write
Methods inherited from class hades.models.rtlib.memory.GenericMemory
addMemoryListener, addMemoryListenerOld, checkInvalidateMemory, constructStandardValues, createMemory, dataAtAddressIsUndefined, dbg, getAddressBusWidth, getBitsPerWord, getConfigDialog, getDataArray, getDataAt, getEnableAnimationFlag, getExternalResources, getHexDigitsPerWord, getHexString, getInstructionDecoder, getResourcename, getSize, getToolTip, initializeWithDefaultValues, initializeWithRandomValues, initializeWithX, initializeWithZeroes, isConnected, main, merge, needsExternalResources, notifyReadListeners, notifyReadListenersOld, notifyWriteListeners, notifyWriteListenersOld, parseRAM, removeMemoryListener, removeMemoryListenerOld, setDataArray, setDataAt, setEnableAnimationFlag, setEnableAnimationFlag, setInstructionDecoder, setResourcename, toString, warning
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, setSymbol, setVersionId, setVisible, tearDown
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public DcoreROM()
DcoreROM constructor

Method Detail


protected void constructPorts()
construct the ports for this memory. Note that the address bus width is one bit higher than might be expected, due to the word-address vs. byte address conflict: external adresses are byte addresses, but the memory stores words...

constructPorts in class DcoreRAM


public void evaluate(java.lang.Object arg)

Specified by:
evaluate in interface Simulatable
evaluate in class DcoreRAM