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
|
//rv64i-addiw
[wavedrom, ,svg]
....
{reg: [
{bits: 7, name: 'opcode', attr: 'OP-IMM', type: 8},
{bits: 5, name: 'rd', attr: 'dest', type: 2},
{bits: 3, name: 'func3', attr: ['SLLI', 'SRLI', 'SRAI'], type: 8},
{bits: 5, name: 'rs1', attr: 'src', type: 4},
{bits: 6, name: 'imm[5:0]', attr: 'shamt[5:0]', type: 3},
{bits: 6, name: 'imm[11:6]', attr: [0, 0, 32], type: 8}
]}
....
[wavedrom, ,svg]
....
{reg: [
{bits: 7, name: 'opcode', attr: 'OP-IMM-32', type: 8},
{bits: 5, name: 'rd', attr: 'dest', type: 2},
{bits: 3, name: 'func3', attr: ['SLLIW', 'SRLIW', 'SRAIW'], type: 8},
{bits: 5, name: 'rs1', attr: 'src', type: 4},
{bits: 5, name: 'imm[4:0]', attr: 'shamt[4:0]', type: 3},
{bits: 1, name: '[5]', attr: 0},
{bits: 6, name: 'imm[11:6]', attr: [0, 0, 32], type: 8}
]}
....
|