print-device-access-stats print-device-regs
Simics Reference Manual  /  3 Commands  /  3.2 Command List  / 

print-device-reg-info

Synopsis

print-device-reg-info ("register"|"bank") [offset]

Description

Print detailed information about a device register. The register argument is of the form device.bank.register. The information includes the register width in bits, byte offset within the register bank, its current value and all bit fields. If the device bank is mapped into memory, the command will try to resolve which physical address or addresses the register is mapped at.

Alternatively, the bank argument can be a bank object (of the form device.bank.<bank-name>) together with the optional offset argument, which specifies a byte offset in the bank. This will show detailed information for the register at that offset. If the offset falls in the middle of a register, the covering register is shown with a note about the misalignment.

When used in an expression, the return value is a list with register offset within the bank, the register width in bits, the current value, and the physical addresses where the register is mapped, together with the corresponding memory spaces. If the register is not mapped or does not hold any value, the return value will still report them as 0.

Provided By

Simics Core

See Also

print-device-regs, get-device-reg, get-device-offset
print-device-access-stats print-device-regs