ubcpdk.cells.pad

Contents

ubcpdk.cells.pad#

ubcpdk.cells.pad(size=(90.0, 90.0), layer='MTOP', port_inclusion=0, port_orientation=0, port_orientations=(180, 90, 0, -90))[source]#

Returns rectangular pad with ports.

Parameters:
  • size (tuple[float, float]) – x, y size.

  • layer (tuple[int, int] | str | int | LayerEnum) – 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 (float) – from edge.

  • port_orientation (float) – in degrees.

  • port_orientations (tuple[int, ...] | list[int] | None)

Return type:

Component