VPR — RISC-V CPU

VPR is a small, efficient CPU developed by Nordic Semiconductor.

The VPR implementation is the Fast Lightweight Peripheral Processor (FLPR), optimized to implement coprocessor functions, and operating at the same frequency as the application processor.

VPR is compatible with the RISC-V instruction set and implements the following extensions:

VPR implements the machine mode CPU mode as well as the RISC-V CLIC specification for the interrupt controller.

VPR does not start on its own, but must be started by the application core processor by performing the following steps:
  1. Configure VPR program counter (PC) to point to the peripheral binary image by using register INITPC.
  2. Start VPR by using register CPURUN.

Registers

Instances

InstanceDomainBase addressTrustZoneSplit accessDescription
MapAttDMA
VPR00 : S
VPR00 : NS
GLOBAL0x5004C000
0x4004C000
USNSNSANoFLPR - VPR peripheral registers

Configuration

InstanceDomainConfiguration
VPR00 : S
VPR00 : NS
GLOBAL

VEVIF indexes 16 through 19 maps onto DPPI channels 0 through 4

Supports RV32E (Base Integer Instruction Set embedded)

Supports M extension (Integer Multiplication and Division)

Supports C extension (compressed instructions)

Supports Zba extension (Bit Manipulation - Address generation instructions)

Supports Zbb extension (Bit Manipulation - Basic bit manipulation)

Supports Zbc extension (Bit Manipulation - Carry-less multiplication)

Supports Zbs extension (Bit Manipulation - Single bit instructions)

Supports Zcb extension (code-size saving instructions)

Does not support FENCE.I instruction (use FENCE instruction instead)

Supports CSR (Control and Status Register) instructions

Does not support CNTR (base counter) instructions

Supports M-mode CLIC (interrupt controller)

Supports MCLICCFG register

Supports external debugger

Debugger supports triggers (breakpoints)

Boot vector (INIT_PC_RESET_VALUE): 0x00000000

Self-booting (VPR_START_RESET_VALUE): 0

VPR RAM base address (RAM_BASE_ADDR): 0x20000000

VPR RAM size (RAM_SZ): 20 (Value in bytes is computed as 2^(RAM size))

Retain registers in Deep Sleep mode: 0

Restore VPR context at VPR reset using register [NRF_MEMCONF->POWER1.RET].MEM[0]

VPR context save address: 0x2003FE00

VPR context save size: 512 bytes

VPR remap address: 0x00000000

VEVIF tasks: 16..22

Mask of supported VEVIF tasks: 0x007F0000

VEVIF DPPI indices: 16..19

Mask of supported VEVIF DPPI channels: 0x000F0000

VEVIF events: 16..22

Mask of supported VEVIF events: 0x00100000

Debugger interface register offset: 0x5004C400

Register overview

RegisterOffsetTZDescription
TASKS_TRIGGER[n]0x000VPR task [n] register
SUBSCRIBE_TRIGGER[n]0x080Subscribe configuration for task TASKS_TRIGGER[n]
EVENTS_TRIGGERED[n]0x100VPR event [n] register
PUBLISH_TRIGGERED[n]0x180Publish configuration for event EVENTS_TRIGGERED[n]
INTEN0x300Enable or disable interrupt
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
INTPEND0x30CPending interrupts
DEBUGIF.DATA00x410Abstract Data 0. Read/write data for argument 0
DEBUGIF.DATA10x414Abstract Data 1. Read/write data for argument 1
DEBUGIF.DMCONTROL0x440Debug Module Control
DEBUGIF.DMSTATUS0x444Debug Module Status
DEBUGIF.HARTINFO0x448Hart Information
DEBUGIF.HALTSUM10x44CHalt Summary 1
DEBUGIF.HAWINDOWSEL0x450Hart Array Window Select
DEBUGIF.HAWINDOW0x454Hart Array Window
DEBUGIF.ABSTRACTCS0x458Abstract Control and Status
DEBUGIF.ABSTRACTCMD0x45CAbstract command
DEBUGIF.ABSTRACTAUTO0x460Abstract Command Autoexec
DEBUGIF.CONFSTRPTR[n]0x464Configuration String Pointer [n]
DEBUGIF.NEXTDM0x474Next Debug Module
DEBUGIF.PROGBUF[n]0x480Program Buffer [n]
DEBUGIF.AUTHDATA0x4C0Authentication Data
DEBUGIF.HALTSUM20x4D0Halt Summary 2
DEBUGIF.HALTSUM30x4D4Halt Summary 3
DEBUGIF.SBADDRESS30x4DCSystem Bus Addres 127:96
DEBUGIF.SBCS0x4E0System Bus Access Control and Status
DEBUGIF.SBADDRESS00x4E4System Bus Addres 31:0
DEBUGIF.SBADDRESS10x4E8System Bus Addres 63:32
DEBUGIF.SBADDRESS20x4ECSystem Bus Addres 95:64
DEBUGIF.SBDATA00x4F0System Bus Data 31:0
DEBUGIF.SBDATA10x4F4System Bus Data 63:32
DEBUGIF.SBDATA20x4F8System Bus Data 95:64
DEBUGIF.SBDATA30x4FCSystem Bus Data 127:96
DEBUGIF.HALTSUM00x500Halt summary 0
CPURUN0x800State of the CPU after a core reset
INITPC0x808Initial value of the PC at CPU start.

TASKS_TRIGGER[n]

Address offset: 0x000 + (n × 0x4)

VPR task [n] register

If RTPs are not enabled: writes to registers 15..0 are ignored, other read/write accesses operate normally

If RTPs are enabled: reads or writes to these registers will be stalled if there is a simultaneous VPR CSR write access

to any CSR register.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTASKS_TRIGGER

VPR task [n] register

If RTPs are not enabled: writes to registers 15..0 are ignored, other read/write accesses operate normally

If RTPs are enabled: reads or writes to these registers will be stalled if there is a simultaneous VPR CSR write access

to any CSR register.

Trigger1Trigger task

SUBSCRIBE_TRIGGER[n]

Address offset: 0x080 + (n × 0x4)

Subscribe configuration for task TASKS_TRIGGER[n]

If RTPs are not enabled: writes to registers 15..0 are ignored, other read/write accesses operate normally

If RTPs are enabled: reads or writes to these registers will be stalled if there is a simultaneous VPR CSR write access

to any CSR register.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEN

Subscription enable bit

Its value depends on OR between bit 31 and bit 0 of previously written value

Disabled0x0Disable subscription
Enabled0x1Enable subscription

EVENTS_TRIGGERED[n]

Address offset: 0x100 + (n × 0x4)

VPR event [n] register

If RTPs are not enabled: writes to registers 15..0 are ignored, other read/write accesses operate normally

If RTPs are enabled: reads or writes to these registers will be stalled if there is a simultaneous VPR CSR write access

to any CSR register.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_TRIGGERED

VPR event [n] register

If RTPs are not enabled: writes to registers 15..0 are ignored, other read/write accesses operate normally

If RTPs are enabled: reads or writes to these registers will be stalled if there is a simultaneous VPR CSR write access

to any CSR register.

NotGenerated0Event not generated
Generated1Event generated

PUBLISH_TRIGGERED[n]

Address offset: 0x180 + (n × 0x4)

Publish configuration for event EVENTS_TRIGGERED[n]

If RTPs are not enabled: writes to registers 15..0 are ignored, other read/write accesses operate normally

If RTPs are enabled: reads or writes to these registers will be stalled if there is a simultaneous VPR CSR write access

to any CSR register.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEN

Publication enable bit

Its value depends on OR between bit 31 and bit 0 of previously written value

Disabled0x0Disable publishing
Enabled0x1Enable publishing

INTEN

Address offset: 0x300

Enable or disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
RWTRIGGERED[i] (i=16..22)

Enable or disable interrupt for event TRIGGERED[i]

If RTPs are not enabled: writes to registers 15..0 are ignored, other read/write accesses operate normally

If RTPs are enabled: reads or writes to these registers will be stalled if there is a simultaneous VPR CSR write access

to any CSR register.

Disabled0Disable
Enabled1Enable

INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
RW
W1S
TRIGGERED[i] (i=16..22)

Write '1' to enable interrupt for event TRIGGERED[i]

If RTPs are not enabled: writes to registers 15..0 are ignored, other read/write accesses operate normally

If RTPs are enabled: reads or writes to these registers will be stalled if there is a simultaneous VPR CSR write access

to any CSR register.

Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled

INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
RW
W1C
TRIGGERED[i] (i=16..22)

Write '1' to disable interrupt for event TRIGGERED[i]

If RTPs are not enabled: writes to registers 15..0 are ignored, other read/write accesses operate normally

If RTPs are enabled: reads or writes to these registers will be stalled if there is a simultaneous VPR CSR write access

to any CSR register.

Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled

INTPEND

Address offset: 0x30C

Pending interrupts

Bit number313029282726252423222120191817161514131211109876543210
IDGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
RTRIGGERED[i] (i=16..22)

Read pending status of interrupt for event TRIGGERED[i]

If RTPs are not enabled: writes to registers 15..0 are ignored, other read/write accesses operate normally

If RTPs are enabled: reads or writes to these registers will be stalled if there is a simultaneous VPR CSR write access

to any CSR register.

NotPending0Read: Not pending
Pending1Read: Pending

DEBUGIF.DATA0

Address offset: 0x410

Abstract Data 0. Read/write data for argument 0

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDATA0Abstract Data 0

DEBUGIF.DATA1

Address offset: 0x414

Abstract Data 1. Read/write data for argument 1

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDATA1Abstract Data 1

DEBUGIF.DMCONTROL

Address offset: 0x440

Debug Module Control

Bit number313029282726252423222120191817161514131211109876543210
IDKJIHGFFFFFFFFFFEEEEEEEEEEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMACTIVEReset signal for the debug module.
Disabled0Reset the debug module itself
Enabled1Normal operation
BRWNDMRESETReset signal output from the debug module to the system.
Inactive0Reset inactive
Active1Reset active
CWCLRRESETHALTREQClear the halt on reset request.
NoOperation0No operation when written 0.
Clear1Clears the halt on reset request
DWSETRESETHALTREQSet the halt on reset request.
NoOperation0No operation when written 0.
Clear1Sets the halt on reset request
EWHARTSELHIThe high 10 bits of hartsel.
FWHARTSELLOThe low 10 bits of hartsel.
GWHASELDefinition of currently selected harts.
Single0Single hart selected.
Multiple1Multiple harts selected
HWACKHAVERESETClear the havereset.
NoOperation0No operation when written 0.
Clear1Clears the havereset for selected harts.
IRWHARTRESETReset harts.
Deasserted0Reset de-asserted.
Asserted1Reset asserted.
JWRESUMEREQResume currently selected harts.
NoOperation0No operation when written 0.
Resumed1Currently selected harts resumed.
KWHALTREQHalt currently selected harts.
Clear0Clears halt request bit for all currently selected harts.
Halt1Currently selected harts halted.

