set-context set-device-reg
Simics Reference Manual  /  3 Commands  /  3.2 Command List  / 

set-device-offset

Synopsis

set-device-offset "bank" offset data size [-l|-b]
write-device-offset "bank" offset data size [-l|-b]

Description

Write data of size to the bank object bank, i.e. device.bank.<bank-name>, or to other object implementing the transaction or io_memory interface. The old way to specify register banks (device.<bank-name>) is supported but deprecated. The offset is the byte offset from the start of the bank/object. For devices that still use function numbers to identify memory mappings, the bank argument can be in the form device.<function_number>.

The set-device-offset command performs an inquiry write, typically not overwriting read-only data in the device, while write-device-offset does a standard write access. Note that not all device models support inquiry accesses.

Some devices, such as ones written in DML, provide a preferred byte endianness that data should be converted to. The command will convert to this endianness unless the -l or -b flags are used to select an alternate one.

Not all devices support accesses that span several registers or that accesses a register partially. (For DML 1.2 devices, such support must be enabled in the device when it is compiled. This limitation is planned to be removed in the next version of the language.)

Provided By

Simics Core

See Also

get-device-reg, get-device-offset, set-device-reg, print-device-reg-info, print-device-regs
set-context set-device-reg