aboutsummaryrefslogtreecommitdiff
path: root/inst.v
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2010-09-12 18:23:36 -0700
committerAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2010-09-12 18:23:36 -0700
commitc12b39030265006a1b5af2261d459b55feb33b72 (patch)
tree913a1a238fdc747ade6e8f05ec3968c95cd777b8 /inst.v
parent5103021dc40f42a18669c11bab8feea3a56f4ed5 (diff)
downloadriscv-opcodes-c12b39030265006a1b5af2261d459b55feb33b72.zip
riscv-opcodes-c12b39030265006a1b5af2261d459b55feb33b72.tar.gz
riscv-opcodes-c12b39030265006a1b5af2261d459b55feb33b72.tar.bz2
[xcc, sim] moved shamt field and renamed shifts
Diffstat (limited to 'inst.v')
-rw-r--r--inst.v34
1 files changed, 17 insertions, 17 deletions
diff --git a/inst.v b/inst.v
index 5615b34..aaa9854 100644
--- a/inst.v
+++ b/inst.v
@@ -9,11 +9,14 @@
`define BLE 32'b1110011_?????_?????_100_????????????
`define BLEU 32'b1110011_?????_?????_101_????????????
`define ADDI 32'b1110100_?????_?????_000_????????????
-`define SLTI 32'b1110100_?????_?????_001_????????????
-`define SLTIU 32'b1110100_?????_?????_010_????????????
-`define ANDI 32'b1110100_?????_?????_011_????????????
-`define ORI 32'b1110100_?????_?????_100_????????????
-`define XORI 32'b1110100_?????_?????_101_????????????
+`define SLTI 32'b1110100_?????_?????_010_????????????
+`define SLTIU 32'b1110100_?????_?????_011_????????????
+`define ANDI 32'b1110100_?????_?????_100_????????????
+`define ORI 32'b1110100_?????_?????_101_????????????
+`define XORI 32'b1110100_?????_?????_110_????????????
+`define SLLI 32'b1110100_00000_?????_1110_??????_00000
+`define SRLI 32'b1110100_00000_?????_1110_??????_00000
+`define SRAI 32'b1110100_00000_?????_1110_??????_00000
`define ADD 32'b1110101_?????_?????_0000000000_?????
`define SUB 32'b1110101_?????_?????_0000000001_?????
`define SLT 32'b1110101_?????_?????_0000000010_?????
@@ -22,6 +25,9 @@
`define OR 32'b1110101_?????_?????_0000000101_?????
`define XOR 32'b1110101_?????_?????_0000000110_?????
`define NOR 32'b1110101_?????_?????_0000000111_?????
+`define SLLV 32'b1110101_?????_?????_1110000010_?????
+`define SRLV 32'b1110101_?????_?????_1110000100_?????
+`define SRAV 32'b1110101_?????_?????_1110000110_?????
`define MUL 32'b1110101_?????_?????_0010000000_?????
`define MULH 32'b1110101_?????_?????_0010000010_?????
`define MULHU 32'b1110101_?????_?????_0010000011_?????
@@ -29,15 +35,15 @@
`define DIVU 32'b1110101_?????_?????_0010000101_?????
`define REM 32'b1110101_?????_?????_0010000110_?????
`define REMU 32'b1110101_?????_?????_0010000111_?????
-`define SLLV 32'b1110101_?????_?????_1000000001_?????
-`define SRLV 32'b1110101_?????_?????_1000000010_?????
-`define SRAV 32'b1110101_?????_?????_1000000011_?????
-`define SLL 32'b1110101_00000_?????_1010_??????_?????
-`define SRL 32'b1110101_00000_?????_1100_??????_?????
-`define SRA 32'b1110101_00000_?????_1110_??????_?????
`define ADDIW 32'b1110110_?????_?????_000_????????????
+`define SLLIW 32'b1110110_00000_?????_1110_0_?????_00000
+`define SRLIW 32'b1110110_00000_?????_1110_0_?????_00000
+`define SRAIW 32'b1110110_00000_?????_1110_0_?????_00000
`define ADDW 32'b1110111_?????_?????_0000000000_?????
`define SUBW 32'b1110111_?????_?????_0000000001_?????
+`define SLLVW 32'b1110111_?????_?????_1110000010_?????
+`define SRLVW 32'b1110111_?????_?????_1110000100_?????
+`define SRAVW 32'b1110111_?????_?????_1110000110_?????
`define MULW 32'b1110111_?????_?????_0010000000_?????
`define MULHW 32'b1110111_?????_?????_0010000010_?????
`define MULHUW 32'b1110111_?????_?????_0010000011_?????
@@ -45,12 +51,6 @@
`define DIVUW 32'b1110111_?????_?????_0010000101_?????
`define REMW 32'b1110111_?????_?????_0010000110_?????
`define REMUW 32'b1110111_?????_?????_0010000111_?????
-`define SLLVW 32'b1110111_?????_?????_1000000001_?????
-`define SRLVW 32'b1110111_?????_?????_1000000010_?????
-`define SRAVW 32'b1110111_?????_?????_1000000011_?????
-`define SLLW 32'b1110111_00000_?????_1010_0_?????_?????
-`define SRLW 32'b1110111_00000_?????_1100_0_?????_?????
-`define SRAW 32'b1110111_00000_?????_1110_0_?????_?????
`define LB 32'b1111000_?????_?????_000_????????????
`define LH 32'b1111000_?????_?????_001_????????????
`define LW 32'b1111000_?????_?????_010_????????????