ubcpdk.cells.compass

Contents

ubcpdk.cells.compass#

ubcpdk.cells.compass(size=(4, 2), layer='MTOP', port_type=None, port_inclusion=0.0, port_orientations=(180, 90, 0, -90), auto_rename_ports=True)[source]#

Rectangle with ports on each edge (north, south, east, and west).

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

  • layer (tuple[int, int] | str | int | LayerEnum) – tuple (int, int).

  • port_type (str | None) – optical, electrical.

  • port_inclusion (float) – from edge.

  • port_orientations (tuple[int, ...] | list[int] | None) – list of port_orientations to add. None does not add ports.

  • auto_rename_ports (bool) – auto rename ports.

Return type:

Component