public interface MemoryDevice
MemoryDevice
interface provides a unified access
to an abstract memory device, which can be implemented as a simple
data array or as a complex hierarchy of data buffers.Modifier and Type | Method and Description |
---|---|
int |
getAddressBitSize()
Returns the size of address used to perform an access to the memory device.
|
int |
getDataBitSize()
Returns the size of data unit that can be read or written from
the memory device at once.
|
boolean |
isInitialized(ru.ispras.fortress.data.types.bitvector.BitVector address)
Checks whether the specified address location has been initialized.
|
ru.ispras.fortress.data.types.bitvector.BitVector |
load(ru.ispras.fortress.data.types.bitvector.BitVector address)
Loads data from the given address.
|
void |
store(ru.ispras.fortress.data.types.bitvector.BitVector address,
ru.ispras.fortress.data.types.bitvector.BitVector data)
Stores the specified data at the given address.
|
void |
store(ru.ispras.fortress.data.types.bitvector.BitVector address,
int offset,
ru.ispras.fortress.data.types.bitvector.BitVector data)
Stores the specified data at the given address.
|
int getAddressBitSize()
int getDataBitSize()
ru.ispras.fortress.data.types.bitvector.BitVector load(ru.ispras.fortress.data.types.bitvector.BitVector address)
address
- Load address.getDataBitSize()
.void store(ru.ispras.fortress.data.types.bitvector.BitVector address, ru.ispras.fortress.data.types.bitvector.BitVector data)
address
- Store address.data
- Data of size equal to returned by getDataBitSize()
.void store(ru.ispras.fortress.data.types.bitvector.BitVector address, int offset, ru.ispras.fortress.data.types.bitvector.BitVector data)
address
- Store address.offset
- Data offset in bits.data
- Data of size equal to getDataBitSize()
- offset
.boolean isInitialized(ru.ispras.fortress.data.types.bitvector.BitVector address)
address
- Address to be checked.true
is the address location is initialized or false
otherwise.