DEBUGIF.DMSTATUS

Address offset: 0x444

Debug Module Status

Bit number313029282726252423222120191817161514131211109876543210
IDRQPONMLKJIHGFEDCBAAAA
Reset 0x0040008200000000010000000000000010000010
IDR/WFieldValue IDValueDescription
ARVERSIONVersion of the debug module.
NotPresent0Debug module not present.
V0111There is a Debug Module and it conforms to version 0.11 of this specifcation.
V0132There is a Debug Module and it conforms to version 0.13 of this specifcation.
NonConform15There is a Debug Module but it does not conform to any available version of the spec.
BRCONFSTRPTRVALIDConfiguration string.
NotRelevant0The confstrptr0..confstrptr3 holds information which is not relevant to the configuration string.
Address1The confstrptr0..confstrptr3 holds the address of the configuration string.
CRHASRESETHALTREQHalt-on-reset support status.
No0Halt-on-reset is supported.
Yes1Halt-on-reset is not supported.
DRAUTHBUSYAuthentication busy status.
No0The authentication module is ready.
Yes1The authentication module is busy.
ERAUTHENTICATEDAuthentication status.
No0Authentication required before using the debug module.
Yes1Authentication passed.
FRANYHALTEDAny currently selected harts halted status.
No0None of the currently selected harts halted.
Yes1Any of the currently selected harts halted.
GRALLHALTEDAll currently selected harts halted status.
No0Not all of the currently selected harts halted.
Yes1All of the currently selected harts halted.
HRANYRUNNINGAny currently selected harts running status.
No0None of the currently selected harts running.
Yes1Any of the currently selected harts running.
IRALLRUNNINGAll currently selected harts running status.
No0Not all of the currently selected harts running.
Yes1All of the currently selected harts running.
JRANYUNAVAILAny currently selected harts unavailable status.
No0None of the currently selected harts unavailable.
Yes1Any of the currently selected harts unavailable.
KRALLUNAVAILAll currently selected harts unavailable status.
No0Not all of the currently selected harts unavailable.
Yes1All of the currently selected harts unavailable.
LRANYNONEXISTENTAny currently selected harts nonexistent status.
No0None of the currently selected harts nonexistent.
Yes1Any of the currently selected harts nonexistent.
MRALLNONEXISTENTAll currently selected harts nonexistent status.
No0Not all of the currently selected harts nonexistent.
Yes1All of the currently selected harts nonexistent.
NRANYRESUMEACKAny currently selected harts acknowledged last resume request.
No0None of the currently selected harts acknowledged last resume request.
Yes1Any of the currently selected harts acknowledged last resume request.
ORALLRESUMEACKAll currently selected harts acknowledged last resume
No0Not all of the currently selected harts acknowledged last resume request.
Yes1All of the currently selected harts acknowledged last resume request.
PRANYHAVERESETAny currently selected harts have been reset and reset is not acknowledged.
No0None of the currently selected harts have been reset and reset is not acknowledget.
Yes1Any of the currently selected harts have been reset and reset is not acknowledge.
QRALLHAVERESETAll currently selected harts have been reset and reset is not acknowledge
No0Not all of the currently selected harts have been reset and reset is not acknowledge.
Yes1All of the currently selected harts have been reset and reset is not acknowledge.
RRIMPEBREAKImplicit ebreak instruction at the non-existent word immediately after the Program Buffer.
No0No implicit ebreak instruction.
Yes1Implicit ebreak instruction.

DEBUGIF.HARTINFO

Address offset: 0x448

Hart Information

This register gives information about the hart currently selected by hartsel. This register is optional. If it is not present it should read all-zero. If this register is included, the debugger can do more with the Program Buffer by writing programs which explicitly access the data and/or dscratch registers

Bit number313029282726252423222120191817161514131211109876543210
IDDDDDCBBBBAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARDATAADDR-2048 .. 2047

Data Address

If dataaccess is 0: The number of the first CSR dedicated to shadowing the data registers. If dataaccess is 1: Address of RAM where the data registers are shadowed. This address is sign extended and easily addressed with a load or store using x0 as the address register.

BRDATASIZE0 .. 12

Data Size

If dataaccess is 0: Number of CSRs dedicated to shadowing the data registers. If dataaccess is 1: Number of 32-bit words in the memory map dedicated to shadowing the data registers. Since there are at most 12 data registers, the value in this register must be 12 or smaller

CRDATAACCESSData Access
No0The data registers are shadowed in the hart by CSRs. Each CSR is DXLEN bits in size, and corresponds to a single argument.
Yes1The data registers are shadowed in the hart’s memory map. Each register takes up 4 bytes in the memory map.
DRNSCRATCH

Number of dscratch registers

Number of dscratch registers available for the debugger to use during program buffer execution, starting from dscratch0. The debugger can make no assumptions about the contents of these registers between commands.

DEBUGIF.HALTSUM1

Address offset: 0x44C

Halt Summary 1

Each bit in this read-only register indicates whether any of a group of harts is halted or not. Unavailable/nonexistent harts are not considered to be halted. This register might not be present if fewer than 33 harts are connected to this DM. The LSB reflects the halt status of harts hartsel[19:10] 0x0 through 0x1f. The MSB reflects the halt status of harts hartsel[19:10] 0x3e0 through 0x3ff.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARHALTSUM1Halt Summary 1

DEBUGIF.HAWINDOWSEL

Address offset: 0x450

Hart Array Window Select

This register selects which of the 32-bit portion of the hart array mask register is accessible in hawindow

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARHAWINDOWSELThe high bits of this field may be tied to 0, depending on how large the array mask register is. E.g. on a system with 48 harts only bit 0 of this field may actually be writable.

DEBUGIF.HAWINDOW

Address offset: 0x454

Hart Array Window

This register provides R/W access to a 32-bit portion of the hart array mask register. The position of the window is determined by hawindowsel. I.e. bit 0 refers to hart hawindowsel x 32, while bit 31 refers to hart hawindowsel x 32 + 31. Since some bits in the hart array mask register may be constant 0, some bits in this register may be constant 0, depending on the current value of hawindowsel.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMASKDATAMask data.

DEBUGIF.ABSTRACTCS

Address offset: 0x458

Abstract Control and Status

Bit number313029282726252423222120191817161514131211109876543210
IDDDDDDCBBBAAAA
Reset 0x0100000200000001000000000000000000000010
IDR/WFieldValue IDValueDescription
ARDATACOUNTNumber of data registers that are implemented as part of the abstract command interface. Valid sizes are 1..12.
BRWCMDERRCommand error when the abstract command fails.
NoError0No error.
Busy1An abstract command was executing while command, abstractcs, or abstractauto was written, or when one of the data or progbuf registers was read or written. This status is only written if cmderr contains 0
NotSupported2The requested command is notsupported, regardless of whether the hart is running or not.
Exception3An exception occurred while executing the command (e.g. while executing theProgram Buffer).
HaltResume4The abstract command couldn't execute because the hart wasn't in the required state (running/halted). or unavailable.
Bus5The abstract command failed due to abus error (e.g. alignment, access size, or timeout).
Other7The command failed for another reason.
CRBUSYAbstract command execution status.
NotBusy0Not busy.
Busy1An abstract command is currently being executed. This bit is set as soon as command is written, and is not cleared until that command has completed.
DRPROGBUFSIZESize of the Program Buffer, in 32-bit words. Valid sizes are 0 - 1.

DEBUGIF.ABSTRACTCMD

Address offset: 0x45C

Abstract command

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWCONTROLThis Field is interpreted in a command specific manner, described for each abstract command.
BWCMDTYPEThe type determines the overall functionality of this abstract command.
REGACCESS0Register Access Command
QUICKACCESS1Quick Access Command
MEMACCESS2Memory Access Command

DEBUGIF.ABSTRACTAUTO

Address offset: 0x460

Abstract Command Autoexec

This register is optional. Including it allows more efficient burst accesses. A debugger can detect whether it is support by setting bits and reading them back. Writing this register while an abstract command is executing causes cmderr to become 1 (busy) once the command completes (busy becomes 0).

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBBBBBBBAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARAUTOEXECDATAWhen a bit in this field is 1, read or write accesses to the corresponding data word cause the command in command to be executed again.
BRAUTOEXECPROGBUFWhen a bit in this field is 1, read or write accesses to the corresponding progbuf word cause the command in command to be executed again.

DEBUGIF.CONFSTRPTR[n]

Address offset: 0x464 + (n × 0x4)

Configuration String Pointer [n]

When confstrptrvalid is set, reading this register returns bits 31:0 of the configuration string pointer. Reading the other confstrptr registers returns the upper bits of the address. When system bus mastering is implemented, this must be an address that can be used with the System Bus Access module. Otherwise, this must be an address that can be used to access the configuration string from the hart with ID 0.32 RISC-V External Debug Support Version 0.14.0-DRAFT If confstrptrvalid is 0, then the confstrptr registers hold identifier information.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARADDRAddress

DEBUGIF.NEXTDM

Address offset: 0x474

Next Debug Module

If there is more than one DM accessible on this DMI, this register contains the base address of the next one in the chain, or 0 if this is the last one in the chain.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARADDRAddress

DEBUGIF.PROGBUF[n]

Address offset: 0x480 + (n × 0x4)

Program Buffer [n]

progbuf0 through progbuf15 provide read/write access to the optional program buffer. progbufsize indicates how many of them are implemented starting at progbuf0, counting up. Accessing these registers while an abstract command is executing causes cmderr to be set to 1 (busy) if it is 0. Attempts to write them while busy is set does not change their value. The values in these registers may not be preserved after an abstract command is executed. The only guarantees on their contents are the ones offered by the command in question. If the command fails, no assumptions can be made about the contents of these registers.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARDATAData

DEBUGIF.AUTHDATA

Address offset: 0x4C0

Authentication Data

This register serves as a 32-bit serial port to/from the authentication module. When authbusy is clear, the debugger can communicate with the authentication module by reading or writing this register. There is no separate mechanism to signal overflow/underflow.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARDATAData

DEBUGIF.HALTSUM2

Address offset: 0x4D0

Halt Summary 2

