Skip to content

netlist_carpentry.routines.opt.driverless

A collection of optimization algorithms removing driverless elements from a given circuit module.

Functions:

  • opt_driverless

    Recursively removes driverless wires and instances from a module.

opt_driverless

opt_driverless(module: Module) -> bool

Recursively removes driverless wires and instances from a module.

This function iteratively checks for and removes driverless wires and instances until no more can be removed. It returns True if any removals occurred, False otherwise.

Parameters:

  • module

    (Module) –

    The module from the netlist to be optimized.

Returns:

  • any_removed ( bool ) –

    True if any optimizations were performed, False otherwise.