Folder structure simplfied
This commit is contained in:
@@ -5,7 +5,7 @@ from .couplers import ring_bus_wg
|
||||
|
||||
from .taper import taper_xs2xs
|
||||
|
||||
from ...structures import Racetrack,Clothoid,circle,Elipse_dual
|
||||
from ...geometry import Racetrack,Clothoid,circle,Elipse_dual
|
||||
from . import ring_bus_wg
|
||||
from ...electronics import Vias
|
||||
import nazca.interconnects as IC
|
||||
@@ -18,6 +18,76 @@ class Route(IC.Interconnect):
|
||||
|
||||
|
||||
class RacetrackResonator:
|
||||
"""
|
||||
RacetrackResonator primitive component.
|
||||
|
||||
This component builds the RacetrackResonator layout cell.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
R0 : Any
|
||||
Radius parameter in microns.
|
||||
w0 : float
|
||||
Width parameter in microns.
|
||||
R1 : Any
|
||||
Radius parameter in microns.
|
||||
w1 : float
|
||||
Width parameter in microns.
|
||||
dLy : float
|
||||
Value for the dLy parameter.
|
||||
dLx : float
|
||||
Value for the dLx parameter.
|
||||
name : Optional[str], optional
|
||||
Unique identifier for the device cell. Default is None.
|
||||
xs : str, optional
|
||||
Layer or cross-section name used by the device. Default is 'strip'.
|
||||
gap1 : float, optional
|
||||
Spacing or gap parameter in microns. Default is 0.2.
|
||||
gap2 : float, optional
|
||||
Spacing or gap parameter in microns. Default is 0.2.
|
||||
w1_bus : float, optional
|
||||
Value for the w1_bus parameter. Default is 0.45.
|
||||
w2_bus : float, optional
|
||||
Value for the w2_bus parameter. Default is 0.45.
|
||||
R1_cp : Any, optional
|
||||
Radius parameter in microns. Default is None.
|
||||
R2_cp : Any, optional
|
||||
Radius parameter in microns. Default is None.
|
||||
A1_cp : int, optional
|
||||
Angle parameter in degrees. Default is 0.
|
||||
A2_cp : int, optional
|
||||
Angle parameter in degrees. Default is 0.
|
||||
w_wg : float, optional
|
||||
Width parameter in microns. Default is 0.45.
|
||||
R1_att : float, optional
|
||||
Radius parameter in microns. Default is 20.
|
||||
R2_att : float, optional
|
||||
Radius parameter in microns. Default is 20.
|
||||
R2_att_min : float, optional
|
||||
Radius parameter in microns. Default is 10.
|
||||
R1_att_min : float, optional
|
||||
Radius parameter in microns. Default is 10.
|
||||
A1_att : float, optional
|
||||
Angle parameter in degrees. Default is 30.
|
||||
A2_att : float, optional
|
||||
Angle parameter in degrees. Default is 20.
|
||||
Ltp_bus : int, optional
|
||||
Length parameter in microns. Default is 10.
|
||||
dL_p2p : Optional[float], optional
|
||||
Value for the dL_p2p parameter. Default is None.
|
||||
L_tilt : int, optional
|
||||
Length parameter in microns. Default is 10.
|
||||
sharp_patch : bool, optional
|
||||
Whether to add geometry patches for sharp corners or cladding continuity. Default is True.
|
||||
cell_xs_transition : Any, optional
|
||||
Cell or component dependency used by this device. Default is None.
|
||||
Euler_trasition : bool, optional
|
||||
Value for the Euler_trasition parameter. Default is False.
|
||||
res : float, optional
|
||||
Value for the res parameter. Default is 0.01.
|
||||
show_pins : bool, optional
|
||||
Whether to draw pin markers in the generated layout. Default is False.
|
||||
"""
|
||||
def __init__(self,
|
||||
|
||||
R0: Any,
|
||||
@@ -147,6 +217,58 @@ class RacetrackResonator:
|
||||
|
||||
|
||||
class Racetrack_STD_Allpass(RacetrackResonator):
|
||||
"""
|
||||
Racetrack STD Allpass primitive component.
|
||||
|
||||
This component builds the Racetrack STD Allpass layout cell.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
r_rck : float
|
||||
Radius parameter in microns.
|
||||
w_rck : float
|
||||
Width parameter in microns.
|
||||
dLy : float
|
||||
Value for the dLy parameter.
|
||||
name : Optional[str], optional
|
||||
Unique identifier for the device cell. Default is None.
|
||||
xs : str, optional
|
||||
Layer or cross-section name used by the device. Default is 'strip'.
|
||||
gap : float, optional
|
||||
Spacing or gap parameter in microns. Default is 0.2.
|
||||
w_bus : float, optional
|
||||
Width parameter in microns. Default is 0.45.
|
||||
A_cp : int, optional
|
||||
Angle parameter in degrees. Default is 0.
|
||||
w_wg : float, optional
|
||||
Width parameter in microns. Default is 0.45.
|
||||
Ltp_bus : int, optional
|
||||
Length parameter in microns. Default is 10.
|
||||
dL_p2p : Optional[float], optional
|
||||
Value for the dL_p2p parameter. Default is None.
|
||||
L_tilt : int, optional
|
||||
Length parameter in microns. Default is 0.
|
||||
Ratt : int, optional
|
||||
Radius parameter in microns. Default is 10.
|
||||
w_ht : float, optional
|
||||
Width parameter in microns. Default is 0.
|
||||
w_mt : float, optional
|
||||
Width parameter in microns. Default is 10.
|
||||
via_h2m : Any, optional
|
||||
Via definition used between heater and metal layers. Default is None.
|
||||
xs_ht : str, optional
|
||||
Layer or cross-section name used by the device. Default is 'heater'.
|
||||
xs_mt : str, optional
|
||||
Layer or cross-section name used by the device. Default is 'metal'.
|
||||
sharp_patch : bool, optional
|
||||
Whether to add geometry patches for sharp corners or cladding continuity. Default is True.
|
||||
cell_xs_transition : Any, optional
|
||||
Cell or component dependency used by this device. Default is None.
|
||||
res : float, optional
|
||||
Value for the res parameter. Default is 0.01.
|
||||
show_pins : bool, optional
|
||||
Whether to draw pin markers in the generated layout. Default is False.
|
||||
"""
|
||||
def __init__(self,
|
||||
r_rck: float, w_rck: float,
|
||||
dLy: float,
|
||||
@@ -232,6 +354,54 @@ class Racetrack_STD_Allpass(RacetrackResonator):
|
||||
|
||||
|
||||
class Racetrack_MM_Allpass(RacetrackResonator):
|
||||
"""
|
||||
Racetrack MM Allpass primitive component.
|
||||
|
||||
This component builds the Racetrack MM Allpass layout cell.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
r1_rck : float
|
||||
Value for the r1_rck parameter.
|
||||
w1_rck : float
|
||||
Value for the w1_rck parameter.
|
||||
r0_rck : float
|
||||
Value for the r0_rck parameter.
|
||||
w0_rck : float
|
||||
Value for the w0_rck parameter.
|
||||
dLy : float
|
||||
Value for the dLy parameter.
|
||||
name : Optional[str], optional
|
||||
Unique identifier for the device cell. Default is None.
|
||||
xs : str, optional
|
||||
Layer or cross-section name used by the device. Default is 'strip'.
|
||||
gap : float, optional
|
||||
Spacing or gap parameter in microns. Default is 0.2.
|
||||
w_bus : float, optional
|
||||
Width parameter in microns. Default is 0.45.
|
||||
A_cp : int, optional
|
||||
Angle parameter in degrees. Default is 0.
|
||||
w_wg : float, optional
|
||||
Width parameter in microns. Default is 0.45.
|
||||
R_att : int, optional
|
||||
Radius parameter in microns. Default is 50.
|
||||
R_att_min : int, optional
|
||||
Radius parameter in microns. Default is 10.
|
||||
A_att : int, optional
|
||||
Angle parameter in degrees. Default is 15.
|
||||
Ltp_bus : int, optional
|
||||
Length parameter in microns. Default is 10.
|
||||
dL_p2p : Optional[float], optional
|
||||
Value for the dL_p2p parameter. Default is None.
|
||||
sharp_patch : bool, optional
|
||||
Whether to add geometry patches for sharp corners or cladding continuity. Default is True.
|
||||
cell_xs_transition : Any, optional
|
||||
Cell or component dependency used by this device. Default is None.
|
||||
res : float, optional
|
||||
Value for the res parameter. Default is 0.01.
|
||||
show_pins : bool, optional
|
||||
Whether to draw pin markers in the generated layout. Default is False.
|
||||
"""
|
||||
def __init__(self,
|
||||
r1_rck: float, w1_rck: float,
|
||||
r0_rck: float, w0_rck: float,
|
||||
@@ -264,6 +434,54 @@ class Racetrack_MM_Allpass(RacetrackResonator):
|
||||
|
||||
|
||||
class Racetrack_MM_Adddrop(RacetrackResonator):
|
||||
"""
|
||||
Racetrack MM Adddrop primitive component.
|
||||
|
||||
This component builds the Racetrack MM Adddrop layout cell.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
r1_rck : float
|
||||
Value for the r1_rck parameter.
|
||||
w1_rck : float
|
||||
Value for the w1_rck parameter.
|
||||
r0_rck : float
|
||||
Value for the r0_rck parameter.
|
||||
w0_rck : float
|
||||
Value for the w0_rck parameter.
|
||||
dLy : float
|
||||
Value for the dLy parameter.
|
||||
name : Optional[str], optional
|
||||
Unique identifier for the device cell. Default is None.
|
||||
xs : str, optional
|
||||
Layer or cross-section name used by the device. Default is 'strip'.
|
||||
gap : float, optional
|
||||
Spacing or gap parameter in microns. Default is 0.2.
|
||||
w_bus : float, optional
|
||||
Width parameter in microns. Default is 0.45.
|
||||
A_cp : int, optional
|
||||
Angle parameter in degrees. Default is 0.
|
||||
w_wg : float, optional
|
||||
Width parameter in microns. Default is 0.45.
|
||||
R_att : int, optional
|
||||
Radius parameter in microns. Default is 50.
|
||||
R_att_min : int, optional
|
||||
Radius parameter in microns. Default is 10.
|
||||
A_att : int, optional
|
||||
Angle parameter in degrees. Default is 15.
|
||||
Ltp_bus : int, optional
|
||||
Length parameter in microns. Default is 10.
|
||||
dL_p2p : Optional[float], optional
|
||||
Value for the dL_p2p parameter. Default is None.
|
||||
sharp_patch : bool, optional
|
||||
Whether to add geometry patches for sharp corners or cladding continuity. Default is True.
|
||||
cell_xs_transition : Any, optional
|
||||
Cell or component dependency used by this device. Default is None.
|
||||
res : float, optional
|
||||
Value for the res parameter. Default is 0.01.
|
||||
show_pins : bool, optional
|
||||
Whether to draw pin markers in the generated layout. Default is False.
|
||||
"""
|
||||
def __init__(self,
|
||||
r1_rck: float, w1_rck: float,
|
||||
r0_rck: float, w0_rck: float,
|
||||
|
||||
Reference in New Issue
Block a user