mxpic.components.primitives.pic.cross#

Cross#

../../../../_images/Cross.png
class mxpic.components.primitives.pic.cross.Cross(name=None, L=[0, 1, 2, 3, 4], w=[0.5, 0.45, 0.6, 0.4, 0.5], xs='strip', show_pins=False)#

Bases: object

Cross primitive component.

This component builds the Cross layout cell.

Parameters:
  • name (Optional[str], optional) – Unique identifier for the device cell. Default is None.

  • L (list, optional) – Length parameter in microns. Default is [0, 1, 2, 3, 4].

  • w (list, optional) – Width parameter in microns. Default is [0.5, 0.45, 0.6, 0.4, 0.5].

  • xs (str, optional) – Layer or cross-section name used by the device. Default is ‘strip’.

  • show_pins (bool, optional) – Whether to draw pin markers in the generated layout. Default is False.

generate_gds(show_pins)#
generate_test_gds(gc, num=5, dX_gc2gc=400, w_end=0.2, L_end=10)#

Cross_Sine#

../../../../_images/Cross_Sine.png
class mxpic.components.primitives.pic.cross.Cross_Sine(name=None, res=[1, 1, 1, 1], w=[0.5, 0.45, 0.6, 0.4, 0.5], xs='strip', n_points=4, show_pins=False)#

Bases: Cross

Cross Sine primitive component.

This component builds the Cross Sine layout cell.

Parameters:
  • name (Optional[str], optional) – Unique identifier for the device cell. Default is None.

  • res (list, optional) – Value for the res parameter. Default is [1, 1, 1, 1].

  • w (list, optional) – Width parameter in microns. Default is [0.5, 0.45, 0.6, 0.4, 0.5].

  • xs (str, optional) – Layer or cross-section name used by the device. Default is ‘strip’.

  • n_points (int, optional) – Value for the n_points parameter. Default is 4.

  • show_pins (bool, optional) – Whether to draw pin markers in the generated layout. Default is False.