mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-23 21:14:37 +00:00
4d8eafd27d
Setting AdrMode to 2 or 3 for pmpadrdecs[0-4] writing values to pmpcfg0 to change AdrMode to 2 or 3 Also exclusion for pmpadrdecs[0] coverage case for PAgePMPAdrIn being hardwired to 1 in pmpadrdec.sv
22 lines
469 B
ArmAsm
22 lines
469 B
ArmAsm
// pmpadrdecs
|
|
// Liam Chalk, lchalk@hmc.edu, 4/27/2023
|
|
// Setting AdrMode to 2 or 3 for pmpadrdecs[0-4]
|
|
|
|
#include "WALLY-init-lib.h"
|
|
main:
|
|
|
|
# Writing values to pmpcfg0 to change AdrMode to 2 or 3
|
|
# pmpadrdec[0]
|
|
li t0, 0x0000000010
|
|
csrw pmpcfg0, t0
|
|
# pmpadrdec[1]
|
|
li t0, 0x0000001800
|
|
csrw pmpcfg0, t0
|
|
# pmpadrdec[2]
|
|
li t0, 0x0000180000
|
|
csrw pmpcfg0, t0
|
|
# pmpadrdec[4]
|
|
li t0, 0x1000000000
|
|
csrw pmpcfg0, t0
|
|
|
|
j done |