Supervisor Control Transfer Records Depth
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.
| 31:24 | 23:16 | 15:8 | 7:0 | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| — | DEPTH | ||||||||||||||||||||||||||||||
| Bits | Field | Alias | Description | Type | Reset |
|---|---|---|---|---|---|
| [2:0] | DEPTH | Selects 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.