dev_util_internal — Internal and/or legacy classes removed from dev_util.py
import dev_util_internal
Alias of dev_util.Dev.
Alias of dev_util.Iface.
Alias of dev_util.iface.
class dev_util_internal.Memory(test=False)
A Simics memory space in which every slot can contain a byte, or be empty.
Each byte sized slot in this memory can either contain a byte of data or be empty. Empty slots cannot be read.
The obj attribute contains the object implementing the Simics interface to the memory. It implements the memory_space interface.
testdev_util_internal.Memory.clear()
Clear the contents of the memory.
dev_util_internal.Memory.is_range_touched(start, length)
Return True if any of this memory’s slots in the range contain data.
dev_util_internal.Memory.read(addr, n)
Returns a list of n bytes, starting at addr
Read bytes from this memory.
Arguments:
addrnThis method throws an exception if any byte in the read range is empty.
dev_util_internal.Memory.write(addr, bytes)
Writes the data in the bytes tuple to addr
Write bytes to this memory.
Arguments:
addrnFills in empty slots in the memory and overwrites already existing data.