Skip to content

Commit

Permalink
Update RV32_CSR.py to match Atlas (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
colby-nyce authored Sep 26, 2024
1 parent a3588c4 commit d872230
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sparta/scripts/RV32_CSR.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"hasresethaltreq" : { "high_bit" : 5, "low_bit" : 5, "readonly" : True, "desc" : "If set, this Debug Module supports halt-on-reset" },
"confstrptrvalid" : { "high_bit" : 4, "low_bit" : 4, "readonly" : True, "desc" : "If set, confstrptr0-confstrptr3 hold the address of the configuration string" },
"version" : { "high_bit" : 3, "low_bit" : 0, "readonly" : True, "desc" : "Version of Debug Module spec supported" },
}, 143],
}, 0],

# User Trap Setup
0x040: ["uscratch", "Scratch register for user trap handlers.", {}, 0],
Expand Down Expand Up @@ -212,7 +212,7 @@
"Bank" : { "high_bit" : 31, "low_bit" : 7, "readonly" : False, "desc" : "The number of one-byte continuation codes" },
"Offset" : { "high_bit" : 6, "low_bit" : 0, "readonly" : True, "desc" : "Encodes the final byte" },
}, 0],
0xf12: ["marchid", "Architecture ID.", {}, 5],
0xf12: ["marchid", "Architecture ID.", {}, 0],
0xf13: ["mimpid", "Implementation ID.", {}, 0],
0xf14: ["mhartid", "Hardware thread ID.", {}, 0],
0xf15: ["mconfigptr", "Pointer to configuration data structure", {}, 0],
Expand Down Expand Up @@ -271,7 +271,7 @@
"X" : { 'high_bit' : 23, 'low_bit' : 23, 'readonly' : True, "desc" : "Non-standard extensions" },
"Y" : { 'high_bit' : 24, 'low_bit' : 24, 'readonly' : True, "desc" : "Reserved" },
"Z" : { 'high_bit' : 25, 'low_bit' : 25, 'readonly' : True, "desc" : "Reserved" },
}, 1075056941],
}, 0],
0x302: ["medeleg", "Machine exception delegation register.", {
"WPRI" : { "high_bit" : 31, "low_bit" : 24, "readonly" : True, "desc" : "reserved" },
"MECALL" : { "high_bit" : 11, "low_bit" : 11, "readonly" : True, "desc" : "Machine-mode environment call" },
Expand Down

0 comments on commit d872230

Please sign in to comment.