Each bit in this read-only register indicates whether any of a group of harts is halted or not. Unavailable/nonexistent harts are not considered to be halted. This register might not be present if fewer than 1025 harts are connected to this DM. The LSB reflects the halt status of harts hartsel[19:15] 0x0 through hartsel[19:15] 0x3ff. The MSB reflects the halt status of harts hartsel[19:15] 0x7c00 through hartsel[19:15] 0x7fff

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARHALTSUM2Halt Summary 2

DEBUGIF.HALTSUM3

Address offset: 0x4D4

Halt Summary 3

Each bit in this read-only register indicates whether any of a group of harts is halted or not. Unavailable/nonexistent harts are not considered to be halted. This register might not be present if fewer than 32769 harts are connected to this DM. The LSB reflects the halt status of harts 0x0 through 0x7fff. The MSB reflects the halt status of harts 0xf8000 through 0xfffff

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARHALTSUM3Halt Summary 3

DEBUGIF.SBADDRESS3

Address offset: 0x4DC

System Bus Addres 127:96

If sbasize is less than 97, then this register is not present. When the system bus master is busy, writes to this register will set sbbusyerror and don’t do anything else.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARADDRESSAccesses bits 127:96 of the physical address in sbaddress (if the system address bus is that wide).

DEBUGIF.SBCS

Address offset: 0x4E0

System Bus Access Control and Status

Bit number313029282726252423222120191817161514131211109876543210
IDNNNMLKJJJIHGGGFFFFFFFEDCBA
Reset 0x2000000000100000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARSBACCESS8
sbaccess818-bit system bus accesses are supported.
BRSBACCESS16
sbaccess16116-bit system bus accesses are supported.
CRSBACCESS32
sbaccess32132-bit system bus accesses are supported.
DRSBACCESS64
sbaccess64164-bit system bus accesses are supported.
ERSBACCESS128
sbaccess1281128-bit system bus accesses are supported.
FRSBASIZEWidth of system bus addresses in bits. (0 indicates there is no bus access support.)
GRSBERRORWhen the Debug Module’s system bus master encounters an error, this field gets set. The bits in this field remain set until they are cleared by writing 1 to them. While this field is non-zero, no more system bus accesses can be initiated by the Debug Module. An implementation may report Other error (7) for any error condition.
Normal0There was no bus error.
Timeout1There was a timeout.
Address2A bad address was accessed.
Alignment3There was an alignment error.
Size4An access of unsupported size was requested.
Other7Other.
HRSBREADONDATA
sbreadondata1Every read from sbdata0 automatically triggers a system bus read at the (possibly autoincremented) address.
IRSBAUTOINCREMENT
sbautoincrement1sbaddress is incremented by the access size (in bytes) selected in sbaccess after every system bus access.
JRSBACCESSSelect the access size to use for system bus accesses. If sbaccess has an unsupported value when the DM starts a bus access, the access is not performed and sberror is set to 4.
size808-bit.
size16116-bit.
size32232-bit.
size64364-bit.
size1284128-bit.
KRSBREADONADDR
sbreadonaddr1Every write to sbaddress0 automatically triggers a system bus read at the new address.
LRSBBUSY(Whether the system bus itself is busy is related, but not the same thing.) This bit goes high immediately when a read or write is requested for any reason, and does not go low until the access is fully completed. Writes to sbcs while sbbusy is high result in undefined behavior. A debugger must not write to sbcs until it reads sbbusy as 0.
notbusy0System bus master is not busy.
busy1System bus master is busy.
MRSBBUSYERRORSet when the debugger attempts to read data while a read is in progress, or when the debugger initiates a new access while one is already in progress (while sbbusy is set). It remains set until it’s explicitly cleared by the debugger. While this field is set, no more system bus accesses can be initiated by the Debug Module.
noerror0No error.
error1Debugger access attempted while one in progress.
NRSBVERSION
version00The System Bus interface conforms to mainline drafts of thia RISC-V External Debug Support spec older than 1 January, 2018.
version11The System Bus interface conforms to RISC-V External Debug Support version 0.14.0-DRAFT. Other values are reserved for future versions.

DEBUGIF.SBADDRESS0

Address offset: 0x4E4

System Bus Addres 31:0

If sbasize is 0, then this register is not present. When the system bus master is busy, writes to this register will set sbbusyerror and don’t do anything else. If sberror is 0, sbbusyerror is 0, and sbreadonaddr is set then writes to this register start the following: 1. Set sbbusy. 2. Perform a bus read from the new value of sbaddress. 3. If the read succeeded and sbautoincrement is set, increment sbaddress. 4. Clear sbbusy.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARADDRESSAccesses bits 31:0 of the physical address in sbaddress.

DEBUGIF.SBADDRESS1

Address offset: 0x4E8

System Bus Addres 63:32

If sbasize is less than 33, then this register is not present. When the system bus master is busy, writes to this register will set sbbusyerror and don’t do anything else.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARADDRESSAccesses bits 63:32 of the physical address in sbaddress (if the system address bus is that wide).

DEBUGIF.SBADDRESS2

Address offset: 0x4EC

System Bus Addres 95:64

If sbasize is less than 65, then this register is not present. When the system bus master is busy, writes to this register will set sbbusyerror and don’t do anything else.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARADDRESSAccesses bits 95:64 of the physical address in sbaddress (if the system address bus is that wide).

DEBUGIF.SBDATA0

Address offset: 0x4F0

System Bus Data 31:0

If all of the sbaccess bits in sbcs are 0, then this register is not present. Any successful system bus read updates sbdata. If the width of the read access is less than the width of sbdata, the contents of the remaining high bits may take on any value. If either sberror or sbbusyerror isn’t 0 then accesses do nothing. If the bus master is busy then accesses set sbbusyerror, and don’t do anything else. Writes to this register start the following: 1. Set sbbusy. 2. Perform a bus write of the new value of sbdata to sbaddress. 3. If the write succeeded and sbautoincrement is set, increment sbaddress. 4. Clear sbbusy. Reads from this register start the following: 1. “Return” the data. 2. Set sbbusy. 3. If sbreadondata is set: (a) Perform a system bus read from the address contained in sbaddress, placing the result in sbdata. (b) If sbautoincrement is set and the read was successful, increment sbaddress. 4. Clear sbbusy. Only sbdata0 has this behavior. The other sbdata registers have no side effects. On systems that have buses wider than 32 bits, a debugger should access sbdata0 after accessing the other sbdata registers

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARDATAAccesses bits 31:0 of sbdata

DEBUGIF.SBDATA1

Address offset: 0x4F4

System Bus Data 63:32

If sbaccess64 and sbaccess128 are 0, then this register is not present. If the bus master is busy then accesses set sbbusyerror, and don’t do anything else.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARDATAAccesses bits 63:32 of sbdata (if the system bus is that wide).

DEBUGIF.SBDATA2

Address offset: 0x4F8

System Bus Data 95:64

This register only exists if sbaccess128 is 1. If the bus master is busy then accesses set sbbusyerror, and don’t do anything else

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARDATAAccesses bits 95:64 of sbdata (if the system bus is that wide).

DEBUGIF.SBDATA3

Address offset: 0x4FC

System Bus Data 127:96

This register only exists if sbaccess128 is 1. If the bus master is busy then accesses set sbbusyerror, and don’t do anything else

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARDATAAccesses bits 127:96 of sbdata (if the system bus is that wide).

DEBUGIF.HALTSUM0

Address offset: 0x500

Halt summary 0

Each bit in this read-only register indicates whether one specific hart is halted or not. Unavailable/nonexistent harts are not considered to be halted. This register might not be present if fewer than 2 harts are connected to this DM. The LSB reflects the halt status of hart hartsel[19:5] 0x0, and the MSB reflects halt status of hart hartsel[19:5] 0xf

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARHALTSUM0Halt summary 0

CPURUN

Address offset: 0x800

State of the CPU after a core reset

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWENControls CPU running state after a core reset.
Stopped0CPU stopped. If this is the CPU state after a core reset, setting this bit will change the CPU state to CPU running.
Running1CPU running. If this is the CPU state after a core reset, clearing this bit will change the CPU state to CPU stopped after a core reset.

INITPC

Address offset: 0x808

Initial value of the PC at CPU start.

Note: This address must be 64 bit aligned

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWINITPC

Initial value of the PC at CPU start.

This value should be set before setting CPURUN.EN. After setting CPURUN.EN, this register can be reconfigured to prepare the CPU to start from a new initial PC upon receiving a reset request

Registers

Instances

InstanceDomainBase addressTrustZoneSplit accessDescription
MapAttDMA
VPRCLICFLPR0xF0000000HFNSNANoVPR CLIC registers

Configuration

InstanceDomainConfiguration
VPRCLICFLPR

Supported interrupts (IRQNUM): 0..270

VEVIF tasks: 0..31

Mask of supported VEVIF tasks: 0xFFFFFFFF

VPR counter (CNT0) interrupt handler number (COUNTER_IRQ_NUM): 31

CLIC configuration for VPR 1.2 enabled

Register overview

RegisterOffsetTZDescription
CLIC.CLICCFG0x0000CLIC configuration.
CLIC.CLICINFO0x0004CLIC information.
CLIC.CLICINT[n]0x1000Interrupt control register for IRQ number [n].

CLIC.CLICCFG

Address offset: 0x0000

CLIC configuration.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBA
Reset 0x0000001100000000000000000000000000010001
IDR/WFieldValue IDValueDescription
ARNVBITSSelective interrupt hardware vectoring.
Implemented1Selective interrupt hardware vectoring is implemented
BRNLBITS

Interrupt level encoding.

Indicates how many upper bits are assigned to encode the interrupt level in CLICINT[n].PRIORITY

Eight88 bits = interrupt levels encoded in eight bits
CRNMBITS

Interrupt privilege mode.

Indicates how many bits represent privilege mode

ModeM0All interrupts are M-mode only

CLIC.CLICINFO

Address offset: 0x0004

CLIC information.

Bit number313029282726252423222120191817161514131211109876543210
IDCCCCCCBBBBBBBBAAAAAAAAAAAAA
Reset 0x00401FFF00000000010000000001111111111111
IDR/WFieldValue IDValueDescription
ARNUMINTERRUPTSMaximum number of interrupts supported.
BRVERSIONVersion
CRNUMTRIGGERNumber of maximum interrupt triggers supported

CLIC.CLICINT[n]

Address offset: 0x1000 + (n × 0x4)

Interrupt control register for IRQ number [n].

