Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update RV32_CSR.py to match Atlas #529

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading