chipflow.packaging.commands¶
CLI commands for pin lock management.
Classes¶
CLI command handler for pin-related operations. |
Module Contents¶
- class chipflow.packaging.commands.PinCommand(config)¶
CLI command handler for pin-related operations.
This class provides the command-line interface for managing pin allocations and lock files.
- build_cli_parser(parser)¶
Build the CLI parser for pin commands.
- Parameters:
parser – argparse parser to add subcommands to
- run_cli(args)¶
Execute the CLI command.
- Parameters:
args – Parsed command-line arguments
- lock()¶
Lock the pin map for the design.
Will attempt to reuse previous pin positions.
- swap(pin_a, pin_b)¶
Swap two pin assignments in pins.lock.
Both pins must currently be allocated to user ports; bringup pins (clock, reset, power, heartbeat, JTAG) are package-defined and cannot be swapped.
- show(format='text', output=None)¶
Show the current pin allocation from pins.lock.
Text format works for any package type. SVG format renders a package layout for perimeter packages (Quad/Block).
- Parameters:
format (str)
output (pathlib.Path | None)