ubcpdk.components.pad

Contents

ubcpdk.components.pad#

ubcpdk.components.pad(*, size: str | Float2 = (75, 75), layer: LayerSpec = <LayerMapUbc.M2_ROUTER: 47>, bbox_layers: tuple[LayerSpec, ...] | None = (<LayerMapUbc.PAD_OPEN: 48>, ), bbox_offsets: tuple[float, ...] | None = (-1.8, ), port_inclusion: float = 0, port_orientation: float | None = 0, port_orientations: Ints | None = (180, 90, 0, -90)) Component#

Returns rectangular pad with ports.

Parameters:
  • size – x, y size.

  • layer – pad layer.

  • bbox_layers – list of layers.

  • bbox_offsets – Optional offsets for each layer with respect to size. positive grows, negative shrinks the size.

  • port_inclusion – from edge.

  • port_orientation – in degrees.

  • port_orientations – list of port_orientations to add. None does not add ports.