FABulous.geometry_generator.geometry_gen

Classes for geometry generation.

Classes

class GeometryGenerator(fabric)[source]

Class to handle the generation of the geometry for a fabric.

Parameters:

fabric (Fabric) – The fabric object passed from the CSV definition files

fabric[source]

The fabric object passed from the CSV definition files

Type:

Fabric

fabricGeometry[source]

The generated geometry object

Type:

FabricGeometry | None, optional

Methods:

generateGeometry(padding=8)[source]

Start the geometry generation for the given fabric.

Creates a FabricGeometry object that contains the complete geometric layout of the fabric including all tiles, switch matrices, BELs, and interconnect wiring.

Parameters:

padding (int, optional) – Padding used throughout the geometry, by default 8

Return type:

None

saveToCSV(fileName)[source]

Save the generated geometry into a file specified by the given file name.

Exports the complete fabric geometry data to a CSV file that can be imported into FABulator for visualization and analysis.

Parameters:

fileName (str) – The name of the CSV file to create

Return type:

None