aboutsummaryrefslogtreecommitdiff
path: root/src/images/wavedrom/load_store.adoc
blob: 9e810ecbb55afadbc3fd19341a36114f8a4bc11a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//## 2.6 Load and Store Instructions

[wavedrom, ,svg]
....
{reg: [
  {bits: 7,  name: 'opcode',    attr: 'LOAD', type: 8},
  {bits: 5,  name: 'rd', attr: 'dest', type: 2},
  {bits: 3,  name: 'func3', attr: 'width', type: 8},
  {bits: 5,  name: 'rs1', attr: 'base', type: 4},
  {bits: 12, name: 'imm[11:0]', attr: 'offset', type: 3},
]}
....

[wavedrom, ,svg]
....
{reg: [
  {bits: 7,  name: 'opcode',   attr: 'STORE', type: 8},
  {bits: 5,  name: 'imm[4:0]', attr: 'offset', type: 3},
  {bits: 3,  name: 'func3', attr: 'width', type: 8},
  {bits: 5,  name: 'rs1', attr: 'base', type: 4},
  {bits: 12, name: 'imm[11:0]', attr: 'offset', type: 3},
]}
....