Posts / Tag
#csr
2 posts
RISC-V CSR File Design: Permission Checks, Views and Counters Checked Against QEMU
Part 24 of the RISC-V series. We built the CSR file's permission check, views, WARL cleanup and counters as a cycle model and checked it against QEMU. Only 19 of 349 RV64 cells differed, all counters: QEMU read 1 higher right after a write.
RISC-V Privilege Modes and CSRs: M/S/U, Address Rules, WARL Fields on QEMU
Part 23 of the RISC-V series. We tested the M/S/U privilege modes, the CSR address rule ([11:10] read-only, [9:8] lowest privilege) and WARL/WLRL/WPRI fields on QEMU. The address rule predicted all 67 CSR cells, and illegal mtvec and satp values had the whole write ignored.

RISC-V