RegWatch

Turn on/off register snooping

RegWatch

Shortest form: rw.

Log every SDK read or write of a register. The log goes to the TESTS debug source, so enable it with debug soc TESTS info (the command reminds you). While syncd is running this can produce a lot of output. It does not change the hardware.

Grammar:

regwatch <REGISTER | *> <read | write | off>
regwatch delta <on | off>

The built-in help shows [Reg=<Reg>] [write] [read] [off]; the shell actually takes the register name itself as the first word, followed by exactly one of read, write or off. * watches all registers. regwatch delta on|off switches a delta mode that the help does not mention.

Unvalidated

drivshell> debug soc TESTS info
drivshell> regwatch CLMAC_CTRL.ce0 write

Unvalidated — Stop watching

drivshell> regwatch CLMAC_CTRL.ce0 off
RegWatch delta <on | off>

Turn the delta mode on or off. Any word other than on turns it off.

Unvalidated

drivshell> regwatch delta on

Built-in help

Parameters: [Reg=<Reg>] [write] [read] [off]
    Reg specifies which reg to watch
    Write - specify to start watching writing operations on register
    Read  - specify to start watching reading operations on register
    Off   - specify to stop watching all operations on register