← Home

sctrdepth

Supervisor Control Transfer Records Depth

Address: 0x15F (351) · Privilege: S · Length: 32 · Writable · Defined by: Smctr

The `sctrdepth` register is a 32-bit read/write register used to select the number of records that can be held in the CTR buffer.

Fields

31:2423:1615:87:0
—DEPTH
BitsFieldAliasDescriptionTypeReset
[2:0]DEPTHSelects the depth of the CTR buffer.
return ($array_size(SCTRDEPTH_DEPTH_LEGAL_VALUES) == 1) ? CsrFieldType::RO : CsrFieldType::RW;
if ($array_size(SCTRDEPTH_DEPTH_LEGAL_VALUES) == 1) {
  if (SCTRDEPTH_DEPTH_LEGAL_VALUES[0] == 16) { return 0; }
  else if (SCTRDEPTH_DEPTH_LEGAL_VALUES[0] == 32) { return 1; }
  else if (SCTRDEPTH_DEPTH_LEGAL_VALUES[0] == 64) { return 2; }
  else if (SCTRDEPTH_DEPTH_LEGAL_VALUES[0] == 128) { return 3; }
  else if (SCTRDEPTH_DEPTH_LEGAL_VALUES[0] == 256) { return 4; }
  else { return UNDEFINED_LEGAL; }
} else {
  return UNDEFINED_LEGAL;
}

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.