Bit number313029282726252423222120191817161514131211109876543210
IDHHHHHHHHGGFFEDDDDDDDCBBBBBBBA
Reset 0x3FC3000000111111110000110000000000000000
IDR/WFieldValue IDValueDescription
ARWIPInterrupt Pending bit.
NotPending0Interrupt not pending
Pending1Interrupt pending
BRREAD1Read as 0, write ignored.
CRWIEInterrupt enable bit.
Disabled0Interrupt disabled
Enabled1Interrupt enabled
DRREAD2Read as 0, write ignored.
ERSHVSelective Hardware Vectoring.
Vectored1Hardware vectored
FRTRIGTrigger type and polarity for each interrupt input.
EdgeTriggered1Interrupts are edge-triggered
GRMODEPrivilege mode.
MachineMode3Machine mode
HRWPRIORITYInterrupt priority level
PRIOLEVEL00x3FPriority level 0
PRIOLEVEL10x7FPriority level 1
PRIOLEVEL20xBFPriority level 2
PRIOLEVEL30xFFPriority level 3

Registers

Instances

InstanceDomainBase addressDescription
VPRCSRFLPRVPR CSR registers

Configuration

InstanceDomainConfiguration
VPRCSRFLPR

VEVIF indexes 16 through 19 maps onto DPPI channels 0 through 4

Use GPIO port P2

HARTNUM: 14

MCLICBASE: 0xF0000000

MULDIV: 2

HIBERNATE: 1

DBG: 1

Code patching (REMAP): 0

BUSWIDTH: 64

BKPT: 1

VPR can be retained.

CSR VIOPINS value: 0x0000FFFF

VEVIF tasks: 0..31

Mask of supported VEVIF tasks: 0xFFFFFFFF

VEVIF DPPI indices: 16..19

VEVIF events: 0..31

Bit-Manipulation extension: 1

CACHE available.

CACHEEXTRATAGBUF: 0

OUTMODE for shifting functionality available

INSTNUM field is not available withing CSR MIMPID

VPR does not support peripheral blocking access.

VPR does not support branch predecoding.

Register overview

RegisterOffsetDescription
MSTATUS0x300Machine Status
MISA0x301Machine ISA
MTVEC0x305Machine Trap-Vector
MTVT0x307Machine Trap Vector Table
MCOUNTINHIBIT0x320Machine Counter-Inhibit
MSCRATCH0x340Machine Scratch
MEPC0x341Machine Exception Program Counter
MCAUSE0x342Machine Cause
MTVAL0x343Machine Trap Value
MINTSTATUS0x346M-mode Interrupt Status
MINTTHRESH0x347M-mode Interrupt-level Threshold
MCLICBASE0x350Machine CLIC Base
TSELECT0x7A0Trigger Select
TDATA10x7A1Trigger Data 1
TDATA20x7A2Trigger Data 2
TDATA30x7A3Trigger Data 3
TINFO0x7A4Trigger Info
TCONTROL0x7A5Trigger Control
DCSR0x7B0Debug Control and Status
DPC0x7B1Debug PC
MCYCLE0xB00Machine Cycle Counter
MINSTRET0xB02Machine Instruction Counter
MCYCLEH0xB80Machine Cycle Counter (Upper part)
MINSTRETH0xB82Machine Instruction Counter (Upper part)
UCYCLE0xC00User Cycle Counter
UINSTRET0xC02User Instruction Counter
UCYCLEH0xC80User Cycle Counter (Upper part)
UINSTRETH0xC82User Instruction Counter (Upper part)
MVENDORID0xF11Machine Vendor ID
MARCHID0xF12Machine Architecture ID
MIMPID0xF13Machine Implementation ID
MHARTID0xF14Machine Hart ID
NORDIC.VPRNORDICCTRL0x7C0Nordic Core Control
NORDIC.VPRNORDICSLEEPCTRL0x7C1Nordic Sleep Control
NORDIC.VPRNORDICFEATURESDISABLE0x7C2
NORDIC.VIOPINS0x7C3VPR pins used for Real Time Peripherals VIO
NORDIC.EXTPARAMS0x7C4Reads values of external configuration parameters
NORDIC.CACHE.AXCACHE0x7C5Memory type encoding
NORDIC.CACHE.CTRL0x7C8Cache control
NORDIC.CACHE.CFG0x7C9Cache configuration
NORDIC.CACHE.DATATAGADDR0x7CACache tag base address
NORDIC.CACHE.DATABASEADDR0x7CBCache data base address
NORDIC.RTPERIPHCTRL0x7CCRT peripheral control
NORDIC.CNTMODE00x7D0CNT0 Mode
NORDIC.CNTMODE10x7D1CNT1 Mode
NORDIC.CNT0x7D232-bit Counter
NORDIC.CNTTOP0x7D3Counter Top
NORDIC.CNTADD0x7D4CNT Add
NORDIC.CNT00x7D516 bit Counter 0
NORDIC.CNTADD00x7D6CNT0 Add
NORDIC.CNT10x7D716-bit Counter 1
NORDIC.CNTADD10x7D8CNT1 Add
NORDIC.WAIT00x7DAWait 0
NORDIC.WAIT10x7DBWait 1
NORDIC.WAIT0x7DCWait
NORDIC.TASKS0x7E0DPPI Tasks
NORDIC.SUBSCRIBE0x7E1Enable Task Subscription
NORDIC.EVENTS0x7E2DPPI Events
NORDIC.PUBLISH0x7E3Enable Event Publication
NORDIC.INTEN0x7E4DPPI Event Interrupt Enable
NORDIC.EVENTSB0x7E5Buffered DPPI Events
NORDIC.EVENTSBS0x7E6EVENTSB Dirty Status
NORDIC.OUT0xBC0GPIO Output value. Real Time Peripherals VIO.
NORDIC.DIR0xBC1GPIO pin Direction. Real Time Peripherals VIO.
NORDIC.IN0xBC2GPIO Input. Real Time Peripherals VIO.
NORDIC.INMODE0xBC3Input Mode
NORDIC.OUTB0xBC4Buffered GPIO Output
NORDIC.DIRB0xBC5Buffered GPIO pin Direction
NORDIC.DIROUT0xBC6DIR and OUT concatenation
NORDIC.DIROUTB0xBC7Concatenation of DIRB and OUTB
NORDIC.OUTBRB0xBC8Byte reversed register OUTB
NORDIC.OUTBRW0xBC9Word reversed register OUTB
NORDIC.INBRB0xBCAByte reversed register INB
NORDIC.SHIFTCTRLB0xBCBBuffered IO shift control
NORDIC.SHIFTCNTIN0xBCDNumber of frames to be shifted from INB before new data is required
NORDIC.SHIFTCNTOUT0xBCENumber of frames to be shifted to OUTB before new data is required
NORDIC.SHIFTCNTB0xBCFBuffered SHIFTCNTOUT and SHIFTCNTIN register
NORDIC.OUTTGL0xBD0GPIO Output Toggle
NORDIC.DIRTGL0xBD1GPIO pin Direction Toggle
NORDIC.OUTBTGL0xBD2Buffered GPIO Output Toggle
NORDIC.DIRBTGL0xBD3Buffered GPIO pin Direction Toggle
NORDIC.DIROUTTGL0xBD4DIROUT Toggle
NORDIC.DIROUTBTGL0xBD5DIROUTB Toggle
NORDIC.OUTBS0xBD8Buffered GPIO Output Dirty Status
NORDIC.DIRBS0xBD9Buffered GPIO pin Direction Dirty Status
NORDIC.DIROUTBS0xBDACombination of DIRB and OUTB Dirty Status
NORDIC.OUTBD0xBE0Concatenation of Buffered GPIO Output and GPIO Output
NORDIC.OUTBDTGL0xBE1OUTBD Toggle
NORDIC.OUTBDS0xBE2OUTBD Dirty Status
NORDIC.OUTMODE0xBE3Serial output mode
NORDIC.OUTMODEB0xBE4Buffered OUTMODE register
NORDIC.INMODEB0xBE5Buffered INMODE register
NORDIC.INB0xBE6Buffered GPIO input

MSTATUS

Address offset: 0x300

Machine Status

Keeps track of and controls the hart current operating state. In VPR it only contains/controls information of machine privileged mode interrupts, see MIE and MPIE

Bit number313029282726252423222120191817161514131211109876543210
IDCCBA
Reset 0x0000180000000000000000000001100000000000
IDR/WFieldValue IDValueDescription
ARWMIEglobal interrupt enable for machine privilege mode
Disabled0
Enabled1
BRWMPIEExists to support nested traps. Value of the interrupt-enable bit active prior to the trap for machine privilege mode
Disabled0
Enabled1
CRMPPExists to support nested traps. Value of the privlege mode prior to the trap for machine privilege mode

MISA

Address offset: 0x301

Machine ISA

Reports the ISA supported by the hart

Bit number313029282726252423222120191817161514131211109876543210
IDHHGFEDCBA
Reset 0x4000101601000000000000000001000000010110
IDR/WFieldValue IDValueDescription
ARA

Atomic extension

Indicates presence of standard A extension

Disabled0
Enabled1
BRB

Bit-Manipulation extension

Indicates presence of standard B extension. Indicates BEXT parameter option

Disabled0
Enabled1
CRC

Compressed extension

Indicates presence of standard C extension

Disabled0
Enabled1
DRE

RV32E base ISA

Indicates presence of standard E extension

Disabled0
Enabled1
ERI

RV32I/64I/128I base ISA

Indicates presence of standard I extension

Disabled0
Enabled1
FRM

Integer Multiply/Divide extension

Indicates presence of standard M extension

Disabled0
Enabled1
GRN

User-level interrupts supported

Indicates presence of standard N extension

Disabled0
Enabled1
HRMXL

Machine XLEN

Encodes the native base integer ISA width. The MXL field may be writable in implementations that support multiple base ISA widths. The effective XLEN in M-mode, MXLEN, is given by the setting of MXL, or has a fixed value if misa is zero. The MXL field is always set to the widest supported ISA variant at reset

XLEN321XLEN is 32 bits
XLEN642XLEN is 64 bits
XLEN1283XLEN is 128 bits

MTVEC

Address offset: 0x305

Machine Trap-Vector

Holds trap vector configuration, consisting of a vector base address (BASE) and a vector mode (MODE)

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAA
Reset 0x0000000300000000000000000000000000000011
IDR/WFieldValue IDValueDescription
ARMODEMode
CLIC3Core Local Interrupt Controller (CLIC) interrupt handling mode
BRWBASE

Vector base address

The value in the BASE field must always be aligned on a 8-byte boundary

MTVT

Address offset: 0x307

Machine Trap Vector Table

