OpenCores
URL https://opencores.org/ocsvn/neorv32/neorv32/trunk

Subversion Repositories neorv32

[/] [neorv32/] [trunk/] [docs/] [datasheet/] [soc_gpio.adoc] - Blame information for rev 64

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 60 zero_gravi
<<<
2
:sectnums:
3
==== General Purpose Input and Output Port (GPIO)
4
 
5
[cols="<3,<3,<4"]
6
[frame="topbot",grid="none"]
7
|=======================
8
| Hardware source file(s): | neorv32_gpio.vhd |
9
| Software driver file(s): | neorv32_gpio.c |
10
|                          | neorv32_gpio.h |
11 61 zero_gravi
| Top entity port:         | `gpio_o` | 64-bit parallel output port
12
|                          | `gpio_i` | 64-bit parallel input port
13 60 zero_gravi
| Configuration generics:  | _IO_GPIO_EN_ | implement GPIO port when _true_
14 61 zero_gravi
| CPU interrupts:          | none |
15 60 zero_gravi
|=======================
16
 
17
**Theory of Operation**
18
 
19 61 zero_gravi
The general purpose parallel IO port unit provides a simple 64-bit parallel input port and a 64-bit parallel
20 60 zero_gravi
output port. These ports can be used chip-externally (for example to drive status LEDs, connect buttons, etc.)
21 61 zero_gravi
or system-internally to provide control signals for other IP modules. The component is disabled for
22
implementation when the _IO_GPIO_EN_ generic is set _false_. In this case GPIO output port is tied to all-zero.
23 60 zero_gravi
 
24 61 zero_gravi
.Access atomicity
25
[NOTE]
26
The GPIO modules uses two memory-mapped registers (each 32-bit) each for accessing the input and
27
output signals. Since the CPU can only process 32-bit "at once" updating the entire output cannot
28
be performed within a single clock cycle.
29 60 zero_gravi
 
30 64 zero_gravi
.GPIO unit register map (`struct NEORV32_GPIO`)
31 60 zero_gravi
[cols="<2,<2,^1,^1,<6"]
32
[options="header",grid="rows"]
33
|=======================
34 61 zero_gravi
| Address      | Name [C]         | Bit(s) | R/W | Function
35 64 zero_gravi
| `0xffffffc0` | `NEORV32_GPIO.INPUT_LO`  | 31:0   | r/- | parallel input port pins 31:0 (write accesses are ignored)
36
| `0xffffffc4` | `NEORV32_GPIO.INPUT_HI`  | 31:0   | r/- | parallel input port pins 63:32 (write accesses are ignored)
37
| `0xffffffc8` | `NEORV32_GPIO.OUTPUT_LO` | 31:0   | r/w | parallel output port pins 31:0
38
| `0xffffffcc` | `NEORV32_GPIO.OUTPUT_HI` | 31:0   | r/w | parallel output port pins 63:32
39 60 zero_gravi
|=======================

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.