CSR Bit Fields

RISC-V hpmcounter7h CSR Register

Address 0xC87Privilege UserAccess RO / RV32 high-half / 32-bitUser counters and performance-monitoring CSRs

hpmcounter7h is a Zihpm user-level read-only CSR that exists only when XLEN=32 and reads hpmcounter7 bits 63:32. Zihpm depends on Zicsr; the number, width, and counted events of implemented counters are platform-specific.

Bit Overview
bit 3 = only bit 3; bits 12..11 = bits 12 down to 11
MSBLSB
Field Map

Understand hpmcounter7h By Bit Fields

0 key fields

What To Check First When Reading This CSR

  • - hpmcounter7h 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 HPM7 bits in both mcounteren and scounteren; when V=1, hcounteren access control also applies.

Risk Checks Before Writing

  • - hpmcounter7h is read-only; writing a read-only CSR raises an illegal-instruction exception.

Put It Back Into A Real Flow

1

Read hpmcounter7h only on RV32.

2

Use it with the low 32-bit read of hpmcounter7.

3

Interpret the result using the platform-defined counter implementation, event configuration, and access controls.