Webcentive RISC-V Reference

Zicntr instructions

Base Counters and Timers

The CYCLE, TIME, and INSTRET counters, which have dedicated functions (cycle count, real-time clock, and instructions retired, respectively).

Extension description from riscv-unified-db, reformatted.

Specification chapter: The RISC-V Instruction Set Manual, src/unpriv/zicntr.adoc.

Instructions (6)

MnemonicName (riscv-unified-db)XLEN
rdcycle (pseudo-op)RV32 and RV64
rdcycleh (pseudo-op)RV32 only
rdinstret (pseudo-op)RV32 and RV64
rdinstreth (pseudo-op)RV32 only
rdtime (pseudo-op)RV32 and RV64
rdtimeh (pseudo-op)RV32 only