RISC-V ISA Explorer · System

Zihpm: Perf Counters

Ratified 2023-03 · version 2.0.0

Up to 29 programmable event counters, hpmcounter3 through hpmcounter31, for profiling and performance tuning.

Typical use: Hardware performance monitors

Specification

Open Zihpm in the explorer

Dependencies

Requires

Instructions

No instruction encodings are listed for this extension in the catalogue.

Control and status registers (58)

NameAddressModeDescription
hpmcounter100xc0aUUnprivileged Hardware Performance Counter 10
hpmcounter10h0xc8aUUnprivileged Hardware Performance Counter 10, high half
hpmcounter110xc0bUUnprivileged Hardware Performance Counter 11
hpmcounter11h0xc8bUUnprivileged Hardware Performance Counter 11, high half
hpmcounter120xc0cUUnprivileged Hardware Performance Counter 12
hpmcounter12h0xc8cUUnprivileged Hardware Performance Counter 12, high half
hpmcounter130xc0dUUnprivileged Hardware Performance Counter 13
hpmcounter13h0xc8dUUnprivileged Hardware Performance Counter 13, high half
hpmcounter140xc0eUUnprivileged Hardware Performance Counter 14
hpmcounter14h0xc8eUUnprivileged Hardware Performance Counter 14, high half
hpmcounter150xc0fUUnprivileged Hardware Performance Counter 15
hpmcounter15h0xc8fUUnprivileged Hardware Performance Counter 15, high half
hpmcounter160xc10UUnprivileged Hardware Performance Counter 16
hpmcounter16h0xc90UUnprivileged Hardware Performance Counter 16, high half
hpmcounter170xc11UUnprivileged Hardware Performance Counter 17
hpmcounter17h0xc91UUnprivileged Hardware Performance Counter 17, high half
hpmcounter180xc12UUnprivileged Hardware Performance Counter 18
hpmcounter18h0xc92UUnprivileged Hardware Performance Counter 18, high half
hpmcounter190xc13UUnprivileged Hardware Performance Counter 19
hpmcounter19h0xc93UUnprivileged Hardware Performance Counter 19, high half
hpmcounter200xc14UUnprivileged Hardware Performance Counter 20
hpmcounter20h0xc94UUnprivileged Hardware Performance Counter 20, high half
hpmcounter210xc15UUnprivileged Hardware Performance Counter 21
hpmcounter21h0xc95UUnprivileged Hardware Performance Counter 21, high half
hpmcounter220xc16UUnprivileged Hardware Performance Counter 22
hpmcounter22h0xc96UUnprivileged Hardware Performance Counter 22, high half
hpmcounter230xc17UUnprivileged Hardware Performance Counter 23
hpmcounter23h0xc97UUnprivileged Hardware Performance Counter 23, high half
hpmcounter240xc18UUnprivileged Hardware Performance Counter 24
hpmcounter24h0xc98UUnprivileged Hardware Performance Counter 24, high half
hpmcounter250xc19UUnprivileged Hardware Performance Counter 25
hpmcounter25h0xc99UUnprivileged Hardware Performance Counter 25, high half
hpmcounter260xc1aUUnprivileged Hardware Performance Counter 26
hpmcounter26h0xc9aUUnprivileged Hardware Performance Counter 26, high half
hpmcounter270xc1bUUnprivileged Hardware Performance Counter 27
hpmcounter27h0xc9bUUnprivileged Hardware Performance Counter 27, high half
hpmcounter280xc1cUUnprivileged Hardware Performance Counter 28
hpmcounter28h0xc9cUUnprivileged Hardware Performance Counter 28, high half
hpmcounter290xc1dUUnprivileged Hardware Performance Counter 29
hpmcounter29h0xc9dUUnprivileged Hardware Performance Counter 29, high half
hpmcounter30xc03UUnprivileged Hardware Performance Counter 3
hpmcounter300xc1eUUnprivileged Hardware Performance Counter 30
hpmcounter30h0xc9eUUnprivileged Hardware Performance Counter 30, high half
hpmcounter310xc1fUUnprivileged Hardware Performance Counter 31
hpmcounter31h0xc9fUUnprivileged Hardware Performance Counter 31, high half
hpmcounter3h0xc83UUnprivileged Hardware Performance Counter 3, high half
hpmcounter40xc04UUnprivileged Hardware Performance Counter 4
hpmcounter4h0xc84UUnprivileged Hardware Performance Counter 4, high half
hpmcounter50xc05UUnprivileged Hardware Performance Counter 5
hpmcounter5h0xc85UUnprivileged Hardware Performance Counter 5, high half
hpmcounter60xc06UUnprivileged Hardware Performance Counter 6
hpmcounter6h0xc86UUnprivileged Hardware Performance Counter 6, high half
hpmcounter70xc07UUnprivileged Hardware Performance Counter 7
hpmcounter7h0xc87UUnprivileged Hardware Performance Counter 7, high half
hpmcounter80xc08UUnprivileged Hardware Performance Counter 8
hpmcounter8h0xc88UUnprivileged Hardware Performance Counter 8, high half
hpmcounter90xc09UUnprivileged Hardware Performance Counter 9
hpmcounter9h0xc89UUnprivileged Hardware Performance Counter 9, high half