GMemory Class Reference
#include <network.h>
Constructor & Destructor Documentation
Member Function Documentation
uint032_t * GMemory::getrealaddr |
( |
const uint064_t |
addr |
) |
|
translate an address in the simulation to the real address
- Parameters:
-
- Returns:
- real address
void GMemory::read4b |
( |
const uint064_t |
addr, |
|
|
uint032_t * |
data | |
|
) |
| | |
read 4 byte from the specified address
- Parameters:
-
- Returns:
- data the pointer to be stored the data loaded from the memory
void GMemory::write4b |
( |
const uint064_t |
addr, |
|
|
const |
uint032_t | |
|
) |
| | |
write 4 byte to the specified address
- Parameters:
-
- Returns:
- data the data to be stored to the memory
uint032_t * GMemory::getpagerealaddr |
( |
const uint064_t |
addr |
) |
|
get the real address of page address
- Parameters:
-
- Returns:
- real address of the page
int GMemory::pagehit |
( |
const uint064_t |
addr |
) |
|
return whether the specified address is included in the current page buffer
- Parameters:
-
- Returns:
- 0: page fault, 1: page hit
Field Documentation
The documentation for this class was generated from the following files: