hades.models.pic
Class TurboPicCore.PicMemoryRegbankAdapter

java.lang.Object
  extended byhades.models.pic.TurboPicCore.PicMemoryRegbankAdapter
All Implemented Interfaces:
PicMemory
Enclosing class:
TurboPicCore

class TurboPicCore.PicMemoryRegbankAdapter
extends java.lang.Object
implements PicMemory


Constructor Summary
(package private) TurboPicCore.PicMemoryRegbankAdapter()
           
 
Method Summary
 int getMemorySize()
          Capacity of the memory in words
 int getWordWidth()
          Witdh of one word in bits
 int readMemory(int addr)
          Read a word from the memory
 void writeMemory(int addr, int value)
          Write a word into the memory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TurboPicCore.PicMemoryRegbankAdapter

TurboPicCore.PicMemoryRegbankAdapter()
Method Detail

getWordWidth

public int getWordWidth()
Description copied from interface: PicMemory
Witdh of one word in bits

Specified by:
getWordWidth in interface PicMemory

getMemorySize

public int getMemorySize()
Description copied from interface: PicMemory
Capacity of the memory in words

Specified by:
getMemorySize in interface PicMemory

readMemory

public int readMemory(int addr)
Description copied from interface: PicMemory
Read a word from the memory

Specified by:
readMemory in interface PicMemory

writeMemory

public void writeMemory(int addr,
                        int value)
Description copied from interface: PicMemory
Write a word into the memory

Specified by:
writeMemory in interface PicMemory