Skip to content

Commit ad4d26d

Browse files
committed
Update RV32_CSR.py to match Atlas
1 parent a3588c4 commit ad4d26d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sparta/scripts/RV32_CSR.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"hasresethaltreq" : { "high_bit" : 5, "low_bit" : 5, "readonly" : True, "desc" : "If set, this Debug Module supports halt-on-reset" },
4444
"confstrptrvalid" : { "high_bit" : 4, "low_bit" : 4, "readonly" : True, "desc" : "If set, confstrptr0-confstrptr3 hold the address of the configuration string" },
4545
"version" : { "high_bit" : 3, "low_bit" : 0, "readonly" : True, "desc" : "Version of Debug Module spec supported" },
46-
}, 143],
46+
}, 0],
4747

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

0 commit comments

Comments
 (0)