chipflow_lib.pin_lock#

Attributes#

Classes#

Functions#

count_member_pins(name, member)

Counts the pins from amaranth metadata

allocate_pins(name, member, pins[, port_name])

Allocate pins based of Amaranth member metadata

lock_pins()

Module Contents#

chipflow_lib.pin_lock.logger#
chipflow_lib.pin_lock.count_member_pins(name, member)#

Counts the pins from amaranth metadata

Parameters:
  • name (str)

  • member (Dict[str, Any])

Return type:

int

chipflow_lib.pin_lock.allocate_pins(name, member, pins, port_name=None)#

Allocate pins based of Amaranth member metadata

Parameters:
  • name (str)

  • member (Dict[str, Any])

  • pins (List[str])

  • port_name (str)

Return type:

Tuple[Dict[str, chipflow_lib.platforms.utils.Port], List[str]]

chipflow_lib.pin_lock.lock_pins()#
Return type:

None

class chipflow_lib.pin_lock.PinCommand(config)#
config#
build_cli_parser(parser)#
run_cli(args)#
lock()#

Lock the pin map for the design.

Will attempt to reuse previous pin positions.