-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path__init__.py
78 lines (62 loc) · 1.96 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
from __future__ import annotations
from gdsfactory.config import PATH as GPATH
from gdsfactory.get_factories import get_cells
from gdsfactory.pdk import Pdk, constants
from gdsfactory.technology import LayerViews
from gdsfactory.typings import Layer
from gvtt import components
from gvtt.config import PATH
from gvtt.layers import LAYER
from gvtt.tech import cross_sections
cells = get_cells([components])
frame_dimensions = {
LAYER.WG_SNGL_ADD: 75.0,
LAYER.WG_LANE_ADD: 71.5,
LAYER.WG_DEOX_ADD: 85.0,
LAYER.WG_ARCO_ADD: 100.0,
}
FRAME_LAYERS: dict[Layer, str] = {}
PORT_MARKER_LAYER_TO_TYPE = {
LAYER.PORT: "optical",
LAYER.PORTE: "dc",
LAYER.TE: "vertical_te",
LAYER.TM: "vertical_tm",
}
PORT_LAYER_TO_TYPE = {
LAYER.TYPE_RIB: "optical",
LAYER.TYPE_STRIP: "optical",
LAYER.TE: "vertical_te",
LAYER.TM: "vertical_tm",
}
PORT_TYPE_TO_MARKER_LAYER = {v: k for k, v in PORT_MARKER_LAYER_TO_TYPE.items()}
LAYER_TRANSITIONS = {
LAYER.TYPE_RIB: "rib_taper",
LAYER.TYPE_STRIP: "strip_taper",
(LAYER.TYPE_RIB, LAYER.TYPE_STRIP): "rib_to_strip",
(LAYER.TYPE_STRIP, LAYER.TYPE_RIB): "strip_to_rib",
}
LAYER_VIEWS = LayerViews(filepath=PATH.lyp_yaml)
PDK = Pdk(
name="VTT-3umSOI",
cells=cells,
cross_sections=cross_sections,
layers=LAYER,
layer_stack=None,
layer_views=LAYER_VIEWS,
layer_transitions=LAYER_TRANSITIONS, # type: ignore[arg-type]
constants=constants,
)
GPATH.sparameters = PATH.sparameters
# pdk.register_cells_yaml(dirpath=pathlib.Path(__file__).parent.absolute())
# gdsfactory.routing.all_angle.LOW_LOSS_CROSS_SECTIONS = [
# {"cross_section": "rib", "settings": {"width": 2.5}},
# {"cross_section": "xs_sc", "settings": {"width": 6.0}},
# {"cross_section": "xs_sc", "settings": {"width": 3.0}},
# ]
#
PDK.activate()
__version__ = "0.1.0"
if __name__ == "__main__":
# layer_views = LayerViews(filepath=PATH.lyp_yaml)
# layer_views.to_lyp(PATH.lyp)
print(PDK.name)