cmd_setup

Setup and project-management commands for the FABulous REPL.

Install tooling, load a fabric, and clone tiles.

Classes

SetupCommandSet

Install tooling, load a fabric, and clone tiles.

Module Contents

SetupCommandSet

class SetupCommandSet[source]

Bases: ReplCommandSet

Install tooling, load a fabric, and clone tiles.

Private reference to the CLI instance in which this CommandSet running.

This will be set when the CommandSet is registered and it should be accessed by child classes using the self._cmd property.

Methods

do_clone_tile(src_tile, dst_tile, no_register=False) None[source]

Clone a tile or supertile directory and register it in fabric.csv.

Copies the source tile directory to a new destination directory, renaming all files and replacing all internal references to match the new tile name. Also appends the required Tile/Supertile entries to fabric.csv.

Notes

Only works correctly for tiles that follow the default FABulous tile naming scheme, where the tile name is used as a prefix for all files and internal references (e.g. LUT4AB.csv, LUT4AB_switch_matrix.list).

do_csv_to_list(input, output, preserve_list_order=False) None[source]

Convert a .csv switch matrix file to .list.

do_install_FABulator(destination_folder=None) None[source]

Download and install the latest version of FABulator.

Sets the the FABULATOR_ROOT environment variable in the .env file.

do_install_oss_cad_suite(destination_folder=None, update=False) None[source]

Download and extract the latest OSS CAD suite.

The installation will set the FAB_OSS_CAD_SUITE environment variable in the .env file.

do_list_to_csv(input, output, preserve_list_order=False) None[source]

Convert a .list switch matrix file to .csv.

do_load_fabric(file=None) None[source]

Load ‘fabric.csv’ file and generate an internal representation of the fabric.

Parse input arguments and set a few internal variables to assist fabric generation.