Holds the base address of the trap vector table, aligned on a 64-byte or greater power-of-two boundary. The actual alignment can be determined by writing ones to the low-order bits then reading them back.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVALMachine Trap Vector Table base address value for CLIC vectored interrupts

MCOUNTINHIBIT

Address offset: 0x320

Machine Counter-Inhibit

Register that controls which of the hardware performance-monitoring counters increment.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000500000000000000000000000000000101
IDR/WFieldValue IDValueDescription
ARWCY
INCREMENT0x0MCYCLE increments as usual
INHIBIT0x1MCYCLE doesn’t increment
BRWIR
INCREMENT0x0MINSTRET increments as usual
INHIBIT0x1MINSTRET doesn’t increment

MSCRATCH

Address offset: 0x340

Machine Scratch

Register dedicated for use by machine mode. Typically, it is used to hold a pointer to a machine-mode hart-local context space and swapped with a user register upon entry to an M-mode trap handler.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVALMachine Scratch value

MEPC

Address offset: 0x341

Machine Exception Program Counter

When a trap is taken into M-mode, mepc is written with the virtual address of the instruction that was interrupted or that encountered the exception. Otherwise, mepc is never written by the implementation, though it may be explicitly written by software

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVALMachine Exception Program Counter value

MCAUSE

Address offset: 0x342

Machine Cause

When a trap is taken into M-mode, mcause is written with a code indicating the event that caused the trap. Otherwise, mcause is never written by the implementation, though it may be explicitly written by software.

Bit number313029282726252423222120191817161514131211109876543210
IDFEDDCBBBBBBBBAAAAAAAAAAAA
Reset 0x3000000000110000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEXCEPTIONCODE

Exception code

See RISC-V Instruction Set Manual Volume II: Privileged Architecture for details on the exception codes. Exception codes listed here only apply if the trap is not caused by an interrupt (Interrupt bitfield set to 0)

INSTADDRMISALIGN0x0Instruction Address Misaligned
INSTACCESSFAULT0x1Instruction Access Fault
ILLEGALINST0x2Illegal Instruction
BKPT0x3Breakpoint
LOADADDRMISALIGN0x4Load Address Misaligned
LOADACCESSFAULT0x5Load Access Fault
STOREADDRMISALIGN0x6Store/AMO Address Misaligned
STOREACCESSFAULT0x7Store/AMO Access Fault
ECALLMMODE0xBEnvironment Call M-Mode
MISALIGNSTACKING0x18Misaligned Stacking
BUSFAULTSTACKING0x19Bus Fault on Stacking
INTVECTORFAULT0x1AInterrupt Vector Fault
MISALIGNUNSTACKING0x1BMisaligned Unstacking
BUSFAULTUNSTACKING0x1CBus Fault on Unstacking
STORETIMEOUTFAULT0x1DStore Timeout Fault
LOADTIMEOUTFAULT0x1ELoad Timeout Fault
STACKINGEXCFAULT0x1FFault on Exception Stacking
BRWMPILPrevious interrupt level
CRWMPIEPrevious interrupt enable, same as MSTATUS.MPIE
DRMPPPrevious privilege mode, same as MSTATUS.MPP
ERWMINHV

In hardware vectoring

Set by hardware at start of hardware vectoring, cleared by hardware at end of successful hardware vectoring

FRWINTERRUPT

Interrupt bit

Set if the trap was caused by an interrupt

EXCEPTION0
INTERRUPT1

MTVAL

Address offset: 0x343

Machine Trap Value

When a trap is taken into M-mode, MTVAL is either set to zero or written with exception-specific information to assist software in handling the trap. In VPR this register is ignored by exceptions and set to zero permanently

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARVALMachine Trap Value

MINTSTATUS

Address offset: 0x346

M-mode Interrupt Status

Holds the active interrupt level for M-mode

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARMILM-Mode interrupt level

MINTTHRESH

Address offset: 0x347

M-mode Interrupt-level Threshold

Holds an 8-bit field for the threshold level of M-mode. Typical use is to implement critical sections. The current hart’s effective interrupt level would then be: effective_level = max(MINTSTATUS.MIL, MINTTHRESH.TH)

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAA
Reset 0x0000001F00000000000000000000000000011111
IDR/WFieldValue IDValueDescription
ARWTHM-Mode Interrupt-level Threshold
DISABLED0x0Threshold disabled
THRESHLEVEL00x3F

Threshold level 0

This enumerator is deprecated.

THRESHLEVEL10x7F

Threshold level 1

This enumerator is deprecated.

THRESHLEVEL20xBF

Threshold level 2

This enumerator is deprecated.

THRESHLEVEL30xFF

Threshold level 3

This enumerator is deprecated.

MCLICBASE

Address offset: 0x350

Machine CLIC Base

Provides the base address of CLIC memory mapped registers. Its value should be configured or set up at the platform level to indicate the starting address of CLIC memory mapped registers. Since the CLIC memory map must be aligned at a 4KiB boundary, the mclicbase CSR has its 12 least-significant bits hardwired to zero. It is used to inform software about the location of CLIC memory mappped registers. CLIC Base address is unique for every VPR instance and this register's reset value is set to it

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0xF000000011110000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARVALCLIC base address value

TSELECT

Address offset: 0x7A0

Trigger Select

This register determines which trigger is accessible through the other trigger registers. The set of accessible triggers must start at 0, and be contiguous

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVALTrigger Select value

TDATA1

Address offset: 0x7A1

Trigger Data 1

Bit number313029282726252423222120191817161514131211109876543210
IDCCCCBAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDATATrigger Specific Data
BRWDMODE

Debug Mode

This bit is only writable from Debug Mode

BOTH0Both Debug and M-mode can write the tdata registers at the selected tselect.
ONLYDEBUG1Only Debug Mode can write the tdata registers at the selected tselect. Writes from other modes are ignored.
CRWTYPEType
NOTRIGGER0x0There is no trigger at this tselect
MATCH0x2The trigger is an address match trigger. The remaining bits in this register act as described in mcontrol
REMAP0xFThis trigger is a remapping trigger. The remaining bits in this register behave as described in remapping functionality

TDATA2

Address offset: 0x7A2

Trigger Data 2

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDATATrigger Specific Data

TDATA3

Address offset: 0x7A3

Trigger Data 3

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDATATrigger Specific Data

TINFO

Address offset: 0x7A4

Trigger Info

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARINFO

Trigger Info value

One bit for each possible type enumerated in tdata1. Bit N corresponds to type N. If the bit is set, then that type is supported by the currently selected trigger. If the currently selected trigger doesn’t exist, this field contains 1. If type is not writable, this register may be unimplemented, in which case reading it causes an illegal instruction exception. In this case the debugger can read the only supported type from tdata1.

TCONTROL

Address offset: 0x7A5

Trigger Control

This optional register is one solution to a problem regarding triggers with action=0 firing in M-mode trap handlers

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMTE

Mode Trigger Enable

DONTMATCH0Triggers with action=0 do not match/fire while the hart is in M-mode
MATCH1Triggers do match/fire while the hart is in M-mode. When a trap into M-mode is taken, mte is set to 0. When mret is executed, mte is set to the value of mpte
BRWMPTE

Mode Previous Trigger Enable

When a trap into M-mode is taken, mpte is set to the value of mte

DCSR

Address offset: 0x7B0

Debug Control and Status

This register is only accesible from debug mode

Bit number313029282726252423222120191817161514131211109876543210
IDFFFFEDCCCBAA
Reset 0x4000000301000000000000000000000000000011
IDR/WFieldValue IDValueDescription
ARPRV

Privilege level

Contains the privilege level the hart was operating in when Debug Mode was entered. VPR only supports Machine Privilege Level.

MACHINE3
BRWSTEP

Step

When set and not in Debug Mode, the hart will only execute a single instruction and then enter Debug Mode. If the instruction does not complete due to an exception, the hart will immediately enter Debug Mode before executing the trap handler, with appropriate exception registers set. The debugger must not change the value of this bit while the hart is running

CRCAUSE

Debug Mode enter cause

When there are multiple reasons to enter Debug Mode in a single cycle, hardware should set cause to the cause with the highest priority. Values other than the following are reserved for future use

EBREAK1An ebreak instruction was executed. (priority 3)
TRIGGER2The Trigger Module caused a breakpoint exception. (priority 4, highest)
HALTREQ3The debugger requested entry to Debug Mode using haltreq. (priority 1)
STEP4The hart single stepped because step was set. (priority 0, lowest)
RESETHALTREQ5The hart halted directly out of reset due to resethaltreq. It is also acceptable to report 3 when this happens. (priority 2)
DRWSTEPIE

Step Interrupt Enable

The debugger must not change the value of this bit while the hart is running

Disabled0Interrupts are disabled during single stepping
Enabled1Interrupts are enabled during single stepping. Implementations may hard wire this bit to 0. In that case interrupt behavior can be emulated by the debugger.
ERWEBREAKMM-mode ebreak
SPEC0ebreak instructions in M-mode behave as described in the Privileged Spe
ENTERDBG1ebreak instructions in M-mode enter Debug Mode
FRXDEBUGVERExternal Debug version
STDDBG4External debug support exists as it is described in this document

DPC

Address offset: 0x7B1

Debug PC

Upon entry to debug mode, dpc is updated with the virtual address of the next instruction to be executed. When resuming, the hart’s PC is updated to the virtual address stored in dpc. A debugger may write dpc to change where the hart resumes

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVALDebug PC value

MCYCLE

Address offset: 0xB00

Machine Cycle Counter

Counts the number of clock cycles executed by the processor core on which the hart is running

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVALMachine Cycle Counter value

MINSTRET

Address offset: 0xB02

Machine Instruction Counter

Counts the number of instructions the hart has retired

In this context retired means a successfully executed instruction

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVALMachine Instruction Counter value

MCYCLEH

Address offset: 0xB80

Machine Cycle Counter (Upper part)

Counts the number of clock cycles executed by the processor core on which the hart is running

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVALMachine Cycle Counter value

MINSTRETH

Address offset: 0xB82

Machine Instruction Counter (Upper part)

Counts the number of instructions the hart has retired

In this context retired means a successfully executed instruction

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVALMachine Instruction Counter (Upper part) value

UCYCLE

Address offset: 0xC00

User Cycle Counter

Counts the number of clock cycles executed by the processor core on which the hart is running. This register is a read-only copy of MCYCLE

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARVALUser Cycle Counter value

UINSTRET

Address offset: 0xC02

User Instruction Counter

Counts the number of instructions the hart has retired. This register is a read-only copy of MINSTRET

