aboutsummaryrefslogtreecommitdiff
path: root/src/images/wavedrom/sp-load-store.adoc
blob: 192626b6ecdfef64c028d82a48f4b1f16e84199e (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
//## 12.5 Single-Precision Load and Store Instructions

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

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