aboutsummaryrefslogtreecommitdiff
path: root/src/images/wavedrom/c-cj-format-ls.adoc
blob: 1ecbd356b52563ecead8e6ef3a62292a8d61d4bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//c-cj-format-ls

//[wavedrom, ,svg]
//....
//{reg: [
//	{bits: 2,  name: 'op', 		type: 4,  attr: ['2','CI','CI']},
//	{bits: 10, name: 'imm',		type: 2,  },
//	{bits: 4,  name: 'funct3' 	type: 4,  attr:['3','CJ','CJAL']},
//] config: {bits: 16}}
//....


[wavedrom, ,svg]
....
{reg: [
  {bits: 2, name: 'op',     type: 8, attr: ['2','C1','C1']},
  {bits: 11, name: 'imm',   type: 2, attr: ['11','offset[11|4|9:8|10|6|7|3:1|5]','offset[11|4|9:8|10|6|7|3:1|5]']},
  {bits: 3, name: 'funct3', type: 8, attr: ['3','C.J','C.JAL']},
], config: {bits: 16}}
....