aboutsummaryrefslogtreecommitdiff
path: root/src/images/wavedrom/cr-registers-new.adoc
blob: 2bb23ebdc2ab8828183f3fe4162e373bfbe3cccb (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[wavedrom, ,svg]
....
### CR : Register
${wd({reg: [
  {bits: 2, name: 'op',     type: 8},
  {bits: 5, name: 'rs2',    type: 4},
  {bits: 5, name: 'rd / rs1', type: 7},
  {bits: 4, name: 'funct4', type: 8},

  {bits: 2, name: 'op',     type: 8},
  {bits: 5, name: 'imm',    type: 3},
  {bits: 5, name: 'rd / rs1', type: 7},
  {bits: 1, name: 'imm',    type: 3},
  {bits: 3, name: 'funct3', type: 8},

  {bits: 2, name: 'op',     type: 8},
  {bits: 5, name: 'rs2',    type: 4},
  {bits: 6, name: 'imm',    type: 3},
  {bits: 3, name: 'funct3', type: 8},

  {bits: 2, name: 'op',     type: 8},
  {bits: 3, name: 'rd′',    type: 2},
  {bits: 8, name: 'imm',    type: 3},
  {bits: 3, name: 'funct3', type: 8},

  {bits: 2, name: 'op',     type: 8},
  {bits: 3, name: 'rd′',    type: 2},
  {bits: 2, name: 'imm',    type: 3},
  {bits: 3, name: 'rs1′',   type: 4},
  {bits: 3, name: 'imm',    type: 3},
  {bits: 3, name: 'funct3', type: 8},

  {bits: 2, name: 'op',     type: 8},
  {bits: 3, name: 'rs2',   type: 4},
  {bits: 2, name: 'imm',    type: 3},
  {bits: 3, name: 'rs1',   type: 4},
  {bits: 3, name: 'imm',    type: 3},
  {bits: 3, name: 'funct3', type: 8},

  {bits: 2, name: 'op',     type: 8},
  {bits: 3, name: 'rs2′',   type: 4},
  {bits: 2, name: 'funct2', type: 8},
  {bits: 3, name: 'rd` / rs1′',   type: 7},
  {bits: 6, name: 'funct6', type: 8},

  {bits: 2, name: 'op',     type: 8},
  {bits: 5, name: 'offset', type: 3},
  {bits: 3, name: 'rd` / rs1′',   type: 7},
  {bits: 3, name: 'offset', type: 3},
  {bits: 3, name: 'funct3', type: 8},

  {bits: 2,  name: 'op',     type: 8},
  {bits: 11, name: 'jump target', type: 3},
  {bits: 3,  name: 'funct3', type: 8},
], config: {
  hflip: true,
  compact: true,
  bits: 16 * 9, lanes: 9,
  margin: {right: width / 4},
  label: {right: ['CR : Register', 'CI : Immediate', 'CSS : Stack-relative Store', 'CIW : Wide Immediate', 'CL : Load', 'CS : Store', 'CA : Arithmetic', 'CB : Branch/Arithmetic', 'CJ : Jump']}
}})}
....