Nios® V Processor Reference Manual

ID 683632
Date 1/27/2025
Public
Document Table of Contents

4.3.11.5.2. Type of Address/Data Match Triggers

Base on the bit field setting in mcontrol register, Nios® V processor can implement different trigger types after the selected trigger matches the tdata2 register.
You can configure the hardware triggers to fire (through mcontrol register), when matches:
  • Instruction address
  • Instruction opcode
  • Store address
  • Store data
  • Load address
  • Load data
Table 127.  Address or Data Match Trigger Type
Trigger mcontrol bit fields
select execute store load
Instruction Address 0 1 0 0
Instruction Opcode 1 1 0 0
Store Address 0 0 1 0
Store Data 1 0 1 0
Load Address 0 0 0 1
Load Data 1 0 0 1
Based on the selected trigger, the trigger firing time and the behaviour of the mepc register can varies.
Table 128.   Nios® V Processor Triggers Condition and Firing Time
Triggers Condition Firing Time Exception Program Counter
Instruction Address Trigger Program Counter matches tdata2 Before executing the instruction The processor sets the Machine Exception Program Counter (mepc) to the instruction address (PC).
Instruction Opcode Trigger Instruction opcode matches tdata2 Before executing the instruction
Store Address Trigger Store address matches tdata2 After executing the store instruction The processor sets the mepc to the next instruction address (PC + 4).
Store Data Trigger Store data matches tdata2 After executing the store instruction
Load Address Trigger Load address matches tdata2 After executing the load instruction
Load Data Trigger Load data matches tdata2 After executing the load instruction