1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
//# 10 "Zicsr", Control and Status Register (CSR) Instructions, Version 2.0
//## 10.1 CSR Instructions
[wavedrom, ,]
....
{reg: [
{bits: 7, name: 'opcode', attr: 'SYSTEM', type: 8},
{bits: 5, name: 'rd', attr: 'dest', type: 2},
{bits: 3, name: 'func3', attr: ['CSRRW', 'CSRRS', 'CSRRC'], type: 8},
{bits: 5, name: 'rs1', attr: 'source', type: 4},
{bits: 12, name: 'csr', attr: 'source/dest', type: 4},
]}
....
[wavedrom, ,svg]
....
{reg: [
{bits: 7, name: 'opcode', attr: 'SYSTEM', type: 8},
{bits: 5, name: 'rd', attr: 'dest', type: 2},
{bits: 3, name: 'func3', attr: ['CSRRWI', 'CSRRSI', 'CSRRCI'], type: 8},
{bits: 5, name: 'rs1', attr: 'uimm[4:0]', type: 3},
{bits: 12, name: 'csr', attr: 'source/dest', type: 4},
]}
....
|