All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class duckMachine.architecture.CachedMemory

java.lang.Object
   |
   +----duckMachine.architecture.Memory
           |
           +----duckMachine.architecture.CachedMemory

public class CachedMemory
extends Memory
Memory with cache.


Constructor Index

 o CachedMemory(int, int)

Method Index

 o fetch(Word)
Returns the contents of a specified address.
 o store(Word, Word)
Stores a word in a specified address.

Constructors

 o CachedMemory
 public CachedMemory(int c,
                     int s)

Methods

 o fetch
 public Word fetch(Word addr) throws MemoryE
Returns the contents of a specified address.

Overrides:
fetch in class Memory
 o store
 public void store(Word addr,
                   Word word) throws MemoryE
Stores a word in a specified address.

Overrides:
store in class Memory

All Packages  Class Hierarchy  This Package  Previous  Next  Index