In this context retired means a successfully executed instruction

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARVALUser Instruction Counter value

UCYCLEH

Address offset: 0xC80

User Cycle Counter (Upper part)

Counts the number of clock cycles executed by the processor core on which the hart is running. This register is a read-only copy of MCYCLEH

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARVALUser Cycle Counter value

UINSTRETH

Address offset: 0xC82

User Instruction Counter (Upper part)

Counts the number of instructions the hart has retired. This register is a read-only copy of MINSTRETH

In this context retired means a successfully executed instruction

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARVALUser Instruction Counter (Upper part) value

MVENDORID

Address offset: 0xF11

Machine Vendor ID

32-bit read-only register providing the JEDEC manufacturer ID of the provider of the core.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAA
Reset 0x0000014400000000000000000000000101000100
IDR/WFieldValue IDValueDescription
AROFFSETMVENDORID encodes the final byte in the Offset field, discarding the parity bit
BRBANKMVENDORID encodes the number of one-byte continuation codes in the Bank field

MARCHID

Address offset: 0xF12

Machine Architecture ID

32-bit read-only register encoding the base microarchitecture of the hart

Bit number313029282726252423222120191817161514131211109876543210
IDJIHHHGFFFFEDCBAA
Reset 0x8000006E10000000000000000000000001101110
IDR/WFieldValue IDValueDescription
ARMULDIVIndicates the MULDIV parameter option
BRHIBERNATEIndicates the POWEROFFSLEEP parameter option
CRDBGIndicates the DBG parameter option
DRREMAPIndicates the REMAP parameter option
ERBUSWIDTHIndicates the BUS_WIDTH parameter option
FRBKPTIndicates the BKPT parameter option
GRCACHEIndicates that the CACHE is present
HRCACHEEXTRATAGBUFIndicates the number of extra TAG buffers in CACHE
IRRETAINEDIndicates the RETAINED parameter option
JRIMPLEMIndicates a non-open implementation

MIMPID

Address offset: 0xF13

Machine Implementation ID

Bit number313029282726252423222120191817161514131211109876543210
IDCCCCCCCCBBBBBBBBAAAAAAAA
Reset 0x0001030000000000000000010000001100000000
IDR/WFieldValue IDValueDescription
ARPATCHREVIndicates the number of the patch revision
BRMINORREVIndicates the number of the minor revision
CRMAJORREVIndicates the number of the major revison

MHARTID

Address offset: 0xF14

Machine Hart ID

Contains the integer ID of the hardware thread running the code. Hart ID is unique for every VPR instance and this register's reset value is set to it

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000E00000000000000000000000000001110
IDR/WFieldValue IDValueDescription
ARHARTNUMMachine Hart ID value

NORDIC.VPRNORDICCTRL

Address offset: 0x7C0

Nordic Core Control

Bit number313029282726252423222120191817161514131211109876543210
IDEEEEEEEEEEEEEEEEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWENABLERTPERIPH

Control bit to enable Real-Time Peripherals

When this bit is cleared, it will override the APB read value of the INTEN register to 0.

Disabled0
Enabled1
BRWENABLEREMAPEnable remap feature
Disabled0
Enabled1
CRWCNTIRQENABLEEnables the generation of IRQ number COUNTER_IRQ_NUM
Disabled0x0
Enabled0x1
DRWVPRBUSPRI

Arbitration priority on bus

Setting high priority will give VPR maximum priority and can cause starvation for other bus masters trying to access the same memory. It should only be used in limited sections of code and care must be taken to avoid continuous memory accesses to ensure other bus masters can perform interleaved accesses.

LowPriority0x0Low priority for VPR RAM transactions on bus
HighPriority0x1High priority for VPR RAM transactions on bus
EWNORDICKEYUsed in order to protect the write to this register
Enabled0x507DWrite enabled

NORDIC.VPRNORDICSLEEPCTRL

Address offset: 0x7C1

Nordic Sleep Control

Bit number313029282726252423222120191817161514131211109876543210
IDCBAAAA
Reset 0x0000000200000000000000000000000000000010
IDR/WFieldValue IDValueDescription
ARWSLEEPSTATESleep State
WAIT0x0Sleep is not turning off the clock
RESET0x2Sleep state default reset value. Going to sleep with sleep state = RESET has the same effect as going to sleep with sleep state = WAIT
SLEEP0x5Sleep is turning the clock off
DEEPSLEEP0x7Sleep is turning the clock off and power is turned off
HIBERNATE0xFsleep is turning the clock off and all the registers are saved automatically, restart by a reset
BRWRETURNTOSLEEP

Return to Sleep

Forces the CPU to return to sleep when it returns in a non handler program

Disabled0x0
Enabled0x1
CRWSTACKONSLEEP

Stack on Sleep

Force CPU to stack the context before going to sleep : this is used in order to have a fast wake up

Disabled0x0
Enabled0x1

NORDIC.VPRNORDICFEATURESDISABLE

Address offset: 0x7C2

Bit number313029282726252423222120191817161514131211109876543210
IDCCCCCCCCCCCCCCCCBA
Reset 0x0000001000000000000000000000000000010000
IDR/WFieldValue IDValueDescription
ARWDISABLECLICROUNDROBIN

Disable CLIC Round Robin

Disable Round Robin arbitration in CLIC for interrupt requests

Enabled0
Disabled1
BRWUNRECOVRETURN

Unrecoverable Return

Force unrecoverable return from exception

Disabled0
Enabled1
CWNORDICKEYUsed in order to protect the write to this register
Enabled0x507DWrite enabled

NORDIC.VIOPINS

Address offset: 0x7C3

VPR pins used for Real Time Peripherals VIO

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000FFFF00000000000000001111111111111111
IDR/WFieldValue IDValueDescription
ARVALVPR pins used for Real Time Peripherals VIO

NORDIC.EXTPARAMS

Address offset: 0x7C4

Reads values of external configuration parameters

External configuration parameters are unique for every VPR instance and this register's reset value depends on them

Bit number313029282726252423222120191817161514131211109876543210
IDDCCCCBAA
Reset 0x0000000E00000000000000000000000000001110
IDR/WFieldValue IDValueDescription
ARMULDIVvalue of MULDIV
BRDBGvalue of DBG
CRBKPTvalue of BKPT
DRREMAPvalue of REMAP

NORDIC.CACHE.AXCACHE

Address offset: 0x7C5

Memory type encoding

AXI4 protocol memory type encoding

Bit number313029282726252423222120191817161514131211109876543210
IDCCCCBBBBAAAA
Reset 0x00000EEE00000000000000000000111011101110
IDR/WFieldValue IDValueDescription
ARWAWCACHEMemory type for data stores
DEVNONBUFF0x0Device Non-Bufferable
DEVBUFF0x1Device Bufferable
NNONCACHENONBUFF0x2Normal Non-cacheable Non-bufferable
NNONCACHEBUFF0x3Normal Non-cacheable Bufferable
WRITETHNALLOC0x6Write-through No-allocate
WRITETHRALLOC0x6Write-through Read-allocate
WRITETHWALLOC0xEWrite-through Write-allocate
WRITETHRWALLOC0xEWrite-through Read and Write-allocate
WRITEBACKNALLOC0x7Write-back No-allocate
WRITEBACKRALLOC0x7Write-back Read-allocate
WRITEBACKWALLOC0xFWrite-back Write-allocate
WRITEBACKRWALLOC0xFWrite-back Read and Write-allocate
BRWIARCACHEMemory type for instruction loads
DEVNONBUFF0x0Device Non-Bufferable
DEVBUFF0x1Device Bufferable
NNONCACHENONBUFF0x2Normal Non-cacheable Non-bufferable
NNONCACHEBUFF0x3Normal Non-cacheable Bufferable
WRITETHNALLOC0xAWrite-through No-allocate
WRITETHRALLOC0xEWrite-through Read-allocate
WRITETHWALLOC0xAWrite-through Write-allocate
WRITETHRWALLOC0xEWrite-through Read and Write-allocate
WRITEBACKNALLOC0xBWrite-back No-allocate
WRITEBACKRALLOC0xFWrite-back Read-allocate
WRITEBACKWALLOC0xBWrite-back Write-allocate
WRITEBACKRWALLOC0xFWrite-back Read and Write-allocate
CRWDARCACHEMemory type for data loads
DEVNONBUFF0x0Device Non-Bufferable
DEVBUFF0x1Device Bufferable
NNONCACHENONBUFF0x2Normal Non-cacheable Non-bufferable
NNONCACHEBUFF0x3Normal Non-cacheable Bufferable
WRITETHNALLOC0xAWrite-through No-allocate
WRITETHRALLOC0xEWrite-through Read-allocate
WRITETHWALLOC0xAWrite-through Write-allocate
WRITETHRWALLOC0xEWrite-through Read and Write-allocate
WRITEBACKNALLOC0xBWrite-back No-allocate
WRITEBACKRALLOC0xFWrite-back Read-allocate
WRITEBACKWALLOC0xBWrite-back Write-allocate
WRITEBACKRWALLOC0xFWrite-back Read and Write-allocate

NORDIC.CACHE.CTRL

Address offset: 0x7C8

Cache control

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWENABLEEnable cache
Disabled0Cache disabled
Enabled1Cache enabled
BRW
W1S
CACHECLR

Cache clear

Writing this bit writes the tag cache region to 0. This should be done before enabling the cache. The CPU stalls until the operation is complete. Interrupts must be disabled when performing the cache clear operation.

NoOperation0No Operation
Clear1Cache clear

NORDIC.CACHE.CFG

Address offset: 0x7C9

Cache configuration

Configures the cache region size and line size

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCACHESIZE0..15

Cache size is 2^CACHESIZE or (1 << CACHESIZE) KB, with a maximum size of 32KB (CACHESIZE = 5)

To prevent RAM corruption or undefined behavior this field should only be modified when the cache is disabled

BRWCACHELINESIZE

Cache line size

To prevent RAM corruption or undefined behavior this field should only be modified when the cache is disabled

CachelineSize32B0Cache line size is 32 bytes (4 data units)
CachelineSize64B1Cache line size is 64 bytes (8 data units)

NORDIC.CACHE.DATATAGADDR

Address offset: 0x7CA

Cache tag base address

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVAL0x0..0xFFFFFFFC

Cache tag base address value

Defines where the tag cache region starts. The tag base address must be aligned with the data cache region size. The lower 2 bits are write ignored / read as zero, so the value must be rounded to a power of 2.

NORDIC.CACHE.DATABASEADDR

Address offset: 0x7CB

Cache data base address

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVAL0x0..0xFFFFFFFC

