gen_helper¶
Helper functions for FPGA fabric generation.
This module provides utility functions that assist in various aspects of FPGA fabric generation, including switch matrix bootstrapping, signal ordering, and file generation utilities. These functions support the main fabric generation workflow by providing common operations needed across multiple generation stages.
Functions¶
|
Export a CSV switch matrix description into its equivalent list representation. |
|
Generate a blank switch matrix CSV file for the given tile. |
|
Export a list file into its equivalent CSV switch matrix representation. |
Module Contents¶
- CSV2list(InFileName, OutFileName)[source]¶
Export a CSV switch matrix description into its equivalent list representation.
- bootstrapSwitchMatrix(tile, outputDir)[source]¶
Generate a blank switch matrix CSV file for the given tile.
The top left corner will contain the name of the tile. Columns are the source signals and rows are the destination signals.
The order of the signal will be: - standard wire - BEL signal with prefix - GEN_IO signals with prefix - jump wire
The order is important as this order will be used during switch matrix generation.
- Parameters:
tile (Tile) – The tile to generate the switch matrix for
outputDir (Path) – The output directory to write the switch matrix to
- Return type:
None
- list2CSV(InFileName, OutFileName)[source]¶
Export a list file into its equivalent CSV switch matrix representation.
A comment will be appended to the end of the column and row of the matrix, which will indicate the number of signals in a given row.
- Parameters:
InFileName (Path) – The input file name of the list file
OutFileName (Path) – The directory of the CSV file to be written
- Return type:
None