geometry_gen

Classes for geometry generation.

Classes

GeometryGenerator

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

Module Contents

GeometryGenerator

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

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

  • fabricGeometry (FabricGeometry | None, optional) – The generated geometry object

Methods

generateGeometry(padding=8) None[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

saveToCSV(fileName) None[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