← Home

stimecmp

Supervisor timer compare

Address: 0x14D (333) · Privilege: S · Length: 64 · Writable · Defined by: Sstc

Supervisor timer compare register.

When `menvcfg.STCE` is set, `stimecmp` is operational and provides supervisor mode with a CSR-based timer interrupt facility.

Fields

63:5655:4847:4039:3231:2423:1615:87:0
TIME
BitsFieldAliasDescriptionTypeReset
[63:0]TIMETime compare value for supervisor timer interrupts.RWUNDEFINED_LEGAL

Software read

if (mode() != PrivilegeMode::M) {
  if (CSR[menvcfg].STCE == 1'b0 || CSR[mcounteren].TM == 1'b0) {
    raise(ExceptionCode::IllegalInstruction, mode(), $encoding);
  }
}
return CSR[stimecmp].TIME;

Version af3eaf9+cheriot.f635218

Data from the RISC-V Unified Database, copyright RISC-V International and contributors.

CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.

This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.