FABulous.fabric_cad.gen_npnr_model#

Nextpnr model generation for FABulous FPGA fabrics.

This module provides functionality to generate nextpnr models from FABulous fabric definitions. The nextpnr model includes detailed descriptions of programmable interconnect points (PIPs), basic elements of logic (BELs), and routing resources needed for place-and-route operations.

The generated models enable nextpnr to understand the fabric architecture and perform placement and routing for user designs.

Classes#

Functions#

genNextpnrModel(fabric)[source]#
Parameters:

fabric (Fabric)

Return type:

tuple[str, str, str, str]

Generate the fabric’s nextpnr model.

param fabric:

Fabric object containing tile information.

type fabric:

Fabric

returns:
  • pipStr: A string with tile-internal and tile-external pip descriptions.

  • belStr: A string with old style BEL definitions.

  • belv2Str: A string with new style BEL definitions.

  • constrainStr: A string with constraint definitions.

rtype:

Tuple[str, str, str, str]

raises ValueError:

If matrixDir of a tile is not ‘.csv’ or ‘.list’ file.