gdsfactory.get_netlist.get_netlist#
- gdsfactory.get_netlist.get_netlist(cell, *, on_multi_connect='error', on_dangling_port='warn', instance_namer=None, component_namer=<function function_namer>, port_matcher=None)[source]#
Extract netlist from a cell’s port connectivity.
- Parameters:
cell (ProtoTKCell[Any]) – The cell to extract the netlist from.
on_multi_connect (Literal['ignore', 'warn', 'error']) – What to do when more than two ports overlap. “ignore”: silently allow, “warn”: allow with warning, “error”: raise.
on_dangling_port (Literal['ignore', 'warn', 'error']) – What to do when an instance port is not connected. “ignore”: silently allow, “warn”: allow with warning, “error”: raise.
instance_namer (InstanceNamer | None) – Callable to name instances. Defaults to SmartNamer(component_namer).
component_namer (ComponentNamer) – Callable to name components. Defaults to function_namer.
port_matcher (PortMatcher | None) – Callable to determine if two ports are connected. Defaults to SmartPortMatcher().
- Returns:
A dictionary containing instances, placements, ports, and nets.
- Return type:
dict[str, Any]