aboutsummaryrefslogtreecommitdiff
path: root/inst.v
blob: 681e39bef5ab7a46834ee9f821824750f7fdb142 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
/* Automatically generated by parse-opcodes */
`define J          32'b?????????????????????????1101011
`define JAL        32'b?????????????????????????1101111
`define JALR       32'b??????????????????????0001100111
`define BEQ        32'b??????????????????????0001100011
`define BNE        32'b??????????????????????0011100011
`define BLT        32'b??????????????????????1001100011
`define BGE        32'b??????????????????????1011100011
`define BLTU       32'b??????????????????????1101100011
`define BGEU       32'b??????????????????????1111100011
`define LUI        32'b?????????????????????????0110111
`define AUIPC      32'b?????????????????????????0010111
`define ADDI       32'b??????????????????????0000010011
`define SLLI       32'b??????????000000??????0010010011
`define SLTI       32'b??????????????????????0100010011
`define SLTIU      32'b??????????????????????0110010011
`define XORI       32'b??????????????????????1000010011
`define SRLI       32'b??????????000000??????1010010011
`define SRAI       32'b??????????000001??????1010010011
`define ORI        32'b??????????????????????1100010011
`define ANDI       32'b??????????????????????1110010011
`define ADD        32'b???????????????00000000000110011
`define SUB        32'b???????????????10000000000110011
`define SLL        32'b???????????????00000000010110011
`define SLT        32'b???????????????00000000100110011
`define SLTU       32'b???????????????00000000110110011
`define XOR        32'b???????????????00000001000110011
`define SRL        32'b???????????????00000001010110011
`define SRA        32'b???????????????10000001010110011
`define OR         32'b???????????????00000001100110011
`define AND        32'b???????????????00000001110110011
`define MUL        32'b???????????????00000010000110011
`define MULH       32'b???????????????00000010010110011
`define MULHSU     32'b???????????????00000010100110011
`define MULHU      32'b???????????????00000010110110011
`define DIV        32'b???????????????00000011000110011
`define DIVU       32'b???????????????00000011010110011
`define REM        32'b???????????????00000011100110011
`define REMU       32'b???????????????00000011110110011
`define ADDIW      32'b??????????????????????0000011011
`define SLLIW      32'b??????????0000000?????0010011011
`define SRLIW      32'b??????????0000000?????1010011011
`define SRAIW      32'b??????????0000010?????1010011011
`define ADDW       32'b???????????????00000000000111011
`define SUBW       32'b???????????????10000000000111011
`define SLLW       32'b???????????????00000000010111011
`define SRLW       32'b???????????????00000001010111011
`define SRAW       32'b???????????????10000001010111011
`define MULW       32'b???????????????00000010000111011
`define DIVW       32'b???????????????00000011000111011
`define DIVUW      32'b???????????????00000011010111011
`define REMW       32'b???????????????00000011100111011
`define REMUW      32'b???????????????00000011110111011
`define LB         32'b??????????????????????0000000011
`define LH         32'b??????????????????????0010000011
`define LW         32'b??????????????????????0100000011
`define LD         32'b??????????????????????0110000011
`define LBU        32'b??????????????????????1000000011
`define LHU        32'b??????????????????????1010000011
`define LWU        32'b??????????????????????1100000011
`define SB         32'b??????????????????????0000100011
`define SH         32'b??????????????????????0010100011
`define SW         32'b??????????????????????0100100011
`define SD         32'b??????????????????????0110100011
`define AMOADD_W   32'b???????????????00000000100101011
`define AMOSWAP_W  32'b???????????????00000010100101011
`define AMOAND_W   32'b???????????????00000100100101011
`define AMOOR_W    32'b???????????????00000110100101011
`define AMOMIN_W   32'b???????????????00001000100101011
`define AMOMAX_W   32'b???????????????00001010100101011
`define AMOMINU_W  32'b???????????????00001100100101011
`define AMOMAXU_W  32'b???????????????00001110100101011
`define AMOADD_D   32'b???????????????00000000110101011
`define AMOSWAP_D  32'b???????????????00000010110101011
`define AMOAND_D   32'b???????????????00000100110101011
`define AMOOR_D    32'b???????????????00000110110101011
`define AMOMIN_D   32'b???????????????00001000110101011
`define AMOMAX_D   32'b???????????????00001010110101011
`define AMOMINU_D  32'b???????????????00001100110101011
`define AMOMAXU_D  32'b???????????????00001110110101011
`define LR_W       32'b??????????0000010000000100101011
`define LR_D       32'b??????????0000010000000110101011
`define SC_W       32'b???????????????10000010100101011
`define SC_D       32'b???????????????10000010110101011
`define FENCE_I    32'b??????????????????????0010101111
`define FENCE      32'b??????????????????????0100101111
`define FENCE_V_L  32'b??????????????????????1000101111
`define FENCE_V_G  32'b??????????????????????1010101111
`define SYSCALL    32'b00000000000000000000000001110111
`define BREAK      32'b00000000000000000000000011110111
`define RDCYCLE    32'b?????000000000000000001001110111
`define RDTIME     32'b?????000000000000000011001110111
`define RDINSTRET  32'b?????000000000000000101001110111
`define MTPCR      32'b???????????????00000000001110011
`define MFPCR      32'b??????????0000000000000011110011
`define SETPCR     32'b??????????????????????0101110011
`define CLEARPCR   32'b??????????????????????0111110011
`define ERET       32'b00000000000000000000001001110011
`define FADD_S     32'b???????????????00000???001010011
`define FSUB_S     32'b???????????????00001???001010011
`define FMUL_S     32'b???????????????00010???001010011
`define FDIV_S     32'b???????????????00011???001010011
`define FSQRT_S    32'b??????????0000000100???001010011
`define FSGNJ_S    32'b???????????????00101000001010011
`define FSGNJN_S   32'b???????????????00110000001010011
`define FSGNJX_S   32'b???????????????00111000001010011
`define FADD_D     32'b???????????????00000???011010011
`define FSUB_D     32'b???????????????00001???011010011
`define FMUL_D     32'b???????????????00010???011010011
`define FDIV_D     32'b???????????????00011???011010011
`define FSQRT_D    32'b??????????0000000100???011010011
`define FSGNJ_D    32'b???????????????00101000011010011
`define FSGNJN_D   32'b???????????????00110000011010011
`define FSGNJX_D   32'b???????????????00111000011010011
`define FCVT_L_S   32'b??????????0000001000???001010011
`define FCVT_LU_S  32'b??????????0000001001???001010011
`define FCVT_W_S   32'b??????????0000001010???001010011
`define FCVT_WU_S  32'b??????????0000001011???001010011
`define FCVT_L_D   32'b??????????0000001000???011010011
`define FCVT_LU_D  32'b??????????0000001001???011010011
`define FCVT_W_D   32'b??????????0000001010???011010011
`define FCVT_WU_D  32'b??????????0000001011???011010011
`define FCVT_S_L   32'b??????????0000001100???001010011
`define FCVT_S_LU  32'b??????????0000001101???001010011
`define FCVT_S_W   32'b??????????0000001110???001010011
`define FCVT_S_WU  32'b??????????0000001111???001010011
`define FCVT_D_L   32'b??????????0000001100???011010011
`define FCVT_D_LU  32'b??????????0000001101???011010011
`define FCVT_D_W   32'b??????????0000001110???011010011
`define FCVT_D_WU  32'b??????????0000001111???011010011
`define FCVT_S_D   32'b??????????0000010001???001010011
`define FCVT_D_S   32'b??????????0000010000???011010011
`define FEQ_S      32'b???????????????10101000001010011
`define FLT_S      32'b???????????????10110000001010011
`define FLE_S      32'b???????????????10111000001010011
`define FEQ_D      32'b???????????????10101000011010011
`define FLT_D      32'b???????????????10110000011010011
`define FLE_D      32'b???????????????10111000011010011
`define FMIN_S     32'b???????????????11000000001010011
`define FMAX_S     32'b???????????????11001000001010011
`define FMIN_D     32'b???????????????11000000011010011
`define FMAX_D     32'b???????????????11001000011010011
`define FMV_X_S    32'b??????????0000011100000001010011
`define FMV_X_D    32'b??????????0000011100000011010011
`define MFFSR      32'b?????000000000011101000001010011
`define FMV_S_X    32'b??????????0000011110000001010011
`define FMV_D_X    32'b??????????0000011110000011010011
`define MTFSR      32'b??????????0000011111000001010011
`define FLW        32'b??????????????????????0100000111
`define FLD        32'b??????????????????????0110000111
`define FSW        32'b??????????????????????0100100111
`define FSD        32'b??????????????????????0110100111
`define FMADD_S    32'b???????????????????????001000011
`define FMSUB_S    32'b???????????????????????001000111
`define FNMSUB_S   32'b???????????????????????001001011
`define FNMADD_S   32'b???????????????????????001001111
`define FMADD_D    32'b???????????????????????011000011
`define FMSUB_D    32'b???????????????????????011000111
`define FNMSUB_D   32'b???????????????????????011001011
`define FNMADD_D   32'b???????????????????????011001111