1
1
= Instruction Appendix
2
2
:doctype: book
3
- :wavedrom: /home/uniqueusman /riscv-unified-db/node_modules/.bin/wavedrom-cli
3
+ :wavedrom: /workspace /riscv-unified-db/node_modules/.bin/wavedrom-cli
4
4
// Now the document header is complete and the wavedrom attribute is active.
5
5
6
6
@@ -6155,13 +6155,13 @@ Atomic Read and Clear Bits in CSR with Immediate
6155
6155
Encoding::
6156
6156
[wavedrom, ,svg,subs='attributes',width="100%"]
6157
6157
....
6158
- {"reg":[{"bits":7,"name": 0x73,"type":2},{"bits":5,"name": "xd","type":4},{"bits":3,"name": 0x7,"type":2},{"bits":5,"name": "uimm ","type":4},{"bits":12,"name": "csr","type":4}]}
6158
+ {"reg":[{"bits":7,"name": 0x73,"type":2},{"bits":5,"name": "xd","type":4},{"bits":3,"name": 0x7,"type":2},{"bits":5,"name": "imm ","type":4},{"bits":12,"name": "csr","type":4}]}
6159
6159
....
6160
6160
6161
6161
Description::
6162
6162
The CSRRCI variant is similar to CSRRC, except this updates the CSR using an XLEN-bit value obtained
6163
- by zero-extending a 5-bit unsigned immediate (uimm [4:0]) field encoded in the `xs1` field instead of a
6164
- value from an integer register. For CSRRCI, if the `uimm [4:0]` field is zero, then this instruction
6163
+ by zero-extending a 5-bit unsigned immediate (imm [4:0]) field encoded in the `xs1` field instead of a
6164
+ value from an integer register. For CSRRCI, if the `imm [4:0]` field is zero, then this instruction
6165
6165
will not write to the CSR, and shall not cause any of the side effects that might otherwise occur on
6166
6166
a CSR write, nor raise illegal-instruction exceptions on accesses to read-only CSRs. The CSRRCI will
6167
6167
always read the CSR and cause any read side effects regardless of `xd` and `xs1` fields.
@@ -6172,7 +6172,7 @@ Decode Variables::
6172
6172
|===
6173
6173
|Variable Name |Location
6174
6174
|csr |$encoding[31:20]
6175
- |uimm |$encoding[19:15]
6175
+ |imm |$encoding[19:15]
6176
6176
|xd |$encoding[11:7]
6177
6177
|===
6178
6178
@@ -6237,13 +6237,13 @@ Atomic Read and Set Bits in CSR with Immediate
6237
6237
Encoding::
6238
6238
[wavedrom, ,svg,subs='attributes',width="100%"]
6239
6239
....
6240
- {"reg":[{"bits":7,"name": 0x73,"type":2},{"bits":5,"name": "xd","type":4},{"bits":3,"name": 0x6,"type":2},{"bits":5,"name": "uimm ","type":4},{"bits":12,"name": "csr","type":4}]}
6240
+ {"reg":[{"bits":7,"name": 0x73,"type":2},{"bits":5,"name": "xd","type":4},{"bits":3,"name": 0x6,"type":2},{"bits":5,"name": "imm ","type":4},{"bits":12,"name": "csr","type":4}]}
6241
6241
....
6242
6242
6243
6243
Description::
6244
6244
The CSRRSI variant is similar to CSRRS, except this updates the CSR using an XLEN-bit value obtained
6245
- by zero-extending a 5-bit unsigned immediate (uimm [4:0]) field encoded in the `xs1` field instead of a
6246
- value from an integer register. For CSRRSI, if the `uimm [4:0]` field is zero, then this instruction
6245
+ by zero-extending a 5-bit unsigned immediate (imm [4:0]) field encoded in the `xs1` field instead of a
6246
+ value from an integer register. For CSRRSI, if the `imm [4:0]` field is zero, then this instruction
6247
6247
will not write to the CSR, and shall not cause any of the side effects that might otherwise occur on
6248
6248
a CSR write, nor raise illegal-instruction exceptions on accesses to read-only CSRs. The CSRRSI will
6249
6249
always read the CSR and cause any read side effects regardless of `xd` and `xs1` fields.
@@ -6254,7 +6254,7 @@ Decode Variables::
6254
6254
|===
6255
6255
|Variable Name |Location
6256
6256
|csr |$encoding[31:20]
6257
- |uimm |$encoding[19:15]
6257
+ |imm |$encoding[19:15]
6258
6258
|xd |$encoding[11:7]
6259
6259
|===
6260
6260
@@ -19941,7 +19941,7 @@ No synopsis available
19941
19941
Encoding::
19942
19942
[wavedrom, ,svg,subs='attributes',width="100%"]
19943
19943
....
19944
- {"reg":[{"bits":7,"name": 0x57,"type":2},{"bits":5,"name": "vd ","type":4},{"bits":8,"name": 0x82,"type":2},{"bits":5,"name": "vs2","type":4},{"bits":1,"name": "vm","type":4},{"bits":6,"name": 0x10,"type":2}]}
19944
+ {"reg":[{"bits":7,"name": 0x57,"type":2},{"bits":5,"name": "xd ","type":4},{"bits":8,"name": 0x82,"type":2},{"bits":5,"name": "vs2","type":4},{"bits":1,"name": "vm","type":4},{"bits":6,"name": 0x10,"type":2}]}
19945
19945
....
19946
19946
19947
19947
Description::
@@ -19954,7 +19954,7 @@ Decode Variables::
19954
19954
|Variable Name |Location
19955
19955
|vm |$encoding[25]
19956
19956
|vs2 |$encoding[24:20]
19957
- |vd |$encoding[11:7]
19957
+ |xd |$encoding[11:7]
19958
19958
|===
19959
19959
19960
19960
Included in::
0 commit comments