Cache data base address value

Defines where the data cache region starts. The data base address must be aligned with the data cache region size. The lower 2 bits are write ignored / read as zero, so the value must be rounded to a power of 2.

NORDIC.RTPERIPHCTRL

Address offset: 0x7CC

RT peripheral control

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCLOCKPOLARITY

Clock polarity

This field is applicable only when OUTMODE.MODE = OutBBufToggleClk

Low0x0Clock polarity is low
High0x1Clock polarity is High
BRWSTOPCOUNTERS

Stop counters CNT0 and CNT1 on OUTB under-run, or on INB Overflow if OUTMODE2 and INMODE2

This feature is used for clock stretching during OUTB under-run

NoStop0Counters do not stop on OUTB under-run
Stop1

Counters stop on OUTB under-run

Resume the counters when OUTB is written

CRWINSELInput pin selection
SamePin0x0Sample on same OUT pin
SeparatePin0x1Sample on separate pin

NORDIC.CNTMODE0

Address offset: 0x7D0

CNT0 Mode

Real Time Peripherals VTIM

Bit number313029282726252423222120191817161514131211109876543210
IDAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCNTMODE0CNT0 Mode
STOP0x0CNT0 stops at 0
WRAP0x1When CNT0 reaches 0 it will continue counting from 0xFFFF
RELOAD0x2When CNT0 reaches 0 it will continue counting from the value in CNTTOP
TRIGCOMB0x3When CNT0 reaches 0 it is reloaded from CNTTOP and stops. Counting will restart when a VIO event happens

NORDIC.CNTMODE1

Address offset: 0x7D1

CNT1 Mode

Real Time Peripherals VTIM

Bit number313029282726252423222120191817161514131211109876543210
IDAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCNTMODE1CNT1 Mode
STOP0x0CNT1 stops at 0
WRAP0x1When CNT1 reaches 0 it will continue counting from 0xFFFF
RELOAD0x2When CNT1 reches 0 it will continue counting from the value in CNTTOP
TRIGCOMB0x3In combine mode mode CNT1 acts as an extension of CNT0 (16 most significant bits of the 32-bit CNT)

NORDIC.CNT

Address offset: 0x7D2

32-bit Counter

Addresses CNT0 and CNT1 in the same operation. Real Time Peripherals VTIM

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCNT0

16-bit Counter 0

This field shares a physical register with MCYCLEH (lower 16 bits)

BRWCNT1

16-bit Counter 1

This field shares a physical register with MCYCLEH (upper 16 bits)

NORDIC.CNTTOP

Address offset: 0x7D3

Counter Top

This register value is used when reload mode is active. Entire 32-bit value is used when CNT1 is in combined mode. Real Time Peripherals VTIM

Shares a physical register with MCYCLE.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCNT0RELOADReload value for CNT0
BRWCNT1RELOADReload value for CNT1

NORDIC.CNTADD

Address offset: 0x7D4

CNT Add

Adds a value to 32-bit counter CNT. Real Time Peripherals VTIM

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWVALValue added to CNT

NORDIC.CNT0

Address offset: 0x7D5

16 bit Counter 0

Real Time Peripherals VTIM

Shares a physical register with MCYCLEH (lower 16 bits).

Read-only when the counters are in COMBINE mode.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVALCNT0 value

NORDIC.CNTADD0

Address offset: 0x7D6

CNT0 Add

Adds a value to CNT0. Real Time Peripherals VTIM

Has no effect when the counters are in COMBINE mode.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWVALValue added to CNT0

NORDIC.CNT1

Address offset: 0x7D7

16-bit Counter 1

Real Time Peripherals VTIM

Shares a physical register with MCYCLEH (upper 16 bits).

Read-only when the counters are in COMBINE mode.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVALCNT1 value

NORDIC.CNTADD1

Address offset: 0x7D8

CNT1 Add

Adds a value to CNT1. Real Time Peripherals VTIM

Has no effect when the counters are in COMBINE mode.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWVALValue added to CNT1

NORDIC.WAIT0

Address offset: 0x7DA

Wait 0

Writing to this register will stall the CPU until CNT0 reaches 0

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWDATAValue to write to CNT0
BWWRITEDATA
WAIT0x0Wait until CNT0 reaches 0
WRITE0x1Write DATA to CNT0 and then wait until CNT0 reaches 0

NORDIC.WAIT1

Address offset: 0x7DB

Wait 1

Writing to this register will stall the CPU until CNT1 reaches 0

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWDATAValue to write to CNT1
BWWRITEDATA
WAIT0x0Wait until CNT1 reaches 0
WRITE0x1Write DATA to CNT1 and then wait until CNT1 reaches 0

NORDIC.WAIT

Address offset: 0x7DC

Wait

Writing any value to register will stall the CPU until CNT reaches 0 in TRIGCOMB mode

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWVAL

NORDIC.TASKS

Address offset: 0x7E0

DPPI Tasks

CSR view of TASKS_TRIGGER[31:0] APB registers. Real Time Peripherals VEVIF

Shares a physical register with IN (lower 16 bits).

Bit number313029282726252423222120191817161514131211109876543210
IDfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-fRWTASKS[i] (i=0..31)
Disabled0x0TASKS[i] diabled
Enabled0x1TASKS[i] enabled

NORDIC.SUBSCRIBE

Address offset: 0x7E1

Enable Task Subscription

CSR view of SUBSCRIBE_TRIGGER[31:0] APB registers (Enable bits). Real Time Peripherals VEVIF

Shares a physical register with DIRB and MINSTRETH (lower 16 bits).

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
RWSUBSCRIBE[i] (i=16..19)
Disabled0x0Subscribe disabled for TASK[i]
Enabled0x1Subscribe enabled for TASK[i]

NORDIC.EVENTS

Address offset: 0x7E2

DPPI Events

CSR view of EVENTS_TRIGGERED[31:0]APB registers. Real Time Peripherals VEVIF

Shares a physical register with MINSTRET (upper 16 bits) and OUT.

Bit number313029282726252423222120191817161514131211109876543210
IDfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-fRWEVENTS[i] (i=0..31)
Disabled0x0EVENTS[i] disabled
Enabled0x1EVENTS[i] enabled

NORDIC.PUBLISH

Address offset: 0x7E3

Enable Event Publication

CSR view of PUBLISH_TRIGGERED[31:0] APB registers (Enable bits). Real Time Peripherals VEVIF

Shares a physical register with DIR and MINSTRETH (upper 16 bits).

Bit number313029282726252423222120191817161514131211109876543210
IDDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
RWPUBLISH[i] (i=16..19)
Disabled0x0Publish disabled for EVENTS[i]
Enabled0x1Publish enabled for EVENTS[i]

NORDIC.INTEN

Address offset: 0x7E4

DPPI Event Interrupt Enable

CSR view of the INTEN APB register (also modified through INTENSET and INTENCLR). Every bit enables interrupt generation sourced by the corresponding event. Real Time Peripherals VEVIF

Shares a physical register with INMODE.

Bit number313029282726252423222120191817161514131211109876543210
IDfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-fRWINTEN[i] (i=0..31)
Disabled0x0Interrupt disabled for EVENTS[i]
Enabled0x1Interrupt enabled for EVENTS[i]

NORDIC.EVENTSB

Address offset: 0x7E5

Buffered DPPI Events

The value in this register is passed to EVENTS on a Counter0 event (write sets dirty status). Real Time Peripherals VEVIF

Shares a physical register with MINSTRET (lower 16 bits) and OUTB.

Bit number313029282726252423222120191817161514131211109876543210
IDfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-fWEVENTSB[i] (i=0..31)
Disabled0x0EVENTSB[i] disabled
Enabled0x1EVENTSB[i] enabled

NORDIC.EVENTSBS

Address offset: 0x7E6

EVENTSB Dirty Status

Reads EVENTSB dirty status. Writes EVENTSB (sets dirty status)

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWEVENTSBWrite to EVENTSB (if not dirty)
ARDIRTYBITRead EVENTSB Dirty status
CLEAN0x0Buffer is clean
DIRTY0x1Buffer is dirty

NORDIC.OUT

Address offset: 0xBC0

GPIO Output value. Real Time Peripherals VIO.

Shares a physical register with MINSTRET (upper 16 bits) and EVENTS (lower 16 bits).

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-PRWPIN[i] (i=0..15)
LOW0x0Pin driver is low
HIGH0x1Pin driver is high

NORDIC.DIR

Address offset: 0xBC1

GPIO pin Direction. Real Time Peripherals VIO.

Shares a physical register with MINSTRETH (upper 16 bits) and PUBLISH (lower 16 bits).

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-PRWPIN[i] (i=0..15)
INPUT0x0Pin is set as input
OUTPUT0x1Pin is set as output

NORDIC.IN

Address offset: 0xBC2

GPIO Input. Real Time Peripherals VIO.

Shares a physical register with TASKS (lower 16 bits).

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-PRPIN[i] (i=0..15)
LOW0x0Pin is Low
HIGH0x1Pin is High

NORDIC.INMODE

Address offset: 0xBC3

Input Mode

Sets the sampling mode for values read through IN. Real Time Peripherals VIO

Shares a physical register with INTEN (lower 16 bits).

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMODEInput Mode
CONTINUOUS0x0Continuous sampling (if CPU is not sleeping)
EVENT0x1Sampling on Counter1 event
SHIFT0x2Sampling and shifting on Counter1 event synchronized with OUT

NORDIC.OUTB

Address offset: 0xBC4

Buffered GPIO Output

Bits 15:0 in this register are passed to OUT on a Counter0 event (write sets dirty status). If external paramenter RT_SHIFT_PRESENT = 1, OUTB bit width is 32 and in addition to the described behavior, OUTB[31:16] is passed to OUTB[15:0] on a Counter0 event as well. Real Time Peripherals VIO

OUTB[15:0] shares a physical register with MINSTRET (lower 16 bits) and EVENTSB (lower 16 bits).

Bit number313029282726252423222120191817161514131211109876543210
IDfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-fRWPIN[i] (i=0..31)
LOW0x0Pin driver is low
HIGH0x1Pin driver is high

NORDIC.DIRB

Address offset: 0xBC5

Buffered GPIO pin Direction

The value in this register is passed to DIR on a Counter0 event (write sets dirty status). Real Time Peripherals VIO.

Shares a physical register with MINSTRETH (lower 16 bits) and SUBSCRIBE (lower 16 bits).

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-PRWPIN[i] (i=0..15)
INPUT0x0Pin is set as input
OUTPUT0x1Pin is set as output

NORDIC.DIROUT

