Enum pl_io_port_num

Enum pl_io_port_num contains the list of available 8-bit general-purpose I/O (GPIO) ports. Use these constants when selecting the port with the io. object (see the io.portnum property).

Note that GPIO lines are unidirectional and require explicit configuration as outputs or inputs (see io.enabled).


On this platform, the 8-bit ports are virtual. The I/O lines of each port correspond to the available pins of each of the Size 3 Linux Tibbo Project PCB (LTPP3), Gen. 2's four tiles.


Enum pl_io_port_num includes the following constants:

Constant

0 — PL_IO_PORT_NUM_0

1 — PL_IO_PORT_NUM_1

2 — PL_IO_PORT_NUM_2

3 — PL_IO_PORT_NUM_3

Sockets

S1, S3

S5, S7

S9, S11

S13, S15

I/O Lines (L→R)

9, 8, 0, 16, 32, 33, 4, 20

11, 10, 1, 17, 34, 35, 5, 21

13, 12, 2, 18, 36, 37, 6, 22

15, 14, 3, 19, 38, 39, 7, 23


During reads (io.portget and io.portstate) and writes (io.portset and io.portstate), each of the selected port's eight lines is handled individually (from left to right). This results in a small rolling delay in the state writing and reading.