-
Notifications
You must be signed in to change notification settings - Fork 0
/
examp_regs.json
93 lines (93 loc) · 3.08 KB
/
examp_regs.json
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"name": "examp_regs",
"desc": "Description of this example register map",
"long_desc": "This is the long description for this register map. As you can clearly see, this verbose description is much more wordy than the regular description, and it is allowed to span many lines. It is optional to add this, but highly recommended.",
"addr_width": 8,
"data_width": 32,
"reggie_version": "0.1.0",
"regs": [
{
"name": "reg0",
"desc": "This is an example of a RW register",
"long_desc": "This is the long description for this register. As you can clearly see, this verbose description is much more wordy than the regular description, and it is allowed to span many lines.",
"access": "RW",
"addr_offset": "0x0",
"fields": [
{
"name": "fld0",
"desc": "Description of fld0",
"bit_width": 1,
"bit_offset": 0,
"reset_value": "0x0",
"enums": [
{
"name": "on",
"value": "1"
},
{
"name": "off",
"value": "0"
}
]
},
{
"name": "fld1",
"desc": "Description of fld1",
"bit_width": 4,
"bit_offset": 8,
"reset_value": "0xA"
}
]
},
{
"name": "reg1_arr",
"desc": "This is an example of a RW register array",
"array_length": 2,
"access": "RW",
"addr_offset": "0x4",
"fields": [
{
"name": "fld0",
"bit_width": 2,
"bit_offset": 2
},
{
"name": "fld1",
"desc": "Description of fld1",
"bit_width": 8,
"bit_offset": 8,
"reset_value": "000"
}
]
},
{
"name": "reg2",
"desc": "This is an example of an RO register",
"access": "RO",
"addr_offset": "0b1100",
"fields": [
{
"name": "fld0",
"desc": "Description of fld0",
"bit_width": 32,
"bit_offset": 0
}
]
},
{
"name": "reg3",
"desc": "This is an example of a RWV register",
"access": "RWV",
"addr_offset": "0x68",
"fields": [
{
"name": "fld0",
"desc": "Description of fld0",
"bit_width": 24,
"bit_offset": 0,
"reset_value": "0x23_ABCD"
}
]
}
]
}