dev_util script_branch
API Reference Manual  /  Python API  / 

dev_util_internal

Name

dev_util_internal — Internal and/or legacy classes removed from dev_util.py

Synopsis

Python

import dev_util_internal

class dev_util_internal.Dev

Alias of dev_util.Dev.

class dev_util_internal.Iface

Alias of dev_util.Iface.

dev_util_internal.iface

Alias of dev_util.iface.

class dev_util_internal.Memory

Synopsis

class dev_util_internal.Memory(test=False)

Description

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.

Constructor Arguments

test
set to True to not create any Simics objects, optional, defaults to False

dev_util_internal.Memory.clear

Synopsis

dev_util_internal.Memory.clear()

Description

Clear the contents of the memory.

dev_util_internal.Memory.is_range_touched

Synopsis

dev_util_internal.Memory.is_range_touched(start, length)

Description

Return True if any of this memory’s slots in the range contain data.

dev_util_internal.Memory.read

Synopsis

dev_util_internal.Memory.read(addr, n)

Description

Returns a list of n bytes, starting at addr

Read bytes from this memory.

Arguments:

addr
the start address of the range to read n
length in bytes of the range to read

This method throws an exception if any byte in the read range is empty.

dev_util_internal.Memory.write

Synopsis

dev_util_internal.Memory.write(addr, bytes)

Description

Writes the data in the bytes tuple to addr

Write bytes to this memory.

Arguments:

addr
the start address of the range to write n
the bytes to write

Fills in empty slots in the memory and overwrites already existing data.

dev_util script_branch