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

dscratch1

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

Summary

Optional scratch register that can be used by implementations that need it. A debugger must not write to this register unless hartinfo explicitly mentions it (the Debug Module may use this register internally).

Syntax / Encoding

CSR 0x7b3 (D-mode, RW)

Bitfields (1)

BitsFieldDescription
63:0VALUEScratch field to hold a value used by debug routines. [RV32: 31:0, RV64: 63:0]