Address offset: 0xBC6

DIR and OUT concatenation

Addresses DIR[15:0] and OUT[15:0] in the same operation. Real Time Peripherals VIO

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWOUT

GPIO Output

Shares a physical register with MINSTRET (upper 16 bits) and EVENTS (lower 16 bits)

BRWDIR

GPIO pin Direction

Shares a physical register with MINSTRETH (upper 16 bits) and PUBLISH (lower 16 bits)

NORDIC.DIROUTB

Address offset: 0xBC7

Concatenation of DIRB and OUTB

Addresses DIRB[15:0] and OUTB[15:0] in the same operation. The value in this register is passed to DIROUT on a Counter0 event (write sets dirty status of both buffers). Real Time Peripherals VIO

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWOUTB

Buffered GPIO Output

Shares a physical register with MINSTRET (lower 16 bits) and EVENTSB (lower 16 bits)

BRWDIRB

Buffered GPIO pin Direction

Shares a physical register with MINSTRETH (lower 16 bits) and SUBSCRIBE (lower 16 bits)

NORDIC.OUTBRB

Address offset: 0xBC8

Byte reversed register OUTB

This register is shadow to register OUTB and holds frames in reversed order for each byte of OUTB

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVAL0x0..0xFFFFFFFF

NORDIC.OUTBRW

Address offset: 0xBC9

Word reversed register OUTB

This register is shadow to register OUTB and holds frame reversed in the whole word of OUTB

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVAL0x0..0xFFFFFFFF

NORDIC.INBRB

Address offset: 0xBCA

Byte reversed register INB

This register is shadow to register INB and holds frame reversed in each byte of OUTB

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARVAL0x0..0xFFFFFFFF

NORDIC.SHIFTCTRLB

Address offset: 0xBCB

Buffered IO shift control

Bit number313029282726252423222120191817161514131211109876543210
IDCACABBBBBBBBBBBABABAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWSHIFTCNTB
AARWSHIFTCNTB.VALUE0..32Alias to SHIFTCNTB.VALUE register
BRWOUTMODEB
BARWOUTMODEB.MODEAlias to OUTMODEB.MODE register
NoShifting0x0No shifting
OutBBuf0x2Only OUTB used for buffering
OutBBufToggleClk0x4Only OUTB used for buffering, auto-toggle clock line
BBRWOUTMODEB.FRAMEWIDTH0..16Alias to OUTMODEB.FRAMEWIDTH register
CRWINMODEB
CARWINMODEB.MODEAlias to INMODEB.MODE register
CONTINUOUS0x0Continuous sampling (if CPU is not sleeping)
EVENT0x1Sampling on Counter1 event
SHIFT0x2Sampling and shifting on Counter1 event

NORDIC.SHIFTCNTIN

Address offset: 0xBCD

Number of frames to be shifted from INB before new data is required

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVALUE0..63Value

NORDIC.SHIFTCNTOUT

Address offset: 0xBCE

Number of frames to be shifted to OUTB before new data is required

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVALUE0..63Value

NORDIC.SHIFTCNTB

Address offset: 0xBCF

Buffered SHIFTCNTOUT and SHIFTCNTIN register

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVALUE0..63Value

NORDIC.OUTTGL

Address offset: 0xBD0

GPIO Output Toggle

Toggles bits in OUT. Real Time Peripherals VIO

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-PWPIN[i] (i=0..15)
UNCHANGED0x0Pin remains unchanged
TOGGLE0x1Pin is toggled

NORDIC.DIRTGL

Address offset: 0xBD1

GPIO pin Direction Toggle

Toggles bits in DIR. Real Time Peripherals VIO

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-PWPIN[i] (i=0..15)
UNCHANGED0x0Pin remains unchanged
TOGGLE0x1Pin is toggled

NORDIC.OUTBTGL

Address offset: 0xBD2

Buffered GPIO Output Toggle

Toggles bits in OUTB[15:0] (sets dirty status). Real Time Peripherals VIO

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-PWPIN[i] (i=0..15)
UNCHANGED0x0Pin remains unchanged
TOGGLE0x1Pin is toggled

NORDIC.DIRBTGL

Address offset: 0xBD3

Buffered GPIO pin Direction Toggle

Toggles bits in DIRB (sets dirty status). Real Time Peripherals VIO

Bit number313029282726252423222120191817161514131211109876543210
IDPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-PWPIN[i] (i=0..15)
UNCHANGED0x0Pin remains unchanged
TOGGLE0x1Pin is toggled

NORDIC.DIROUTTGL

Address offset: 0xBD4

DIROUT Toggle

Toggles bits in DIR[15:0] and OUT[15:0] in the same operation. Real Time Peripherals VIO

Bit number313029282726252423222120191817161514131211109876543210
IDfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-PWOUT[i] (i=0..15)
UNCHANGED0x0Pin remains unchanged
TOGGLE0x1Pin is toggled
Q-fWDIR[i] (i=0..15)
UNCHANGED0x0Pin remains unchanged
TOGGLE0x1Pin is toggled

NORDIC.DIROUTBTGL

Address offset: 0xBD5

DIROUTB Toggle

Toggles bits in DIRB[15:0] and OUTB[15:0] in the same operation (sets dirty status). Real Time Peripherals VIO

Bit number313029282726252423222120191817161514131211109876543210
IDfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-PWOUTB[i] (i=0..15)
UNCHANGED0x0Pin remains unchanged
TOGGLE0x1Pin is toggled
Q-fWDIRB[i] (i=0..15)
UNCHANGED0x0Pin remains unchanged
TOGGLE0x1Pin is toggled

NORDIC.OUTBS

Address offset: 0xBD8

Buffered GPIO Output Dirty Status

Reads OUTB dirty status. Writes OUTB[15:0] value (sets dirty status). Real Time Peripherals VIO

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWOUTBWrite to OUTB (if not dirty)
ARDIRTYBITRead Buffer Dirty status
CLEAN0x0Buffer is clean
DIRTY0x1Buffer is dirty

NORDIC.DIRBS

Address offset: 0xBD9

Buffered GPIO pin Direction Dirty Status

Reads DIRB dirty status. Writes DIRB value (sets dirty status). Real Time Peripherals VIO

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWDIRBWrite to DIRB (if not dirty)
ARDIRTYBITRead Buffer Dirty status
CLEAN0x0Buffer is clean
DIRTY0x1Buffer is dirty

NORDIC.DIROUTBS

Address offset: 0xBDA

Combination of DIRB and OUTB Dirty Status

Reads combination (OR) of DIRB and OUTB dirty status. Writes DIRB and OUTB[15:0] in the same operation (sets dirty status of both buffers). Real Time Peripherals VIO

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWDIROUTBWrite to DIROUTB (if not dirty)
ARDIRTYBITRead Combination (OR) of DIRB and OUTB Dirty status
CLEAN0x0Buffer is clean
DIRTY0x1Buffer is dirty

NORDIC.OUTBD

Address offset: 0xBE0

Concatenation of Buffered GPIO Output and GPIO Output

Addresses OUTB[15:0] and OUT in the same operation (sets OUTB dirty status). Real Time Peripherals VIO

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWOUT

GPIO Output

Shares a physical register with MINSTRET (upper 16 bits) and EVENTS (lower 16 bits)

BWOUTB

Buffered GPIO Output

Shares a physical register with MINSTRET (lower 16 bits) and EVENTSB (lower 16 bits).

NORDIC.OUTBDTGL

Address offset: 0xBE1

OUTBD Toggle

Toggles bits in OUTB[15:0] and OUT in the same operation (sets dirty status). Real Time Peripherals VIO

Bit number313029282726252423222120191817161514131211109876543210
IDfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-PWOUT[i] (i=0..15)
UNCHANGED0x0Pin remains unchanged
TOGGLE0x1Pin is toggled
Q-fWOUTB[i] (i=0..15)
UNCHANGED0x0Pin remains unchanged
TOGGLE0x1Pin is toggled

NORDIC.OUTBDS

Address offset: 0xBE2

OUTBD Dirty Status

Reads OUTBD Dirty status. Writes OUTBD value (sets dirty status). Real Time Peripherals VIO

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWOUTBDWrite to OUTBD register (if not dirty)
ARDIRTYBITRead OUTB and OUT parallel write Dirty status
CLEAN0x0Buffer is clean
DIRTY0x1Buffer is dirty

NORDIC.OUTMODE

Address offset: 0xBE3

Serial output mode

Bit number313029282726252423222120191817161514131211109876543210
IDCCCCCAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMODEMode
NoShifting0x0No shifting
OutBBuf0x2Only OUTB used for buffering
OutBBufToggleClk0x4Only OUTB used for buffering, auto-toggle clock line
ARWSHIFTMODE

Shift mode

This field is deprecated.

Disabled0x0Shift mode is disabled
Enabled0x1Shift mode is enabled
CRWFRAMEWIDTH0..16

Output frame width

MODE=0x1: BITS=2^FRAMEWIDTH. Legal FRAMEWIDTH values: 0, 1, 2, 3, 4

MODE=0x2: BITS=FRAMEWIDTH. Legal values: 1, 2, 3, 4, 5, 6, 7, 8, 16 (9-15 are not legal)

MODE=0x4: BITS=FRAMEWIDTH. Legal values: 1, 2, 3, 4, 5, 6, 7, 8

CRWSHIFSIZE

Shift size. Only applies if Shift mode is enabled

This field is deprecated.

SHIFT10x0Shift OUT by 1 bit
SHIFT20x1Shift OUT by 2 bits
SHIFT40x2Shift OUT by 4 bits
SHIFT80x3Shift OUT by 8 bits
SHIFT160x4Shift OUT by 16 bits

NORDIC.OUTMODEB

Address offset: 0xBE4

Buffered OUTMODE register

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMODEMode
NoShifting0x0No shifting
OutBBuf0x2Only OUTB used for buffering
OutBBufToggleClk0x4Only OUTB used for buffering, auto-toggle clock line
BRWFRAMEWIDTH0..16Frame width in bits

NORDIC.INMODEB

Address offset: 0xBE5

Buffered INMODE register

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMODEInput Mode
CONTINUOUS0x0Continuous sampling (if CPU is not sleeping)
EVENT0x1Sampling on Counter1 event
SHIFT0x2Sampling and shifting on Counter1 event

NORDIC.INB

Address offset: 0xBE6

Buffered GPIO input

GPIO Input. Real Time Peripherals VIO.

Bit number313029282726252423222120191817161514131211109876543210
IDfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A-fRPIN[i] (i=0..31)
LOW0x0Pin is Low
HIGH0x1Pin is High