aboutsummaryrefslogtreecommitdiff
path: root/inst.v
diff options
context:
space:
mode:
Diffstat (limited to 'inst.v')
-rw-r--r--inst.v84
1 files changed, 42 insertions, 42 deletions
diff --git a/inst.v b/inst.v
index f02848b..08d26f3 100644
--- a/inst.v
+++ b/inst.v
@@ -2,12 +2,12 @@
`define J 32'b11000_???????????????????????????
`define JAL 32'b11001_???????????????????????????
`define LUI 32'b1110001_?????_????????????????????
-`define BEQ 32'b1110011_?????_?????_000_????????????
-`define BNE 32'b1110011_?????_?????_001_????????????
-`define BLT 32'b1110011_?????_?????_100_????????????
-`define BGE 32'b1110011_?????_?????_101_????????????
-`define BLTU 32'b1110011_?????_?????_110_????????????
-`define BGEU 32'b1110011_?????_?????_111_????????????
+`define BEQ 32'b1110011_00000_?????_000_????????????
+`define BNE 32'b1110011_00000_?????_001_????????????
+`define BLT 32'b1110011_00000_?????_100_????????????
+`define BGE 32'b1110011_00000_?????_101_????????????
+`define BLTU 32'b1110011_00000_?????_110_????????????
+`define BGEU 32'b1110011_00000_?????_111_????????????
`define ADDI 32'b1110100_?????_?????_000_????????????
`define SLTI 32'b1110100_?????_?????_010_????????????
`define SLTIU 32'b1110100_?????_?????_011_????????????
@@ -59,10 +59,10 @@
`define LHU 32'b1111000_?????_?????_101_????????????
`define LWU 32'b1111000_?????_?????_110_????????????
`define SYNCI 32'b1111000_00000_?????_111_????????????
-`define SB 32'b1111001_?????_?????_000_????????????
-`define SH 32'b1111001_?????_?????_001_????????????
-`define SW 32'b1111001_?????_?????_010_????????????
-`define SD 32'b1111001_?????_?????_011_????????????
+`define SB 32'b1111001_00000_?????_000_????????????
+`define SH 32'b1111001_00000_?????_001_????????????
+`define SW 32'b1111001_00000_?????_010_????????????
+`define SD 32'b1111001_00000_?????_011_????????????
`define AMOW_ADD 32'b1111010_?????_?????_0100000000_?????
`define AMOW_SWAP 32'b1111010_?????_?????_0100000001_?????
`define AMOW_AND 32'b1111010_?????_?????_0100000010_?????
@@ -79,11 +79,11 @@
`define AMO_MAX 32'b1111010_?????_?????_0110000101_?????
`define AMO_MINU 32'b1111010_?????_?????_0110000110_?????
`define AMO_MAXU 32'b1111010_?????_?????_0110000111_?????
-`define JALR_C 32'b1111011_?????_00000_0000000000_?????
-`define JALR_R 32'b1111011_?????_00000_0000000001_?????
-`define JALR_J 32'b1111011_?????_00000_0000000010_?????
+`define JALR_C 32'b1111011_00000_?????_0000000000_?????
+`define JALR_R 32'b1111011_00000_?????_0000000001_?????
+`define JALR_J 32'b1111011_00000_?????_0000000010_?????
`define RDNPC 32'b1111011_00000_00000_0010000000_?????
-`define MFCR 32'b1111011_00000_?????_0100000000_?????
+`define MFCR 32'b1111011_?????_00000_0100000000_?????
`define MTCR 32'b1111011_?????_?????_0110000000_00000
`define SYNC 32'b1111011_00000_00000_1000000000_00000
`define SYSCALL 32'b1111011_00000_00000_1010000000_00000
@@ -91,13 +91,13 @@
`define EI 32'b1111110_00000_00000_0000000000_?????
`define DI 32'b1111110_00000_00000_0010000000_?????
`define ERET 32'b1111110_00000_00000_0100000000_00000
-`define MFPCR 32'b1111110_00000_?????_1000000000_?????
+`define MFPCR 32'b1111110_?????_00000_1000000000_?????
`define MTPCR 32'b1111110_?????_?????_1010000000_00000
`define ADD_S 32'b1101000_?????_?????_0000000000_?????
`define SUB_S 32'b1101000_?????_?????_0000000001_?????
`define MUL_S 32'b1101000_?????_?????_0000000010_?????
`define DIV_S 32'b1101000_?????_?????_0000000011_?????
-`define SQRT_S 32'b1101000_?????_00000_0000000100_?????
+`define SQRT_S 32'b1101000_00000_?????_0000000100_?????
`define SGNINJ_S 32'b1101000_?????_?????_0000000101_?????
`define SGNINJN_S 32'b1101000_?????_?????_0000000110_?????
`define SGNMUL_S 32'b1101000_?????_?????_0000000111_?????
@@ -105,28 +105,28 @@
`define SUB_D 32'b1101000_?????_?????_1100000001_?????
`define MUL_D 32'b1101000_?????_?????_1100000010_?????
`define DIV_D 32'b1101000_?????_?????_1100000011_?????
-`define SQRT_D 32'b1101000_?????_00000_1100000100_?????
+`define SQRT_D 32'b1101000_00000_?????_1100000100_?????
`define SGNINJ_D 32'b1101000_?????_?????_1100000101_?????
`define SGNINJN_D 32'b1101000_?????_?????_1100000110_?????
`define SGNMUL_D 32'b1101000_?????_?????_1100000111_?????
-`define TRUNC_L_S 32'b1101000_?????_00000_0000100000_?????
-`define TRUNCU_L_S 32'b1101000_?????_00000_0000100001_?????
-`define TRUNC_W_S 32'b1101000_?????_00000_0000100010_?????
-`define TRUNCU_W_S 32'b1101000_?????_00000_0000100011_?????
-`define TRUNC_L_D 32'b1101000_?????_00000_1100100000_?????
-`define TRUNCU_L_D 32'b1101000_?????_00000_1100100001_?????
-`define TRUNC_W_D 32'b1101000_?????_00000_1100100010_?????
-`define TRUNCU_W_D 32'b1101000_?????_00000_1100100011_?????
-`define CVT_S_L 32'b1101000_?????_00000_0000100100_?????
-`define CVTU_S_L 32'b1101000_?????_00000_0000100101_?????
-`define CVT_S_W 32'b1101000_?????_00000_0000100110_?????
-`define CVTU_S_W 32'b1101000_?????_00000_0000100111_?????
-`define CVT_D_L 32'b1101000_?????_00000_1100100100_?????
-`define CVTU_D_L 32'b1101000_?????_00000_1100100101_?????
-`define CVT_D_W 32'b1101000_?????_00000_1100100110_?????
-`define CVTU_D_W 32'b1101000_?????_00000_1100100111_?????
-`define CVT_S_D 32'b1101000_?????_00000_0000110011_?????
-`define CVT_D_S 32'b1101000_?????_00000_1100110000_?????
+`define TRUNC_L_S 32'b1101000_00000_?????_0000100000_?????
+`define TRUNCU_L_S 32'b1101000_00000_?????_0000100001_?????
+`define TRUNC_W_S 32'b1101000_00000_?????_0000100010_?????
+`define TRUNCU_W_S 32'b1101000_00000_?????_0000100011_?????
+`define TRUNC_L_D 32'b1101000_00000_?????_1100100000_?????
+`define TRUNCU_L_D 32'b1101000_00000_?????_1100100001_?????
+`define TRUNC_W_D 32'b1101000_00000_?????_1100100010_?????
+`define TRUNCU_W_D 32'b1101000_00000_?????_1100100011_?????
+`define CVT_S_L 32'b1101000_00000_?????_0000100100_?????
+`define CVTU_S_L 32'b1101000_00000_?????_0000100101_?????
+`define CVT_S_W 32'b1101000_00000_?????_0000100110_?????
+`define CVTU_S_W 32'b1101000_00000_?????_0000100111_?????
+`define CVT_D_L 32'b1101000_00000_?????_1100100100_?????
+`define CVTU_D_L 32'b1101000_00000_?????_1100100101_?????
+`define CVT_D_W 32'b1101000_00000_?????_1100100110_?????
+`define CVTU_D_W 32'b1101000_00000_?????_1100100111_?????
+`define CVT_S_D 32'b1101000_00000_?????_0000110011_?????
+`define CVT_D_S 32'b1101000_00000_?????_1100110000_?????
`define C_EQ_S 32'b1101000_?????_?????_0001000001_?????
`define C_LT_S 32'b1101000_?????_?????_0001000010_?????
`define C_LE_S 32'b1101000_?????_?????_0001000011_?????
@@ -135,13 +135,13 @@
`define C_LE_D 32'b1101000_?????_?????_1101000011_?????
`define L_S 32'b1101001_?????_?????_000_????????????
`define L_D 32'b1101001_?????_?????_110_????????????
-`define S_S 32'b1101001_?????_?????_001_????????????
-`define S_D 32'b1101001_?????_?????_111_????????????
-`define MFF_S 32'b1101010_?????_00000_0000000000_?????
-`define MFF_D 32'b1101010_?????_00000_1100000000_?????
-`define MFFH_D 32'b1101010_?????_00000_1100100000_?????
-`define MTF_S 32'b1101010_?????_00000_0001000000_?????
-`define MTF_D 32'b1101010_?????_00000_1101000000_?????
+`define S_S 32'b1101001_00000_?????_001_????????????
+`define S_D 32'b1101001_00000_?????_111_????????????
+`define MFF_S 32'b1101010_00000_?????_0000000000_?????
+`define MFF_D 32'b1101010_00000_?????_1100000000_?????
+`define MFFH_D 32'b1101010_00000_?????_1100100000_?????
+`define MTF_S 32'b1101010_00000_?????_0001000000_?????
+`define MTF_D 32'b1101010_00000_?????_1101000000_?????
`define MTFLH_D 32'b1101010_?????_?????_1101100000_?????
`define MADD_S 32'b1101011_?????_?????_00000_?????_?????
`define MSUB_S 32'b1101011_?????_?????_00001_?????_?????