gen_io¶
Generated I/O definition module.
This module contains the Gen_IO class which represents generated I/O ports for FPGA fabric tiles. These are automatically generated I/O interfaces that connect fabric internals to external pins.
Classes¶
|
Store information about a generated IO port (GEN_IO). |
Module Contents¶
Gen_IO¶
- Gen_IO :module:
Store information about a generated IO port (GEN_IO).
The information are parsed from the GEN_IO definitions in the tile CSV file.
- ivar prefix:
The prefix of the GEN_IO given in the CSV file.
- vartype prefix:
str
- ivar pins:
Number of IOs.
- vartype pins:
int
- ivar IO:
Direction of the IOs, either INPUT or OUTPUT, seen from the fabric side. This means a fabric INPUT is an OUTPUT globally and vice versa.
- vartype IO:
IO
- ivar configBit:
The number of accessible config bits for config access GEN_IO.
- vartype configBit:
int
- ivar configAccess:
Whether the GEN_IO is config access. Routes access to config bits, directly to TOP. This GEN_IOs are not connected to the switchmatrix, Can only be used as an OUTPUT.
- vartype configAccess:
bool
- ivar inverted:
GEN_IO will be inverted.
- vartype inverted:
bool
- ivar clocked:
Adds a register to GEN_IO.
- vartype clocked:
bool
- ivar clockedComb:
Creates two signals for every GEN_IO. <prefix><Number>_Q: The clocked signal. <prefix><Number>: The original combinatorial signal. If the GEN_IO is an INPUT, then there will be created two signals to the top, <prefix><Number>_Q_top is the clocked input signal and <prefix><Number>_top is the combinatorial input signal. If the GEN_IO is an OUTPUT, then there will be two signals connected to the switch matrix, <prefix><Number>_Q is the clocked output signal and <prefix><Number> is the combinatorial output signal.
- vartype clockedComb:
bool
- ivar clockedMux:
GEN_IO will be multiplexed between the combinatorial and clocked signal. The multiplexer can be switched via config bits.
- vartype clockedMux:
bool