Class ROMcs

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

public class ROMcs
extends ROM

ROMcs - a generic ROMcs with n words by m bits and global chip select.

This class models a standard LSI ROMcs with active low chip select. The data output is tristated unless nCS=0.

See Also:
Serialized Form

Field Summary
protected  PortStdLogic1164 port_nCS
Fields inherited from class hades.models.rtlib.memory.ROM
port_A, port_D, t_access, 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, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible
Constructor Summary
          ROMcs constructor
Method Summary
protected  void constructPorts()
 void elaborate(java.lang.Object arg)
          elaborate(): On elaboration, the inputs of the ROMcs will be undefined.
 void evaluate(java.lang.Object arg)
          evaluate(): Return the data at address after t_access
Methods inherited from class hades.models.rtlib.memory.ROM
canChangeSize, resize, setBitsPerWord, setSize
Methods inherited from class hades.models.rtlib.memory.GenericMemory
addMemoryListener, addMemoryListenerOld, checkInvalidateMemory, configure, constructStandardValues, createMemory, dataAtAddressIsUndefined, dbg, getAddressBusWidth, getAddrOffset, getBitsPerWord, getConfigDialog, getDataArray, getDataAt, getEnableAnimationFlag, getExternalResources, getHexDigitsPerWord, getHexString, getInstructionDecoder, getPropertySheet, getResourcename, getSize, getToolTip, initialize, initializeWithDefaultValues, initializeWithRandomValues, initializeWithX, initializeWithZeroes, isConnected, main, merge, needsExternalResources, notifyReadListeners, notifyReadListenersOld, notifyWriteListeners, notifyWriteListenersOld, parse, parseLabelLine, parseRAM, removeMemoryListener, removeMemoryListenerOld, save, setDataArray, setDataAt, setEnableAnimationFlag, setEnableAnimationFlag, setInstructionDecoder, setResourcename, toString, warning, write
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

Field Detail


protected PortStdLogic1164 port_nCS
Constructor Detail


public ROMcs()
ROMcs constructor

Method Detail


protected void constructPorts()
constructPorts in class ROM


public void elaborate(java.lang.Object arg)
elaborate(): On elaboration, the inputs of the ROMcs will be undefined. Correspondingly, the outputs are, too.

Specified by:
elaborate in interface Simulatable
elaborate in class ROM


public void evaluate(java.lang.Object arg)
evaluate(): Return the data at address after t_access

Specified by:
evaluate in interface Simulatable
evaluate in class ROM