-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEF_GPIO8.yaml
343 lines (332 loc) · 7.81 KB
/
EF_GPIO8.yaml
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
---
info:
name: EF_GPIO8
description: |
A generic 8-bit General Purpose I/O (GPIO) Peripheral with the following features
- Eight bidirectional pins.
- Input synchronizers
- Input edge detectors.
- Direction control.
- Edge and Level Interrupts generation per pin.
- Wrappers for AHB-Lite, APB and WB buses.
repo: github.com/efabless/EF_GPIO8
owner: Efabless Corp.
license: APACHE 2.0
author: Efabless Corp.
email: [email protected]
version: v1.1.0
date: 2025-01-23
category: digital
tags:
- peripheral
- GPIO
bus:
- generic
type: soft
status: verified
cell_count:
- IP: 72
- APB: 476
- AHBL: 493
- WB: 574
width: "0.0"
height: "0.0"
technology: n/a
clock_freq_mhz:
- IP: 1666
- APB: 1250
- AHBL: 294
- WB: 588
digital_supply_voltage: n/a
analog_supply_voltage: n/a
irq_reg_offset: 0xFF00
fifo_reg_offset: 0xFE00
firmware_guidelines: |
1. Write to the direction register the direction of the GPIOs where 1 means gpio is output and 0 gpio is input
2. To drive a gpio pin, write to the ``DATAO`` register
3. To read the value of a gpio pin , read from the ``DATAI`` register
ports:
- name: bus_in
width: 8
direction: output
description: Synchronized GPIOs input connected to the bus (it drives the DATAI register)
- name: bus_out
width: 8
direction: input
description: GPIOs output connected to the bus (it's driven by writing to DATAO register)
- name: bus_oe
width: 8
direction: input
description: GPIOs output enable connected to the bus (it's driven by writing to DIR register)
- name: pin0_hi
width: 1
direction: output
description: Pin 0 high flag
- name: pin1_hi
width: 1
direction: output
description: Pin 1 high flag
- name: pin2_hi
width: 1
direction: output
description: Pin 2 high flag
- name: pin3_hi
width: 1
direction: output
description: Pin 3 high flag
- name: pin4_hi
width: 1
direction: output
description: Pin 4 high flag
- name: pin5_hi
width: 1
direction: output
description: Pin 5 high flag
- name: pin6_hi
width: 1
direction: output
description: Pin 6 high flag
- name: pin7_hi
width: 1
direction: output
description: Pin 7 high flag
- name: pin0_lo
width: 1
direction: output
description: Pin 0 low flag
- name: pin1_lo
width: 1
direction: output
description: Pin 1 low flag
- name: pin2_lo
width: 1
direction: output
description: Pin 2 low flag
- name: pin3_lo
width: 1
direction: output
description: Pin 3 low flag
- name: pin4_lo
width: 1
direction: output
description: Pin 4 low flag
- name: pin5_lo
width: 1
direction: output
description: Pin 5 low flag
- name: pin6_lo
width: 1
direction: output
description: Pin 6 low flag
- name: pin7_lo
width: 1
direction: output
description: Pin 7 low flag
- name: pin0_pe
width: 1
direction: output
description: Pin 0 positive edge flag
- name: pin1_pe
width: 1
direction: output
description: Pin 1 positive edge flag
- name: pin2_pe
width: 1
direction: output
description: Pin 2 positive edge flag
- name: pin3_pe
width: 1
direction: output
description: Pin 3 positive edge flag
- name: pin4_pe
width: 1
direction: output
description: Pin 4 positive edge flag
- name: pin5_pe
width: 1
direction: output
description: Pin 5 positive edge flag
- name: pin6_pe
width: 1
direction: output
description: Pin 6 positive edge flag
- name: pin7_pe
width: 1
direction: output
description: Pin 7 positive edge flag
- name: pin0_ne
width: 1
direction: output
description: Pin 0 negative edge flag
- name: pin1_ne
width: 1
direction: output
description: Pin 1 negative edge flag
- name: pin2_ne
width: 1
direction: output
description: Pin 2 negative edge flag
- name: pin3_ne
width: 1
direction: output
description: Pin 3 negative edge flag
- name: pin4_ne
width: 1
direction: output
description: Pin 4 negative edge flag
- name: pin5_ne
width: 1
direction: output
description: Pin 5 negative edge flag
- name: pin6_ne
width: 1
direction: output
description: Pin 6 negative edge flag
- name: pin7_ne
width: 1
direction: output
description: Pin 7 negative edge flag
external_interface:
- name: io_in
port: io_in
direction: input
width: 8
description: GPIOs input
- name: io_out
port: io_out
direction: output
width: 8
description: GPIOs output
- name: io_oe
port: io_oe
direction: output
width: 8
description : GPIOs output enable
clock:
name: clk
gated: "yes"
reset:
name: rst_n
level: 0
registers:
- name: DATAI
size: 8
mode: r
fifo: no
offset: 0
bit_access: no
read_port: bus_in
description: Data In Register; Reading from this register returns the pins status (8 pins); one bit per pin
- name: DATAO
size: 8
mode: w
fifo: no
offset: 4
bit_access: no
write_port: bus_out
description: Data Out Register; Writing to this register change the status of the port pins (8 pins); one bit per pin
- name: DIR
size: 8
mode: w
fifo: no
offset: 8
bit_access: no
write_port: bus_oe
description: "Direction Register; One bit per pin 1: output, 0: input"
flags:
- name: P0HI
port: pin0_hi
description: Pin 0 is high
- name: P1HI
port: pin1_hi
description: Pin 1 is high
- name: P2HI
port: pin2_hi
description: Pin 2 is high
- name: P3HI
port: pin3_hi
description: Pin 3 is high
- name: P4HI
port: pin4_hi
description: Pin 4 is high
- name: P5HI
port: pin5_hi
description: Pin 5 is high
- name: P6HI
port: pin6_hi
description: Pin 6 is high
- name: P7HI
port: pin7_hi
description: Pin 7 is high
- name: P0LO
port: pin0_lo
description: Pin 0 is low
- name: P1LO
port: pin1_lo
description: Pin 1 is low
- name: P2LO
port: pin2_lo
description: Pin 2 is low
- name: P3LO
port: pin3_lo
description: Pin 3 is low
- name: P4LO
port: pin4_lo
description: Pin 4 is low
- name: P5LO
port: pin5_lo
description: Pin 5 is low
- name: P6LO
port: pin6_lo
description: Pin 6 is low
- name: P7LO
port: pin7_lo
description: Pin 7 is low
- name: P0PE
port: pin0_pe
description: Pin 0 has observed a rising edge
- name: P1PE
port: pin1_pe
description: Pin 1 has observed a rising edge
- name: P2PE
port: pin2_pe
description: Pin 2 has observed a rising edge
- name: P3PE
port: pin3_pe
description: Pin 3 has observed a rising edge
- name: P4PE
port: pin4_pe
description: Pin 4 has observed a rising edge
- name: P5PE
port: pin5_pe
description: Pin 5 has observed a rising edge
- name: P6PE
port: pin6_pe
description: Pin 6 has observed a rising edge
- name: P7PE
port: pin7_pe
description: Pin 7 has observed a rising edge
- name: P0NE
port: pin0_ne
description: Pin 0 has observed a falling edge
- name: P1NE
port: pin1_ne
description: Pin 1 has observed a falling edge
- name: P2NE
port: pin2_ne
description: Pin 2 has observed a falling edge
- name: P3NE
port: pin3_ne
description: Pin 3 has observed a falling edge
- name: P4NE
port: pin4_ne
description: Pin 4 has observed a falling edge
- name: P5NE
port: pin5_ne
description: Pin 5 has observed a falling edge
- name: P6NE
port: pin6_ne
description: Pin 6 has observed a falling edge
- name: P7NE
port: pin7_ne
description: Pin 7 has observed a falling edge