C# Class ProgCom.CacheManager

Exibir arquivo Open project: Binamrad/ProgCom Class Usage Examples

Public Methods

Method Description
CacheManager ( ) : System
getMem ( UInt16 address ) : Int32
hwConnect ( IPCHardware hw ) : void
instructionLoad ( UInt16 adress, int &accessTime ) : UInt32
isCached ( UInt16 adress ) : bool
readMem ( UInt16 adress, int &accessTime ) : Int32
writeMem ( Int32 data, UInt16 adress ) : int

Private Methods

Method Description
adressRow ( int adress, UInt16 cache ) : int
getAccessTime ( UInt16 address, UInt16 cache, int loadOrder ) : int
isInCache ( UInt16 addr, UInt16 cache, int loadOrder ) : bool
loadLoc ( UInt16 addr, UInt16 cache, int loadOrder ) : void

Method Details

CacheManager() public method

public CacheManager ( ) : System
return System

getMem() public method

public getMem ( UInt16 address ) : Int32
address System.UInt16
return System.Int32

hwConnect() public method

public hwConnect ( IPCHardware hw ) : void
hw IPCHardware
return void

instructionLoad() public method

public instructionLoad ( UInt16 adress, int &accessTime ) : UInt32
adress System.UInt16
accessTime int
return System.UInt32

isCached() public method

public isCached ( UInt16 adress ) : bool
adress System.UInt16
return bool

readMem() public method

public readMem ( UInt16 adress, int &accessTime ) : Int32
adress System.UInt16
accessTime int
return System.Int32

writeMem() public method

public writeMem ( Int32 data, UInt16 adress ) : int
data System.Int32
adress System.UInt16
return int