← Home

vstimecmp

Virtual supervisor timer compare

Address: 0x24D (589) · Privilege: VS · Length: 64 · Writable · Defined by: H and Sstc · Virtual address: 333

Virtual supervisor timer compare register.

When `menvcfg.STCE` and `henvcfg.STCE` are set, `vstimecmp` is operational and provides VS-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 virtual supervisor timer interrupts.RWUNDEFINED_LEGAL

Software read

if (CSR[menvcfg].STCE == 1'b0 || CSR[mcounteren].TM == 1'b0) {
  raise(ExceptionCode::IllegalInstruction, mode(), $encoding);
} else if (CSR[henvcfg].STCE == 1'b0 || CSR[hcounteren].TM == 1'b0) {
  raise(ExceptionCode::VirtualInstruction, mode(), $encoding);
}
return CSR[vstimecmp].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.