CSR Bit Fields

RISC-V tdata2 CSR Register

Address 0x7A2Privilege Machine/Debug modeAccess RW / XLENDebug trigger CSRs

tdata2 is an optional XLEN-bit trigger-data CSR that provides trigger-specific data for the trigger selected by tselect.

Field Map

Understand tdata2 By Bit Fields

1 key fields
XLEN-1:0

DATA

WARL

Trigger-specific data for the selected trigger; it exists only when an implemented trigger type uses this register. When the trigger is disabled, values supported by any type supported by that trigger may be written.

DATA (bits XLEN-1:0) — Trigger-specific data for the selected trigger; it exists only when an implemented trigger type uses this register. When the trigger is disabled, values supported by any type supported by that trigger may be written.

What This Field Controls

  • - Trigger-specific data for the selected trigger; it exists only when an implemented trigger type uses this register. When the trigger is disabled, values supported by any type supported by that trigger may be written.

Common Values

This field is better understood together with surrounding context than as a fixed memorized enumeration.

Open Official Manual
Official Basis & Search Notes

tdata2 holds trigger-specific data for the current selected trigger.

It exists only when an implemented trigger type uses it.
Writes are sign-extended when XLEN is less than DXLEN.

What To Check First When Reading This CSR

  • - The register exists only when an implemented trigger type uses it; access to an unimplemented Trigger Module register raises an illegal-instruction exception.
  • - When XLEN is less than DXLEN, writes are sign-extended.

Risk Checks Before Writing

  • - All tdata registers follow write-any-read-legal semantics; read back after writing to confirm the configuration.
  • - When configuring or restoring a trigger, write 0 to tdata1 first, then tdata2/tdata3, then the target tdata1.

Put It Back Into A Real Flow

1

Select tselect.

2

Write 0 to tdata1 to disable the trigger.

3

Write and read back tdata2, then write the target tdata1.