CSR Bit Fields
RISC-V hpmcounter16h CSR Register
Address 0xC90Privilege UserAccess RO / RV32 high-half / 32-bitUser counters and performance-monitoring CSRs
hpmcounter16h is a Zihpm user-level read-only CSR that exists only when XLEN=32 and reads hpmcounter16 bits 63:32. Zihpm depends on Zicsr; the number, width, and counted events of implemented counters are platform-specific.
bit 3 = only bit 3; bits 12..11 = bits 12 down to 11
MSBLSB
Field Map
Understand hpmcounter16h By Bit Fields
0 key fields
What To Check First When Reading This CSR
- - hpmcounter16h exists only when XLEN=32; accessing a high-half CSR when XLEN>32 raises an illegal-instruction exception.
- - Zihpm provides up to 29 additional performance counters; the number, width, and events of implemented counters are platform-specific. An unimplemented counter access may raise an illegal-instruction exception or return a constant value.
- - On privileged implementations, U-mode reads require the HPM16 bits in both mcounteren and scounteren; when V=1, hcounteren access control also applies.
Risk Checks Before Writing
- - hpmcounter16h is read-only; writing a read-only CSR raises an illegal-instruction exception.
Put It Back Into A Real Flow
1
Read hpmcounter16h only on RV32.
2
Use it with the low 32-bit read of hpmcounter16.
3
Interpret the result using the platform-defined counter implementation, event configuration, and access controls.