11= Instruction Appendix
22: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
44// Now the document header is complete and the wavedrom attribute is active.
55
66
@@ -6155,13 +6155,13 @@ Atomic Read and Clear Bits in CSR with Immediate
61556155Encoding::
61566156[wavedrom, ,svg,subs='attributes',width="100%"]
61576157....
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}]}
61596159....
61606160
61616161Description::
61626162The 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
61656165will not write to the CSR, and shall not cause any of the side effects that might otherwise occur on
61666166a CSR write, nor raise illegal-instruction exceptions on accesses to read-only CSRs. The CSRRCI will
61676167always read the CSR and cause any read side effects regardless of `xd` and `xs1` fields.
@@ -6172,7 +6172,7 @@ Decode Variables::
61726172|===
61736173|Variable Name |Location
61746174|csr |$encoding[31:20]
6175- |uimm |$encoding[19:15]
6175+ |imm |$encoding[19:15]
61766176|xd |$encoding[11:7]
61776177|===
61786178
@@ -6237,13 +6237,13 @@ Atomic Read and Set Bits in CSR with Immediate
62376237Encoding::
62386238[wavedrom, ,svg,subs='attributes',width="100%"]
62396239....
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}]}
62416241....
62426242
62436243Description::
62446244The 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
62476247will not write to the CSR, and shall not cause any of the side effects that might otherwise occur on
62486248a CSR write, nor raise illegal-instruction exceptions on accesses to read-only CSRs. The CSRRSI will
62496249always read the CSR and cause any read side effects regardless of `xd` and `xs1` fields.
@@ -6254,7 +6254,7 @@ Decode Variables::
62546254|===
62556255|Variable Name |Location
62566256|csr |$encoding[31:20]
6257- |uimm |$encoding[19:15]
6257+ |imm |$encoding[19:15]
62586258|xd |$encoding[11:7]
62596259|===
62606260
@@ -19941,7 +19941,7 @@ No synopsis available
1994119941Encoding::
1994219942[wavedrom, ,svg,subs='attributes',width="100%"]
1994319943....
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}]}
1994519945....
1994619946
1994719947Description::
@@ -19954,7 +19954,7 @@ Decode Variables::
1995419954|Variable Name |Location
1995519955|vm |$encoding[25]
1995619956|vs2 |$encoding[24:20]
19957- |vd |$encoding[11:7]
19957+ |xd |$encoding[11:7]
1995819958|===
1995919959
1996019960Included in::
0 commit comments