Webcentive RISC-V Reference

time

Timer for rdtime instruction

Address
0xC01
Group
Unprivileged and user-level CSRs
Privilege
URO (privileged spec CSR listing, Unprivileged Counter/Timers)
Access
read-only; lowest privilege U (user/unprivileged)
Address range
Standard read-only
Name in riscv-unified-db
Timer for RDTIME Instruction

Privileged spec: Timer for rdtime instruction

Description

This CSR does not exist, and access will cause an IllegalInstruction exception.

Shadow of the memory-mapped M-mode CSR mtime.

Privilege mode access is controlled with mcounteren.TM, scounteren.TM, and hcounteren.TM as follows:

mcounteren.TMscounteren.TMscounteren.TM
time behavior
S-modeU-modeVS-modeVU-mode
0--Illegal InstructionIllegal InstructionIllegal InstructionIllegal Instruction
100read-onlyIllegal InstructionIllegal InstructionIllegal Instruction
110read-onlyread-onlyIllegal InstructionIllegal Instruction
101read-onlyIllegal Instructionread-onlyIllegal Instruction
111read-onlyread-onlyread-onlyread-only

From riscv-unified-db, reformatted.

Fields

FieldBitsTypeDescription
COUNT63-0RO-H

Reports the current wall-clock time from the timer device.

Alias of the mtime memory-mapped CSR.

Fields from riscv-unified-db; field types computed by IDL functions there are not shown.

Specification and related pages