1
2
3
4
5
6
7
8
9
10
11
12
13
|
//### Integer Register-Register Operations
[wavedrom, ,]
....
{reg: [
{bits: 7, name: 'opcode', attr: ['OP', 'OP', 'OP', 'OP'], type: 8},
{bits: 5, name: 'rd', attr: ['dest', 'dest', 'dest','dest'], type: 2},
{bits: 3, name: 'funct3', attr: ['ADD/SLT[U]', 'AND/OR/XOR', 'SLL/SRL', 'SUB/SRA'], type: 8},
{bits: 5, name: 'rs1', attr: ['src1', 'src1', 'src1', 'src1'], type: 4},
{bits: 5, name: 'rs2', attr: ['src2', 'src2', 'src2', 'src2'], type: 4},
{bits: 7, name: 'funct7', attr: [0, 0, 0, 32], type: 8}
]}
....
|