piel.models.physical.electrical.pcb

piel.models.physical.electrical.pcb#

Functions#

create_pcb(→ piel.types.PCB)

Defines a PCB component instantiation.

Module Contents#

create_pcb(pcb_name: str = None, port_name_list: List[str] = None, connection_tuple_list: List[Tuple[str, str]] = None, port_factory: Callable[[str], piel.types.PhysicalPort] | None = None, **kwargs) piel.types.PCB[source]#

Defines a PCB component instantiation.

Parameters:
  • port_name_list (List[str], optional) – The list of port names. Defaults to None.

  • connection_tuple_list (List[Tuple[str, str]], optional) – The list of connections between connection. Defaults to None.

  • port_factory (Optional[Callable[[str], PhysicalPort]], optional) – The factory function to create the connection. Needs to contain the port definition parameters. Defaults to None.