aboutsummaryrefslogtreecommitdiff
path: root/rv64_i
diff options
context:
space:
mode:
authorNeel Gala <neelgala@incoresemi.com>2022-04-08 17:24:00 +0530
committerNeel Gala <neelgala@incoresemi.com>2022-04-08 17:24:00 +0530
commitb60b8e3075cb2a995128d06651affb4568dff6eb (patch)
tree19f50d5d69bb9b3b0a48a04e3c0718438bfdb8e4 /rv64_i
parent75b28f235e807fb6803575f952ce56b81571fd2b (diff)
downloadriscv-opcodes-b60b8e3075cb2a995128d06651affb4568dff6eb.zip
riscv-opcodes-b60b8e3075cb2a995128d06651affb4568dff6eb.tar.gz
riscv-opcodes-b60b8e3075cb2a995128d06651affb4568dff6eb.tar.bz2
migrate I-extension opcodes
- the ordering in these files have changed to preserve the order in the latex- tables - also ecall and ebreak has been moved to rv_i instead of keeping them in 'systems' file.
Diffstat (limited to 'rv64_i')
-rw-r--r--rv64_i17
1 files changed, 17 insertions, 0 deletions
diff --git a/rv64_i b/rv64_i
new file mode 100644
index 0000000..1d88e59
--- /dev/null
+++ b/rv64_i
@@ -0,0 +1,17 @@
+# RV64I additions to RV32I
+
+lwu rd rs1 imm12 14..12=6 6..2=0x00 1..0=3
+ld rd rs1 imm12 14..12=3 6..2=0x00 1..0=3
+sd imm12hi rs1 rs2 imm12lo 14..12=3 6..2=0x08 1..0=3
+slli rd rs1 31..26=0 shamt 14..12=1 6..2=0x04 1..0=3
+srli rd rs1 31..26=0 shamt 14..12=5 6..2=0x04 1..0=3
+srai rd rs1 31..26=16 shamt 14..12=5 6..2=0x04 1..0=3
+addiw rd rs1 imm12 14..12=0 6..2=0x06 1..0=3
+slliw rd rs1 31..25=0 shamtw 14..12=1 6..2=0x06 1..0=3
+srliw rd rs1 31..25=0 shamtw 14..12=5 6..2=0x06 1..0=3
+sraiw rd rs1 31..25=32 shamtw 14..12=5 6..2=0x06 1..0=3
+addw rd rs1 rs2 31..25=0 14..12=0 6..2=0x0E 1..0=3
+subw rd rs1 rs2 31..25=32 14..12=0 6..2=0x0E 1..0=3
+sllw rd rs1 rs2 31..25=0 14..12=1 6..2=0x0E 1..0=3
+srlw rd rs1 rs2 31..25=0 14..12=5 6..2=0x0E 1..0=3
+sraw rd rs1 rs2 31..25=32 14..12=5 6..2=0x0E 1..0=3