-
Notifications
You must be signed in to change notification settings - Fork 3
/
block_0.yml
181 lines (164 loc) · 10.5 KB
/
block_0.yml
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
register_blocks:
- name: block_0
byte_size: 256
registers:
- name: register_0
bit_fields:
- { name: bit_field_0, bit_assignment: { width: 4 }, type: rw , initial_value: 0, comment: this is register_0.bit_field_0 }
- { name: bit_field_1, bit_assignment: { width: 4 }, type: rw , initial_value: 0 }
- { name: bit_field_2, bit_assignment: { width: 1 }, type: rw , initial_value: 0 }
- { name: bit_field_3, bit_assignment: { width: 2 }, type: w1 , initial_value: 0 }
- { name: bit_field_4, bit_assignment: { width: 2 }, type: wrc , initial_value: 0 }
- { name: bit_field_5, bit_assignment: { width: 2 }, type: wrs , initial_value: 0 }
- { name: bit_field_6, bit_assignment: { width: 2 }, type: rowo, initial_value: 0 }
- name: register_1
bit_fields:
- <<:
- { bit_assignment: { lsb: 0, width: 1 }, type: rw, initial_value: 0 }
- labels:
- { name: foo, value: 0, comment: 'FOO value' }
- { name: bar, value: 1, comment: 'BAR value' }
- name: register_2
offset_address: 0x08
bit_fields:
- { name: bit_field_0, bit_assignment: { lsb: 0, width: 4 }, type: ro }
- { name: bit_field_1, bit_assignment: { lsb: 8, width: 8 }, type: rof , initial_value: 0xab }
- { name: bit_field_2, bit_assignment: { lsb: 16, width: 4 }, type: rohw, initial_value: 0 }
- { name: bit_field_3, bit_assignment: { lsb: 20, width: 4 }, type: rohw, initial_value: 0, reference: register_3.bit_field_3 }
- { name: bit_field_4, bit_assignment: { lsb: 24, width: 8 }, type: reserved }
- name: register_3
offset_address: 0x08
bit_fields:
- { name: bit_field_0, bit_assignment: { lsb: 0, width: 4 }, type: wo , initial_value: 0 }
- { name: bit_field_1, bit_assignment: { lsb: 4, width: 4 }, type: wo1, initial_value: 0 }
- { name: bit_field_2, bit_assignment: { lsb: 8, width: 4 }, type: w0trg }
- { name: bit_field_3, bit_assignment: { lsb: 16, width: 4 }, type: w1trg }
- name: register_4
offset_address: 0x0C
bit_fields:
- { name: bit_field_0, bit_assignment: { lsb: 0, width: 4 }, type: rc, initial_value: 0 }
- { name: bit_field_1, bit_assignment: { lsb: 8, width: 4 }, type: rc, initial_value: 0, reference: register_0.bit_field_0 }
- { name: bit_field_2, bit_assignment: { lsb: 12, width: 4 }, type: ro, reference: register_4.bit_field_1 }
- { name: bit_field_3, bit_assignment: { lsb: 16, width: 4 }, type: rs, initial_value: 0 }
- name: register_5
offset_address: 0x10
bit_fields:
- { name: bit_field_0 , bit_assignment: { lsb: 0, width: 2 }, type: rwc , initial_value: 0 }
- { name: bit_field_1 , bit_assignment: { lsb: 2, width: 2 }, type: rwc , initial_value: 0, reference: register_3.bit_field_2 }
- { name: bit_field_2 , bit_assignment: { lsb: 4, width: 2 }, type: rws , initial_value: 0 }
- { name: bit_field_3 , bit_assignment: { lsb: 6, width: 2 }, type: rws , initial_value: 0, reference: register_3.bit_field_2 }
- { name: bit_field_4 , bit_assignment: { lsb: 8, width: 2 }, type: rwhw, initial_value: 0 }
- { name: bit_field_5 , bit_assignment: { lsb: 10, width: 2 }, type: rwhw, initial_value: 0, reference: register_3.bit_field_3 }
- { name: bit_field_6 , bit_assignment: { lsb: 12, width: 2 }, type: rwe , initial_value: 0 }
- { name: bit_field_7 , bit_assignment: { lsb: 14, width: 2 }, type: rwe , initial_value: 0, reference: register_0.bit_field_2 }
- { name: bit_field_8 , bit_assignment: { lsb: 16, width: 2 }, type: rwe , initial_value: 0, reference: register_1 }
- { name: bit_field_9 , bit_assignment: { lsb: 20, width: 2 }, type: rwl , initial_value: 0 }
- { name: bit_field_10, bit_assignment: { lsb: 22, width: 2 }, type: rwl , initial_value: 0, reference: register_0.bit_field_2 }
- { name: bit_field_11, bit_assignment: { lsb: 24, width: 2 }, type: rwl , initial_value: 0, reference: register_1 }
- name: register_6
offset_address: 0x14
bit_fields:
- { name: bit_field_0, bit_assignment: { lsb: 0, width: 4 }, type: w0c, initial_value: 0 }
- { name: bit_field_1, bit_assignment: { lsb: 4, width: 4 }, type: w0c, initial_value: 0, reference: register_0.bit_field_0 }
- { name: bit_field_2, bit_assignment: { lsb: 8, width: 4 }, type: ro , reference: register_6.bit_field_1 }
- { name: bit_field_3, bit_assignment: { lsb: 12, width: 4 }, type: w1c, initial_value: 0 }
- { name: bit_field_4, bit_assignment: { lsb: 16, width: 4 }, type: w1c, initial_value: 0, reference: register_0.bit_field_0 }
- { name: bit_field_5, bit_assignment: { lsb: 20, width: 4 }, type: ro , reference: register_6.bit_field_4 }
- { name: bit_field_6, bit_assignment: { lsb: 24, width: 4 }, type: w0s, initial_value: 0 }
- { name: bit_field_7, bit_assignment: { lsb: 28, width: 4 }, type: w1s, initial_value: 0 }
- { name: bit_field_8, bit_assignment: { lsb: 32, width: 4 }, type: w0t, initial_value: 0 }
- { name: bit_field_9, bit_assignment: { lsb: 36, width: 4 }, type: w1t, initial_value: 0 }
- name: register_7
offset_address: 0x1C
bit_fields:
- { name: bit_field_0, bit_assignment: { lsb: 0, width: 4 }, type: w0crs, initial_value: 0 }
- { name: bit_field_1, bit_assignment: { lsb: 8, width: 4 }, type: w1crs, initial_value: 0 }
- { name: bit_field_2, bit_assignment: { lsb: 16, width: 4 }, type: w0src, initial_value: 0 }
- { name: bit_field_3, bit_assignment: { lsb: 24, width: 4 }, type: w1src, initial_value: 0 }
- name: register_8
offset_address: 0x20
bit_fields:
- { name: bit_field_0, bit_assignment: { lsb: 0, width: 4 }, type: wc , initial_value: 0 }
- { name: bit_field_1, bit_assignment: { lsb: 8, width: 4 }, type: ws , initial_value: 0 }
- { name: bit_field_2, bit_assignment: { lsb: 16, width: 4 }, type: woc , initial_value: 0 }
- { name: bit_field_3, bit_assignment: { lsb: 24, width: 4 }, type: wos , initial_value: 0 }
- { name: bit_field_4, bit_assignment: { lsb: 32, width: 4 }, type: wcrs, initial_value: 0 }
- { name: bit_field_5, bit_assignment: { lsb: 40, width: 4 }, type: wsrc, initial_value: 0 }
- name: register_9
offset_address: 0x28
bit_fields:
- { name: bit_field_0, bit_assignment: { lsb: 0, width: 2 }, type: rwtrg , initial_value: 0 }
- { name: bit_field_1, bit_assignment: { lsb: 2, width: 2 }, type: rotrg }
- { name: bit_field_2, bit_assignment: { lsb: 4, width: 2 }, type: wotrg , initial_value: 0 }
- { name: bit_field_3, bit_assignment: { lsb: 6, width: 2 }, type: rowotrg, initial_value: 0 }
- { name: bit_field_4, bit_assignment: { lsb: 8, width: 2 }, type: row0trg }
- { name: bit_field_5, bit_assignment: { lsb: 10, width: 2 }, type: row1trg }
- name: register_10
offset_address: 0x30
size: [4, step: 8]
bit_fields:
- <<:
# bit assignments: [1:0] [ 9: 8] [17:16] [25:24]
- { name: bit_field_0, bit_assignment: { lsb: 0, width: 2, sequence_size: 4, step: 8 }, type: rw }
- initial_value: 0
- <<:
# bit assignments: [3:2] [11:10] [19:18] [27:26]
- { name: bit_field_1, bit_assignment: { lsb: 2, width: 2, sequence_size: 4, step: 8 }, type: rw }
- initial_value: { default: 0 }
- <<:
# bit assignments: [5:4] [13:12] [21:20] [29:28]
- { name: bit_field_2, bit_assignment: { lsb: 4, width: 2, sequence_size: 4, step: 8 }, type: rw }
- initial_value: [0, 1, 2, 3]
- name: register_11
offset_address: 0x50
size: [2, 4]
type: [indirect, register_0.bit_field_0, register_0.bit_field_1, [register_0.bit_field_2, 0]]
bit_fields:
- # bit assignments: [ 7:0] [23:16] [39:32] [55:48]
{ name: bit_field_0, bit_assignment: { lsb: 0, width: 8, sequence_size: 4, step: 16 }, type: rw, initial_value: 0 }
- # bit assignments: [15:8] [31:24] [47:40] [63:56]
{ name: bit_field_1, bit_assignment: { lsb: 8, width: 8, sequence_size: 4, step: 16 }, type: rw, initial_value: 0 }
- name: register_12
offset_address: 0x50
type: [indirect, [register_0.bit_field_2, 1]]
bit_fields:
- { name: bit_field_0, bit_assignment: { lsb: 0, width: 1}, type: rw, initial_value: 0 }
- { name: bit_field_1, bit_assignment: { lsb: 32, width: 1}, type: rw, initial_value: 0 }
- name: register_13
offset_address: 0x60
bit_fields:
- # same with RW bit field type
{ name: bit_field_0, bit_assignment: { width: 2 }, initial_value: 0, type: [custom ] }
- # same with RO bit filed type
{ name: bit_field_1, bit_assignment: { width: 2 }, type: [custom, sw_write: none ] }
- # same with W1 bit field type
{ name: bit_field_2, bit_assignment: { width: 2 }, initial_value: 0, type: [custom, sw_write_once: true ] }
- # same with RWTRG bit field type
{ name: bit_field_3, bit_assignment: { width: 2 }, initial_value: 0, type: [custom, write_trigger: true, read_trigger: true] }
- # same with W1SRC bit field type
{ name: bit_field_4, bit_assignment: { width: 2 }, initial_value: 0, type: [custom, sw_write: set_1 , sw_read: clear ] }
- # same with W1CRS bit field type
{ name: bit_field_5, bit_assignment: { width: 2 }, initial_value: 0, type: [custom, sw_write: clear_1, sw_read: set ] }
- # same with W1S bit field type
{ name: bit_field_6, bit_assignment: { width: 2 }, initial_value: 0, type: [custom, sw_write: set_1 , hw_clear: true ] }
- # same with W1C bit field type
{ name: bit_field_7, bit_assignment: { width: 2 }, initial_value: 0, type: [custom, sw_write: clear_1, hw_set: true ] }
- # RW bit field with HW write
{ name: bit_field_8, bit_assignment: { width: 2 }, initial_value: 0, type: [custom, hw_write: true ] }
- name: register_14
offset_address: 0x70
type: rw
bit_fields:
- { name: bit_field_0, bit_assignment: { width: 1 }, type: ro }
- name: register_15
offset_address: 0x74
type: rw
bit_fields:
- { name: bit_field_0, bit_assignment: { width: 1 }, type: wo, initial_value: 0 }
- name: register_16
offset_address: 0x78
type: reserved
- name: register_17
offset_address: 0x80
size: 32
type: external