ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

tselect

T1 riscv register register
Trigger Select
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRISC-V Privileged (Sdtrig)
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
PrivilegeM
ExtensionsSdtrig

Summary

This register determines which trigger is accessible through the other Trigger Module registers.

Syntax / Encoding

CSR 0x7a0 (M-mode, RW)

Bitfields (1)

BitsFieldDescription
63:0INDEXIndex value [RV32: 31:0, RV64: 63:0]

Reference Notes

This register determines which trigger is accessible through the other Trigger Module registers.

It is optional if no triggers are implemented. The set of accessible triggers must start at 0,
and be contiguous. This register is WARL. Writes of values greater than or equal to the number of
supported triggers may result in a different value in this register than what was written or may
point to a trigger where type=0.

To verify that what they wrote is a valid index, debuggers can
read back the value and check that tselect holds what they wrote and read tdata1 to see that type
is non-zero. Since triggers can be used both by Debug Mode and M-mode, the external debugger must
restore this register if it modifies it.