aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKersten Richter <kersten@riscv.org>2024-07-11 13:47:31 -0500
committerKersten Richter <kersten@riscv.org>2024-07-11 13:47:31 -0500
commitaa794631cee3e8f563381bad839b86db0e4881b9 (patch)
tree01a28c3246a92cb7b3def0f22c654f326159cf3e
parent7d9f0ac756810405c9593b7db7c19e4c65814ac0 (diff)
downloadriscv-isa-manual-aa794631cee3e8f563381bad839b86db0e4881b9.zip
riscv-isa-manual-aa794631cee3e8f563381bad839b86db0e4881b9.tar.gz
riscv-isa-manual-aa794631cee3e8f563381bad839b86db0e4881b9.tar.bz2
removing the color from wavedrom files
-rw-r--r--src/images/wavedrom/atomic-mem.adoc16
-rw-r--r--src/images/wavedrom/c-andi.adoc12
-rw-r--r--src/images/wavedrom/c-breakpoint-instr.adoc6
-rw-r--r--src/images/wavedrom/c-cb-format-ls.adoc10
-rw-r--r--src/images/wavedrom/c-ci.adoc10
-rw-r--r--src/images/wavedrom/c-ciw.adoc8
-rw-r--r--src/images/wavedrom/c-cj-format-ls.adoc6
-rw-r--r--src/images/wavedrom/c-cr-format-ls.adoc8
-rw-r--r--src/images/wavedrom/c-cs-format-ls.adoc12
-rw-r--r--src/images/wavedrom/c-def-illegal-inst.adoc10
-rw-r--r--src/images/wavedrom/c-int-reg-immed.adoc10
-rw-r--r--src/images/wavedrom/c-int-reg-to-reg-ca-format.adoc10
-rw-r--r--src/images/wavedrom/c-int-reg-to-reg-cr-format.adoc8
-rw-r--r--src/images/wavedrom/c-integer-const-gen.adoc10
-rw-r--r--src/images/wavedrom/c-mop.adoc8
-rw-r--r--src/images/wavedrom/c-nop-instr.adoc10
-rw-r--r--src/images/wavedrom/c-sp-load-store-css.adoc8
-rw-r--r--src/images/wavedrom/c-sp-load-store.adoc10
-rw-r--r--src/images/wavedrom/c-srli-srai.adoc12
-rw-r--r--src/images/wavedrom/cr-register.adoc84
-rw-r--r--src/images/wavedrom/cr-registers-new.adoc100
-rw-r--r--src/images/wavedrom/csr-instr.adoc22
-rw-r--r--src/images/wavedrom/ct-conditional.adoc12
23 files changed, 201 insertions, 201 deletions
diff --git a/src/images/wavedrom/atomic-mem.adoc b/src/images/wavedrom/atomic-mem.adoc
index ef66028..1e95eb4 100644
--- a/src/images/wavedrom/atomic-mem.adoc
+++ b/src/images/wavedrom/atomic-mem.adoc
@@ -3,13 +3,13 @@
[wavedrom, ,svg]
....
{reg: [
- {bits: 7, name: 'opcode', type: 8, attr: ['7','AMO','AMO','AMO','AMO','AMO','AMO','AMO']},
- {bits: 5, name: 'rd', type: 2, attr: ['5','dest','dest','dest','dest','dest','dest','dest']},
- {bits: 3, name: 'funct3', type: 8, attr: ['3','width','width','width','width','width','width','width']},
- {bits: 5, name: 'rs1', type: 4, attr: ['5','addr','addr','addr','addr','addr','addr','addr']},
- {bits: 5, name: 'rs2', type: 4, attr: ['5','src','src','src','src','src','src','src']},
- {bits: 1, name: 'rl', type: 8, attr: ['1']},
- {bits: 1, name: 'aq', type: 8, attr: ['1']},
- {bits: 6, name: 'funct5', type: 8, attr: ['5','AMOSWAP.W/D', 'AMOADD.W/D', 'AMOAND.W/D', 'AMOOR.W/D', 'AMOXOR.W/D', 'AMOMAX[U].W/D','AMOMIN[U].W/D']},
+ {bits: 7, name: 'opcode', attr: ['7','AMO','AMO','AMO','AMO','AMO','AMO','AMO']},
+ {bits: 5, name: 'rd', attr: ['5','dest','dest','dest','dest','dest','dest','dest']},
+ {bits: 3, name: 'funct3', attr: ['3','width','width','width','width','width','width','width']},
+ {bits: 5, name: 'rs1', attr: ['5','addr','addr','addr','addr','addr','addr','addr']},
+ {bits: 5, name: 'rs2', attr: ['5','src','src','src','src','src','src','src']},
+ {bits: 1, name: 'rl', attr: ['1']},
+ {bits: 1, name: 'aq', attr: ['1']},
+ {bits: 6, name: 'funct5', attr: ['5','AMOSWAP.W/D', 'AMOADD.W/D', 'AMOAND.W/D', 'AMOOR.W/D', 'AMOXOR.W/D', 'AMOMAX[U].W/D','AMOMIN[U].W/D']},
], config: {bits: 32}}
....
diff --git a/src/images/wavedrom/c-andi.adoc b/src/images/wavedrom/c-andi.adoc
index 5eca644..3ea3206 100644
--- a/src/images/wavedrom/c-andi.adoc
+++ b/src/images/wavedrom/c-andi.adoc
@@ -3,11 +3,11 @@
[wavedrom, ,svg]
....
{reg: [
- {bits: 2, name: 'op', type: 5, attr: ['2','C1'],},
- {bits: 5, name: 'imm[4:0]', type: 5, attr: ['5','imm[4:0]']},
- {bits: 3, name: 'rd′/rs1′', type: 5, attr: ['3','dest'],},
- {bits: 2, name: 'funct2', type: 5, attr: ['2','C.ANDI'],},
- {bits: 1, name: 'imm[5]', type: 1, attr: ['1','imm[5]'],},
- {bits: 3, name: 'funct3', type: 5, attr: ['3','C.ANDI'],},
+ {bits: 2, name: 'op', attr: ['2','C1'],},
+ {bits: 5, name: 'imm[4:0]', attr: ['5','imm[4:0]']},
+ {bits: 3, name: 'rd′/rs1′', attr: ['3','dest'],},
+ {bits: 2, name: 'funct2', attr: ['2','C.ANDI'],},
+ {bits: 1, name: 'imm[5]', attr: ['1','imm[5]'],},
+ {bits: 3, name: 'funct3', attr: ['3','C.ANDI'],},
]}
.... \ No newline at end of file
diff --git a/src/images/wavedrom/c-breakpoint-instr.adoc b/src/images/wavedrom/c-breakpoint-instr.adoc
index 99ae2d5..6ae1890 100644
--- a/src/images/wavedrom/c-breakpoint-instr.adoc
+++ b/src/images/wavedrom/c-breakpoint-instr.adoc
@@ -4,8 +4,8 @@
....
{reg: [
- {bits: 2, name: 'op', type: 8, attr: ['2','C2'],},
- {bits: 10, name: '0', type: 4, attr: ['10','0'],},
- {bits: 4, name: 'funct4', type: 8, attr: ['4','C.EBREAK'],},
+ {bits: 2, name: 'op', attr: ['2','C2'],},
+ {bits: 10, name: '0', attr: ['10','0'],},
+ {bits: 4, name: 'funct4', attr: ['4','C.EBREAK'],},
], config: {bits: 16}}
.... \ No newline at end of file
diff --git a/src/images/wavedrom/c-cb-format-ls.adoc b/src/images/wavedrom/c-cb-format-ls.adoc
index daf2248..5c90133 100644
--- a/src/images/wavedrom/c-cb-format-ls.adoc
+++ b/src/images/wavedrom/c-cb-format-ls.adoc
@@ -3,11 +3,11 @@
[wavedrom, ,svg]
....
{reg: [
- {bits: 2, name: 'op', type: 8, attr: ['2','C1', 'C1']},
- {bits: 5, name: 'imm', type: 3, attr: ['5','offset[7:6|2:1|5]', 'offset[7:6|2:1|5]']},
- {bits: 3, name: 'rs1′', type: 4, attr: ['3','src', 'src']},
- {bits: 3, name: 'imm', type: 3, attr: ['3','offset[8|4:3]', 'offset[8|4:3]'],},
- {bits: 3, name: 'funct3', type: 8, attr: ['3','C.BEQZ', 'C.BNEZ'],},
+ {bits: 2, name: 'op', attr: ['2','C1', 'C1']},
+ {bits: 5, name: 'imm', attr: ['5','offset[7:6|2:1|5]', 'offset[7:6|2:1|5]']},
+ {bits: 3, name: 'rs1′', attr: ['3','src', 'src']},
+ {bits: 3, name: 'imm', attr: ['3','offset[8|4:3]', 'offset[8|4:3]'],},
+ {bits: 3, name: 'funct3', attr: ['3','C.BEQZ', 'C.BNEZ'],},
], config: {bits: 16}}
....
diff --git a/src/images/wavedrom/c-ci.adoc b/src/images/wavedrom/c-ci.adoc
index 7dae51e..aacf2be 100644
--- a/src/images/wavedrom/c-ci.adoc
+++ b/src/images/wavedrom/c-ci.adoc
@@ -3,11 +3,11 @@
[wavedrom, ,svg]
....
{reg: [
- {bits: 2, name: 'op', type: 3, attr: ['2', 'C2']},
- {bits: 5, name: 'shamt[4:0]', type: 1, attr: ['5', 'shamt[4:0]']},
- {bits: 5, name: 'rd/rs1', type: 5, attr: ['5', 'dest != 0']},
- {bits: 1, name: 'shamt[5]', type: 5, attr: ['1', 'shamt[5]']},
- {bits: 3, name: 'funct3', type: 5, attr: ['3', 'C.SLLI']},
+ {bits: 2, name: 'op', attr: ['2', 'C2']},
+ {bits: 5, name: 'shamt[4:0]', attr: ['5', 'shamt[4:0]']},
+ {bits: 5, name: 'rd/rs1', attr: ['5', 'dest != 0']},
+ {bits: 1, name: 'shamt[5]', attr: ['1', 'shamt[5]']},
+ {bits: 3, name: 'funct3', attr: ['3', 'C.SLLI']},
]}
....
diff --git a/src/images/wavedrom/c-ciw.adoc b/src/images/wavedrom/c-ciw.adoc
index 111b272..b167e1f 100644
--- a/src/images/wavedrom/c-ciw.adoc
+++ b/src/images/wavedrom/c-ciw.adoc
@@ -3,10 +3,10 @@
[wavedrom, ,svg]
....
{reg: [
- {bits: 2, name: 'op', type: 3, attr: ['2','C0'],},
- {bits: 3, name: 'rd′', type: 5, attr: ['3','dest'],},
- {bits: 8, name: 'imm', type: 5, attr: ['8','nzuimm[5:4|9:6|2|3]']},
- {bits: 3, name: 'funct3', type: 5, attr: ['3','C.ADDI4SPN']},
+ {bits: 2, name: 'op', attr: ['2','C0'],},
+ {bits: 3, name: 'rd′', attr: ['3','dest'],},
+ {bits: 8, name: 'imm', attr: ['8','nzuimm[5:4|9:6|2|3]']},
+ {bits: 3, name: 'funct3', attr: ['3','C.ADDI4SPN']},
], config: {bits: 16}}
....
diff --git a/src/images/wavedrom/c-cj-format-ls.adoc b/src/images/wavedrom/c-cj-format-ls.adoc
index 1ecbd35..cea87c4 100644
--- a/src/images/wavedrom/c-cj-format-ls.adoc
+++ b/src/images/wavedrom/c-cj-format-ls.adoc
@@ -13,9 +13,9 @@
[wavedrom, ,svg]
....
{reg: [
- {bits: 2, name: 'op', type: 8, attr: ['2','C1','C1']},
- {bits: 11, name: 'imm', type: 2, attr: ['11','offset[11|4|9:8|10|6|7|3:1|5]','offset[11|4|9:8|10|6|7|3:1|5]']},
- {bits: 3, name: 'funct3', type: 8, attr: ['3','C.J','C.JAL']},
+ {bits: 2, name: 'op', attr: ['2','C1','C1']},
+ {bits: 11, name: 'imm', attr: ['11','offset[11|4|9:8|10|6|7|3:1|5]','offset[11|4|9:8|10|6|7|3:1|5]']},
+ {bits: 3, name: 'funct3', attr: ['3','C.J','C.JAL']},
], config: {bits: 16}}
....
diff --git a/src/images/wavedrom/c-cr-format-ls.adoc b/src/images/wavedrom/c-cr-format-ls.adoc
index 0329261..b989e2c 100644
--- a/src/images/wavedrom/c-cr-format-ls.adoc
+++ b/src/images/wavedrom/c-cr-format-ls.adoc
@@ -3,10 +3,10 @@
[wavedrom, ,svg]
....
{reg: [
- {bits: 2, name: 'op', type: 8, attr: ['2','C2', 'C2']},
- {bits: 5, name: 'rs2', type: 4, attr: ['5','0', '0']},
- {bits: 5, name: 'rs1', type: 4, attr: ['5','src≠0', 'src≠0']},
- {bits: 4, name: 'funct4', type: 8, attr: ['4','C.JR', 'C.JALR']},
+ {bits: 2, name: 'op', attr: ['2','C2', 'C2']},
+ {bits: 5, name: 'rs2', attr: ['5','0', '0']},
+ {bits: 5, name: 'rs1', attr: ['5','src≠0', 'src≠0']},
+ {bits: 4, name: 'funct4', attr: ['4','C.JR', 'C.JALR']},
], config: {bits: 16}}
....
diff --git a/src/images/wavedrom/c-cs-format-ls.adoc b/src/images/wavedrom/c-cs-format-ls.adoc
index 1f759a7..31f4ccf 100644
--- a/src/images/wavedrom/c-cs-format-ls.adoc
+++ b/src/images/wavedrom/c-cs-format-ls.adoc
@@ -4,12 +4,12 @@
[wavedrom, ,svg]
....
{reg: [
- {bits: 2, name: 'op', type: 8, attr: ['2', 'C0','C0','C0','C0','C0']},
- {bits: 3, name: 'rs2ʹ', type: 3, attr: ['3', 'src','src','src','src','src']},
- {bits: 2, name: 'imm', type: 2, attr: ['2', 'offset[2|6]','offset[7:6]','offset[7:6]','offset[2|6]','offset[7:6]']},
- {bits: 3, name: 'rs1ʹ', type: 3, attr: ['3', 'base','base','base','base','base']},
- {bits: 3, name: 'imm', type: 3, attr: ['3', 'offset[5:3]','offset[5:3]','offset[5|4|8]','offset[5:3]','offset[5:3]']},
- {bits: 3, name: 'funct3', type: 8, attr: ['3', 'C.SW','C.SD','C.SQ','C.FSW','C.FSD']},
+ {bits: 2, name: 'op', attr: ['2', 'C0','C0','C0','C0','C0']},
+ {bits: 3, name: 'rs2ʹ', attr: ['3', 'src','src','src','src','src']},
+ {bits: 2, name: 'imm', attr: ['2', 'offset[2|6]','offset[7:6]','offset[7:6]','offset[2|6]','offset[7:6]']},
+ {bits: 3, name: 'rs1ʹ', attr: ['3', 'base','base','base','base','base']},
+ {bits: 3, name: 'imm', attr: ['3', 'offset[5:3]','offset[5:3]','offset[5|4|8]','offset[5:3]','offset[5:3]']},
+ {bits: 3, name: 'funct3', attr: ['3', 'C.SW','C.SD','C.SQ','C.FSW','C.FSD']},
], config: {bits: 16}}
....
diff --git a/src/images/wavedrom/c-def-illegal-inst.adoc b/src/images/wavedrom/c-def-illegal-inst.adoc
index add949d..414a19e 100644
--- a/src/images/wavedrom/c-def-illegal-inst.adoc
+++ b/src/images/wavedrom/c-def-illegal-inst.adoc
@@ -4,10 +4,10 @@
....
{reg: [
- {bits: 2, name: '0', type: 8, attr: ['2','0'],},
- {bits: 5, name: '0', type: 4, attr: ['5','0'],},
- {bits: 5, name: '0', type: 8, attr: ['5','0'],},
- {bits: 1, name: '0', type: 8, attr: ['1','0'],},
- {bits: 3, name: '0', type: 8, attr: ['3','0'],},
+ {bits: 2, name: '0', attr: ['2','0'],},
+ {bits: 5, name: '0', attr: ['5','0'],},
+ {bits: 5, name: '0', attr: ['5','0'],},
+ {bits: 1, name: '0', attr: ['1','0'],},
+ {bits: 3, name: '0', attr: ['3','0'],},
], config: {bits: 16}}
.... \ No newline at end of file
diff --git a/src/images/wavedrom/c-int-reg-immed.adoc b/src/images/wavedrom/c-int-reg-immed.adoc
index 45168d7..f509065 100644
--- a/src/images/wavedrom/c-int-reg-immed.adoc
+++ b/src/images/wavedrom/c-int-reg-immed.adoc
@@ -3,10 +3,10 @@
[wavedrom, ,svg]
....
{reg: [
- {bits: 2, name: 'op', type: 3, attr: ['2','C1', 'C1', 'C1']},
- {bits: 5, name: 'imm[4:]', type: 1, attr: ['5','nzimm[4:0]', 'imm[4:0]', 'nzimm[4|6|8:7|5]']},
- {bits: 5, name: 'rd/rs1', type: 5, attr: ['5','dest != 0', 'dest != 0', '2']},
- {bits: 1, name: 'imm[5]', type: 5, attr: ['1','nzimm[5]', 'imm[5]', 'nzimm[9]']},
- {bits: 3, name: 'funct3', type: 5, attr: ['3','C.ADDI', 'C.ADDIW', 'C.ADDI16SP']},
+ {bits: 2, name: 'op', attr: ['2','C1', 'C1', 'C1']},
+ {bits: 5, name: 'imm[4:]', attr: ['5','nzimm[4:0]', 'imm[4:0]', 'nzimm[4|6|8:7|5]']},
+ {bits: 5, name: 'rd/rs1', attr: ['5','dest != 0', 'dest != 0', '2']},
+ {bits: 1, name: 'imm[5]', attr: ['1','nzimm[5]', 'imm[5]', 'nzimm[9]']},
+ {bits: 3, name: 'funct3', attr: ['3','C.ADDI', 'C.ADDIW', 'C.ADDI16SP']},
], config: {bits: 16}}
....
diff --git a/src/images/wavedrom/c-int-reg-to-reg-ca-format.adoc b/src/images/wavedrom/c-int-reg-to-reg-ca-format.adoc
index b2cf982..67e77b0 100644
--- a/src/images/wavedrom/c-int-reg-to-reg-ca-format.adoc
+++ b/src/images/wavedrom/c-int-reg-to-reg-ca-format.adoc
@@ -4,10 +4,10 @@
....
{reg: [
- {bits: 2, name: 'op', type: 8, attr: ['2', 'C1', 'C1', 'C1', 'C1', 'C1', 'C1'],},
- {bits: 3, name: 'rs2′', type: 4, attr: ['3', 'src', 'src', 'src', 'src', 'src', 'src'],},
- {bits: 2, name: 'funct2', type: 8, attr: ['2', 'C.AND', 'C.OR', 'C.XOR', 'C.SUB', 'C.ADDW', 'C.SUBW'],},
- {bits: 3, name: 'rd′/rs1′', type: 7, attr: ['3', 'dest', 'dest', 'dest', 'dest', 'dest', 'dest'],},
- {bits: 6, name: 'funct6', type: 8, attr: ['6', 'C.AND', 'C.OR', 'C.XOR', 'C.SUB', 'C.ADDW', 'C.SUBW'],},
+ {bits: 2, name: 'op', attr: ['2', 'C1', 'C1', 'C1', 'C1', 'C1', 'C1'],},
+ {bits: 3, name: 'rs2′', attr: ['3', 'src', 'src', 'src', 'src', 'src', 'src'],},
+ {bits: 2, name: 'funct2', attr: ['2', 'C.AND', 'C.OR', 'C.XOR', 'C.SUB', 'C.ADDW', 'C.SUBW'],},
+ {bits: 3, name: 'rd′/rs1′', attr: ['3', 'dest', 'dest', 'dest', 'dest', 'dest', 'dest'],},
+ {bits: 6, name: 'funct6', attr: ['6', 'C.AND', 'C.OR', 'C.XOR', 'C.SUB', 'C.ADDW', 'C.SUBW'],},
]}
.... \ No newline at end of file
diff --git a/src/images/wavedrom/c-int-reg-to-reg-cr-format.adoc b/src/images/wavedrom/c-int-reg-to-reg-cr-format.adoc
index 5e607f8..ddfa0f8 100644
--- a/src/images/wavedrom/c-int-reg-to-reg-cr-format.adoc
+++ b/src/images/wavedrom/c-int-reg-to-reg-cr-format.adoc
@@ -4,9 +4,9 @@
....
{reg: [
- {bits: 2, name: 'op', type: 8, attr: ['2', 'C2', 'C2'],},
- {bits: 5, name: 'rs2', type: 4, attr: ['5', 'src≠0', 'src≠0'],},
- {bits: 5, name: 'rd/rs1', type: 7, attr: ['5', 'dest≠0', 'dest≠0'],},
- {bits: 4, name: 'funct4', type: 8, attr: ['4', 'C.MV', 'C.ADD'],},
+ {bits: 2, name: 'op', attr: ['2', 'C2', 'C2'],},
+ {bits: 5, name: 'rs2', attr: ['5', 'src≠0', 'src≠0'],},
+ {bits: 5, name: 'rd/rs1', attr: ['5', 'dest≠0', 'dest≠0'],},
+ {bits: 4, name: 'funct4', attr: ['4', 'C.MV', 'C.ADD'],},
], config: {bits: 16}}
.... \ No newline at end of file
diff --git a/src/images/wavedrom/c-integer-const-gen.adoc b/src/images/wavedrom/c-integer-const-gen.adoc
index 732961b..b6ae85b 100644
--- a/src/images/wavedrom/c-integer-const-gen.adoc
+++ b/src/images/wavedrom/c-integer-const-gen.adoc
@@ -3,11 +3,11 @@
[wavedrom, ,svg]
....
{reg: [
- {bits: 2, name: 'op', type: 3, attr: ['2','C1', 'C1']},
- {bits: 5, name: 'imm[4:0]', type: 1, attr: ['5','imm[4:0]','imm[16:12]']},
- {bits: 5, name: 'rd', type: 5, attr: ['5','dest != 0', 'dest != {0, 2}']},
- {bits: 1, name: 'imm[5]', type: 5, attr: ['1','imm[5]', 'nzimm[17]'],},
- {bits: 3, name: 'funct3', type: 5, attr: ['3','C.LI', 'C.LUI'],},
+ {bits: 2, name: 'op', attr: ['2','C1', 'C1']},
+ {bits: 5, name: 'imm[4:0]', attr: ['5','imm[4:0]','imm[16:12]']},
+ {bits: 5, name: 'rd', attr: ['5','dest != 0', 'dest != {0, 2}']},
+ {bits: 1, name: 'imm[5]', attr: ['1','imm[5]', 'nzimm[17]'],},
+ {bits: 3, name: 'funct3', attr: ['3','C.LI', 'C.LUI'],},
], config: {bits: 16}}
....
diff --git a/src/images/wavedrom/c-mop.adoc b/src/images/wavedrom/c-mop.adoc
index 0aee8e4..9b850a5 100644
--- a/src/images/wavedrom/c-mop.adoc
+++ b/src/images/wavedrom/c-mop.adoc
@@ -1,11 +1,11 @@
[wavedrom, ,svg]
....
{reg:[
- { bits: 2, name: 0x1, type: 8 },
+ { bits: 2, name: 0x1 },
{ bits: 5, name: 0x0 },
- { bits: 1, name: 0x1, type: 4 },
- { bits: 3, name: 'n[3:1]', type: 4 },
- { bits: 1, name: 0x0, type: 4 },
+ { bits: 1, name: 0x1 },
+ { bits: 3, name: 'n[3:1]' },
+ { bits: 1, name: 0x0 },
{ bits: 1, name: 0x0 },
{ bits: 3, name: 0x3 },
]}
diff --git a/src/images/wavedrom/c-nop-instr.adoc b/src/images/wavedrom/c-nop-instr.adoc
index e3fada1..89da752 100644
--- a/src/images/wavedrom/c-nop-instr.adoc
+++ b/src/images/wavedrom/c-nop-instr.adoc
@@ -4,10 +4,10 @@
....
{reg: [
- {bits: 2, name: 'op', type: 8, attr: ['2','C1'],},
- {bits: 5, name: 'imm[4:0]', type: 4, attr: ['5','0'],},
- {bits: 5, name: 'rd/rs1', type: 8, attr: ['5','0'],},
- {bits: 1, name: 'imm[5]', type: 8, attr: ['1','0'],},
- {bits: 3, name: 'funct3', type: 8, attr: ['3','C.NOP'],},
+ {bits: 2, name: 'op', attr: ['2','C1'],},
+ {bits: 5, name: 'imm[4:0]', attr: ['5','0'],},
+ {bits: 5, name: 'rd/rs1', attr: ['5','0'],},
+ {bits: 1, name: 'imm[5]', attr: ['1','0'],},
+ {bits: 3, name: 'funct3', attr: ['3','C.NOP'],},
]}
.... \ No newline at end of file
diff --git a/src/images/wavedrom/c-sp-load-store-css.adoc b/src/images/wavedrom/c-sp-load-store-css.adoc
index 2cafcd8..a398c7f 100644
--- a/src/images/wavedrom/c-sp-load-store-css.adoc
+++ b/src/images/wavedrom/c-sp-load-store-css.adoc
@@ -3,10 +3,10 @@
[wavedrom, ,svg]
....
{reg: [
- {bits: 2, name: 'op', type: 8, attr: ['2','C2','C2','C2','C2','C2']},
- {bits: 5, name: 'rs2', type: 4, attr: ['5','src', 'src', 'src', 'src', 'src']},
- {bits: 6, name: 'imm', type: 3, attr: ['6','offset[5:2|7:6]', 'offset[5:3|8:6]', 'offset[5:4|9:6]', 'offset[5:2|7:6]','offset[5:3|8:6]']},
- {bits: 3, name: 'funct3', type: 8, attr: ['3','C.SWSP', 'C.SDSP', 'C.SQSP', 'C.FSWSP', 'C.FSDSP']},
+ {bits: 2, name: 'op', attr: ['2','C2','C2','C2','C2','C2']},
+ {bits: 5, name: 'rs2', attr: ['5','src', 'src', 'src', 'src', 'src']},
+ {bits: 6, name: 'imm', attr: ['6','offset[5:2|7:6]', 'offset[5:3|8:6]', 'offset[5:4|9:6]', 'offset[5:2|7:6]','offset[5:3|8:6]']},
+ {bits: 3, name: 'funct3', attr: ['3','C.SWSP', 'C.SDSP', 'C.SQSP', 'C.FSWSP', 'C.FSDSP']},
], config: {bits: 16}}
....
diff --git a/src/images/wavedrom/c-sp-load-store.adoc b/src/images/wavedrom/c-sp-load-store.adoc
index c39f2f6..f890ac8 100644
--- a/src/images/wavedrom/c-sp-load-store.adoc
+++ b/src/images/wavedrom/c-sp-load-store.adoc
@@ -4,11 +4,11 @@
[wavedrom, ,svg]
....
{reg: [
- {bits: 2, name: 'op', type: 8, attr: ['2','C2','C2','C2','C2','C2']},
- {bits: 5, name: 'imm', type: 5, attr: ['5','offset[4:2|7:6]', 'offset[4:3|8:6]', 'offset[4|9:6]', 'offset[4:2|7:6]', 'offset[4:3|8:6]']},
- {bits: 5, name: 'rd', type: 5, attr: ['5','dest≠0', 'dest≠0', 'dest≠0', 'dest', 'dest']},
- {bits: 1, name: 'imm', type: 1, attr: ['1','offset[5]','offset[5]','offset[5]','offset[5]','offset[5]']},
- {bits: 3, name: 'funct3', type: 3, attr: ['3','C.LWSP', 'C.LDSP', 'C.LQSP', 'C.FLWSP', 'C.FLDSP']},
+ {bits: 2, name: 'op', attr: ['2','C2','C2','C2','C2','C2']},
+ {bits: 5, name: 'imm', attr: ['5','offset[4:2|7:6]', 'offset[4:3|8:6]', 'offset[4|9:6]', 'offset[4:2|7:6]', 'offset[4:3|8:6]']},
+ {bits: 5, name: 'rd', attr: ['5','dest≠0', 'dest≠0', 'dest≠0', 'dest', 'dest']},
+ {bits: 1, name: 'imm', attr: ['1','offset[5]','offset[5]','offset[5]','offset[5]','offset[5]']},
+ {bits: 3, name: 'funct3', attr: ['3','C.LWSP', 'C.LDSP', 'C.LQSP', 'C.FLWSP', 'C.FLDSP']},
], config: {bits: 16}}
....
diff --git a/src/images/wavedrom/c-srli-srai.adoc b/src/images/wavedrom/c-srli-srai.adoc
index 557bb39..78a1076 100644
--- a/src/images/wavedrom/c-srli-srai.adoc
+++ b/src/images/wavedrom/c-srli-srai.adoc
@@ -3,11 +3,11 @@
[wavedrom, ,svg]
....
{reg: [
- {bits: 2, name: 'op', type: 3, attr: ['2','C1', 'C1'],},
- {bits: 5, name: 'shamt[4:0]', type: 1, attr: ['5','shamt[4:0]', 'shamt[4:0]'],},
- {bits: 3, name: 'rd′/rs1′', type: 5, attr: ['3','dest', 'dest'],},
- {bits: 2, name: 'funct2', type: 5, attr: ['2','C.SRLI', 'C.SRAI'],},
- {bits: 1, name: 'shamt[5]', type: 5, attr: ['1','shamt[5]', 'shamt[5]'],},
- {bits: 3, name: 'funct3', type: 5, attr: ['3','C.SRLI', 'C.SRAI'],},
+ {bits: 2, name: 'op', attr: ['2','C1', 'C1'],},
+ {bits: 5, name: 'shamt[4:0]', attr: ['5','shamt[4:0]', 'shamt[4:0]'],},
+ {bits: 3, name: 'rd′/rs1′', attr: ['3','dest', 'dest'],},
+ {bits: 2, name: 'funct2', attr: ['2','C.SRLI', 'C.SRAI'],},
+ {bits: 1, name: 'shamt[5]', attr: ['1','shamt[5]', 'shamt[5]'],},
+ {bits: 3, name: 'funct3', attr: ['3','C.SRLI', 'C.SRAI'],},
]}
.... \ No newline at end of file
diff --git a/src/images/wavedrom/cr-register.adoc b/src/images/wavedrom/cr-register.adoc
index 63286e4..30ad1b3 100644
--- a/src/images/wavedrom/cr-register.adoc
+++ b/src/images/wavedrom/cr-register.adoc
@@ -6,96 +6,96 @@
[wavedrom, ,svg]
....
{reg: [
- {bits: 2, name: 'op', type: 8},
- {bits: 5, name: 'rs2', type: 4},
- {bits: 5, name: 'rd/rs1', type: 7},
- {bits: 4, name: 'funct4', type: 8},
+ {bits: 2, name: 'op' },
+ {bits: 5, name: 'rs2' },
+ {bits: 5, name: 'rd/rs1' },
+ {bits: 4, name: 'funct4' },
]}
....
[wavedrom, ,svg]
....
{reg: [
- {bits: 2, name: 'op', type: 8},
- {bits: 5, name: 'imm', type: 3},
- {bits: 5, name: 'rd/rs1', type: 7},
- {bits: 1, name: 'imm', type: 3},
- {bits: 3, name: 'funct3', type: 8},
+ {bits: 2, name: 'op' },
+ {bits: 5, name: 'imm' },
+ {bits: 5, name: 'rd/rs1' },
+ {bits: 1, name: 'imm' },
+ {bits: 3, name: 'funct3' },
]}
....
[wavedrom, ,svg]
....
{reg: [
- {bits: 2, name: 'op', type: 8},
- {bits: 5, name: 'rs2', type: 4},
- {bits: 6, name: 'imm', type: 3},
- {bits: 3, name: 'funct3', type: 8},
+ {bits: 2, name: 'op' },
+ {bits: 5, name: 'rs2' },
+ {bits: 6, name: 'imm' },
+ {bits: 3, name: 'funct3' },
]}
....
[wavedrom, ,svg]
....
{reg: [
- {bits: 2, name: 'op', type: 8},
- {bits: 3, name: 'rdʹ', type: 2},
- {bits: 8, name: 'imm', type: 3},
- {bits: 3, name: 'funct3', type: 8},
+ {bits: 2, name: 'op' },
+ {bits: 3, name: 'rdʹ' },
+ {bits: 8, name: 'imm' },
+ {bits: 3, name: 'funct3' },
]}
....
[wavedrom, ,svg]
....
{reg: [
- {bits: 2, name: 'op', type: 8},
- {bits: 3, name: 'rdʹ', type: 2},
- {bits: 2, name: 'imm', type: 3},
- {bits: 3, name: 'rs1ʹ', type: 4},
- {bits: 3, name: 'imm', type: 3},
- {bits: 3, name: 'funct3', type: 8},
+ {bits: 2, name: 'op' },
+ {bits: 3, name: 'rdʹ' },
+ {bits: 2, name: 'imm' },
+ {bits: 3, name: 'rs1ʹ' },
+ {bits: 3, name: 'imm' },
+ {bits: 3, name: 'funct3' },
]}
....
[wavedrom, ,svg]
....
{reg: [
- {bits: 2, name: 'op', type: 8},
- {bits: 3, name: 'rs2ʹ', type: 4},
- {bits: 2, name: 'imm', type: 3},
- {bits: 3, name: 'rs1ʹ', type: 4},
- {bits: 3, name: 'imm', type: 3},
- {bits: 3, name: 'funct3', type: 8},
+ {bits: 2, name: 'op' },
+ {bits: 3, name: 'rs2ʹ' },
+ {bits: 2, name: 'imm' },
+ {bits: 3, name: 'rs1ʹ' },
+ {bits: 3, name: 'imm' },
+ {bits: 3, name: 'funct3' },
]}
....
[wavedrom, ,svg]
....
{reg: [
- {bits: 2, name: 'op', type: 8},
- {bits: 3, name: 'rs2ʹ', type: 4},
- {bits: 2, name: 'funct2', type: 8},
- {bits: 3, name: 'rdʹ/rs1ʹ', type: 7},
- {bits: 6, name: 'funct6', type: 8},
+ {bits: 2, name: 'op' },
+ {bits: 3, name: 'rs2ʹ' },
+ {bits: 2, name: 'funct2' },
+ {bits: 3, name: 'rdʹ/rs1ʹ' },
+ {bits: 6, name: 'funct6' },
]}
....
[wavedrom, ,svg]
....
{reg: [
- {bits: 2, name: 'op', type: 8},
- {bits: 5, name: 'offset', type: 3},
- {bits: 3, name: 'rdʹ/rs1ʹ', type: 7},
- {bits: 3, name: 'offset', type: 3},
- {bits: 3, name: 'funct3', type: 8},
+ {bits: 2, name: 'op' },
+ {bits: 5, name: 'offset' },
+ {bits: 3, name: 'rdʹ/rs1ʹ' },
+ {bits: 3, name: 'offset' },
+ {bits: 3, name: 'funct3' },
]}
....
[wavedrom, ,svg]
....
{reg: [
- {bits: 2, name: 'op', type: 8},
- {bits: 11, name: 'jmp trgt', type: 3},
- {bits: 3, name: 'funct3', type: 8},
+ {bits: 2, name: 'op' },
+ {bits: 11, name: 'jmp trgt' },
+ {bits: 3, name: 'funct3' },
]}
....
diff --git a/src/images/wavedrom/cr-registers-new.adoc b/src/images/wavedrom/cr-registers-new.adoc
index 46a34e6..05331c8 100644
--- a/src/images/wavedrom/cr-registers-new.adoc
+++ b/src/images/wavedrom/cr-registers-new.adoc
@@ -2,56 +2,56 @@
....
### CR : Register
${wd({reg: [
- {bits: 2, name: 'op', type: 8},
- {bits: 5, name: 'rs2', type: 4},
- {bits: 5, name: 'rd / rs1ʹ, type: 7},
- {bits: 4, name: 'funct4', type: 8},
-
- {bits: 2, name: 'op', type: 8},
- {bits: 5, name: 'imm', type: 3},
- {bits: 5, name: 'rd / rs1', type: 7},
- {bits: 1, name: 'imm', type: 3},
- {bits: 3, name: 'funct3', type: 8},
-
- {bits: 2, name: 'op', type: 8},
- {bits: 5, name: 'rs2', type: 4},
- {bits: 6, name: 'imm', type: 3},
- {bits: 3, name: 'funct3', type: 8},
-
- {bits: 2, name: 'op', type: 8},
- {bits: 3, name: 'rdʹ', type: 2},
- {bits: 8, name: 'imm', type: 3},
- {bits: 3, name: 'funct3', type: 8},
-
- {bits: 2, name: 'op', type: 8},
- {bits: 3, name: 'rdʹ', type: 2},
- {bits: 2, name: 'imm', type: 3},
- {bits: 3, name: 'rs1ʹ', type: 4},
- {bits: 3, name: 'imm', type: 3},
- {bits: 3, name: 'funct3', type: 8},
-
- {bits: 2, name: 'op', type: 8},
- {bits: 3, name: 'rs2ʹ', type: 4},
- {bits: 2, name: 'imm', type: 3},
- {bits: 3, name: 'rs1ʹ', type: 4},
- {bits: 3, name: 'imm', type: 3},
- {bits: 3, name: 'funct3', type: 8},
-
- {bits: 2, name: 'op', type: 8},
- {bits: 3, name: 'rs2ʹ', type: 4},
- {bits: 2, name: 'funct2', type: 8},
- {bits: 3, name: 'rd` / rs1ʹ', type: 7},
- {bits: 6, name: 'funct6', type: 8},
-
- {bits: 2, name: 'op', type: 8},
- {bits: 5, name: 'offset', type: 3},
- {bits: 3, name: 'rd` / rs1ʹ', type: 7},
- {bits: 3, name: 'offset', type: 3},
- {bits: 3, name: 'funct3', type: 8},
-
- {bits: 2, name: 'op', type: 8},
- {bits: 11, name: 'jump target', type: 3},
- {bits: 3, name: 'funct3', type: 8},
+ {bits: 2, name: 'op' },
+ {bits: 5, name: 'rs2' },
+ {bits: 5, name: 'rd / rs1ʹ },
+ {bits: 4, name: 'funct4' },
+
+ {bits: 2, name: 'op' },
+ {bits: 5, name: 'imm' },
+ {bits: 5, name: 'rd / rs1' },
+ {bits: 1, name: 'imm' },
+ {bits: 3, name: 'funct3' },
+
+ {bits: 2, name: 'op' },
+ {bits: 5, name: 'rs2' },
+ {bits: 6, name: 'imm' },
+ {bits: 3, name: 'funct3' },
+
+ {bits: 2, name: 'op' },
+ {bits: 3, name: 'rdʹ' },
+ {bits: 8, name: 'imm' },
+ {bits: 3, name: 'funct3' },
+
+ {bits: 2, name: 'op' },
+ {bits: 3, name: 'rdʹ' },
+ {bits: 2, name: 'imm' },
+ {bits: 3, name: 'rs1ʹ' },
+ {bits: 3, name: 'imm' },
+ {bits: 3, name: 'funct3' },
+
+ {bits: 2, name: 'op' },
+ {bits: 3, name: 'rs2ʹ' },
+ {bits: 2, name: 'imm' },
+ {bits: 3, name: 'rs1ʹ' },
+ {bits: 3, name: 'imm' },
+ {bits: 3, name: 'funct3' },
+
+ {bits: 2, name: 'op' },
+ {bits: 3, name: 'rs2ʹ' },
+ {bits: 2, name: 'funct2' },
+ {bits: 3, name: 'rd` / rs1ʹ' },
+ {bits: 6, name: 'funct6' },
+
+ {bits: 2, name: 'op' },
+ {bits: 5, name: 'offset' },
+ {bits: 3, name: 'rd` / rs1ʹ' },
+ {bits: 3, name: 'offset' },
+ {bits: 3, name: 'funct3' },
+
+ {bits: 2, name: 'op' },
+ {bits: 11, name: 'jump target' },
+ {bits: 3, name: 'funct3' },
], config: {
hflip: true,
compact: true,
diff --git a/src/images/wavedrom/csr-instr.adoc b/src/images/wavedrom/csr-instr.adoc
index 93022be..19d853e 100644
--- a/src/images/wavedrom/csr-instr.adoc
+++ b/src/images/wavedrom/csr-instr.adoc
@@ -1,24 +1,24 @@
//# 10 "Zicsr", Control and Status Register (CSR) Instructions, Version 2.0
-//## 10.1 CSR Instructions
+//## 10.1 CSR Instructions
[wavedrom, ,svg]
....
{reg: [
- {bits: 7, name: 'opcode', attr: ['7', 'SYSTEM', 'SYSTEM', 'SYSTEM', 'SYSTEM', 'SYSTEM', 'SYSTEM'], type: 8},
- {bits: 5, name: 'rd', attr: ['5', 'dest', 'dest', 'dest', 'dest', 'dest', 'dest'], type: 2},
- {bits: 3, name: 'funct3', attr: ['3', 'CSRRW', 'CSRRS', 'CSRRC', 'CSRRWI', 'CSRRSI', 'CSRRCI'], type: 8},
- {bits: 5, name: 'rs1', attr: ['5', 'source', 'source', 'source', 'uimm[4:0]', 'uimm[4:0]', 'uimm[4:0]'], type: 4},
- {bits: 12, name: 'csr', attr: ['12', 'source/dest', 'source/dest', 'source/dest', 'source/dest', 'source/dest', 'source/dest'], type: 4},
+ {bits: 7, name: 'opcode', attr: ['7', 'SYSTEM', 'SYSTEM', 'SYSTEM', 'SYSTEM', 'SYSTEM', 'SYSTEM'] },
+ {bits: 5, name: 'rd', attr: ['5', 'dest', 'dest', 'dest', 'dest', 'dest', 'dest'] },
+ {bits: 3, name: 'funct3', attr: ['3', 'CSRRW', 'CSRRS', 'CSRRC', 'CSRRWI', 'CSRRSI', 'CSRRCI'] },
+ {bits: 5, name: 'rs1', attr: ['5', 'source', 'source', 'source', 'uimm[4:0]', 'uimm[4:0]', 'uimm[4:0]'] },
+ {bits: 12, name: 'csr', attr: ['12', 'source/dest', 'source/dest', 'source/dest', 'source/dest', 'source/dest', 'source/dest'], },
]}
....
//[wavedrom, ,]
//....
//{reg: [
-// {bits: 7, name: 'opcode', attr: ['7', 'SYSTEM','SYSTEM','SYSTEM'], type: 8},
-// {bits: 5, name: 'rd', attr: ['3', 'dest','dest', 'dest' ], type: 2},
-// {bits: 3, name: 'funct3', attr: ['3', 'CSRRWI', 'CSRRSI', 'CSRRCI'], type: 8},
-// {bits: 5, name: 'rs1', attr: ['5', 'uimm[4:0]','uimm[4:0]', 'uimm[4:0]'], type: 3},
-// {bits: 12, name: 'csr', attr: ['12', 'source/dest','source/dest','source/dest'], type: 4},
+// {bits: 7, name: 'opcode', attr: ['7', 'SYSTEM','SYSTEM','SYSTEM'] },
+// {bits: 5, name: 'rd', attr: ['3', 'dest','dest', 'dest' ] },
+// {bits: 3, name: 'funct3', attr: ['3', 'CSRRWI', 'CSRRSI', 'CSRRCI'] },
+// {bits: 5, name: 'rs1', attr: ['5', 'uimm[4:0]','uimm[4:0]', 'uimm[4:0]'] },
+// {bits: 12, name: 'csr', attr: ['12', 'source/dest','source/dest','source/dest'] },
//]}
//....
diff --git a/src/images/wavedrom/ct-conditional.adoc b/src/images/wavedrom/ct-conditional.adoc
index b886d7c..e021907 100644
--- a/src/images/wavedrom/ct-conditional.adoc
+++ b/src/images/wavedrom/ct-conditional.adoc
@@ -3,11 +3,11 @@
[wavedrom, ,svg]
....
{reg: [
- {bits: 7, name: 'opcode', attr: ['7', 'BRANCH', 'BRANCH', 'BRANCH'], type: 8},
- {bits: 5, name: 'imm[4:1|11]', attr: ['5', 'offset[4:1|11]', 'offset[4:1|11]', 'offset[4:1|11]'], type: 3},
- {bits: 3, name: 'funct3', attr: ['3', 'BEQ/BNE', 'BLT[U]', 'BGE[U]'], type: 8},
- {bits: 5, name: 'rs1', attr: ['5', 'src1', 'src1', 'src1'], type: 4},
- {bits: 5, name: 'rs2', attr: ['5', 'src2','src2', 'src2'], type: 4},
- {bits: 7, name: 'imm[12|10:5]', attr: ['7', 'offset[12|10:5]', 'offset[12|10:5]', 'offset[12|10:5]'], type: 3},
+ {bits: 7, name: 'opcode', attr: ['7', 'BRANCH', 'BRANCH', 'BRANCH'] },
+ {bits: 5, name: 'imm[4:1|11]', attr: ['5', 'offset[4:1|11]', 'offset[4:1|11]', 'offset[4:1|11]'] },
+ {bits: 3, name: 'funct3', attr: ['3', 'BEQ/BNE', 'BLT[U]', 'BGE[U]'] },
+ {bits: 5, name: 'rs1', attr: ['5', 'src1', 'src1', 'src1'] },
+ {bits: 5, name: 'rs2', attr: ['5', 'src2','src2', 'src2'] },
+ {bits: 7, name: 'imm[12|10:5]', attr: ['7', 'offset[12|10:5]', 'offset[12|10:5]', 'offset[12|10:5]'] },
], config:{fontsize: 10}}
....