optical pins name revised. Pin type added

This commit is contained in:
=
2026-06-07 22:56:33 +08:00
parent a4ac88f002
commit 8462c3397f
262 changed files with 3251 additions and 1134 deletions
+32 -8
View File
@@ -181,11 +181,19 @@ class waveguide_PIN:
if (self.rib_taper):
tp_L = taper_xs2xs(xs_1='temp',xs_2=self.xs_port,L_taper=self.L_taper,w_1=self.w_wg,w_2=self.w_wg).cell.put(core.pin['a0'])
tp_R = taper_xs2xs(xs_1='temp',xs_2=self.xs_port,L_taper=self.L_taper,w_1=self.w_wg,w_2=self.w_wg).cell.put(core.pin['b0'])
nd.Pin(name='a1',pin=tp_L.pin['b0']).put()
nd.Pin(name='b1',pin=tp_R.pin['b0']).put()
## revised in 2026.06.07 by Qin Yue
# legacy: nd.Pin(name='a1',pin=tp_L.pin['b0']).put()
nd.Pin(name='opt_a1',pin=tp_L.pin['b0'],type="optical:").put()
## revised in 2026.06.07 by Qin Yue
# legacy: nd.Pin(name='b1',pin=tp_R.pin['b0']).put()
nd.Pin(name='opt_b1',pin=tp_R.pin['b0'],type="optical:").put()
else:
nd.Pin(name='a1',pin=core.pin['a0']).put()
nd.Pin(name='b1',pin=core.pin['b0']).put()
## revised in 2026.06.07 by Qin Yue
# legacy: nd.Pin(name='a1',pin=core.pin['a0']).put()
nd.Pin(name='opt_a1',pin=core.pin['a0'],type="optical:").put()
## revised in 2026.06.07 by Qin Yue
# legacy: nd.Pin(name='b1',pin=core.pin['b0']).put()
nd.Pin(name='opt_b1',pin=core.pin['b0'],type="optical:").put()
## adding p doping area
_y_ = self.w_itr/2
@@ -476,12 +484,28 @@ class WGDoped():
xs1 = self.cell_xs_transition.put('a0',coreOUT.pin['b0'])
xs2 = self.cell_xs_transition.put('a0',coreIN.pin['a0'])
xs1.raise_pins(['b0'],['a1'])
xs2.raise_pins(['b0'],['b1'])
## revised in 2026.06.07 by Qin Yue
# legacy: xs1.raise_pins(['b0'],['a1'])
xs1.raise_pins(['b0'],['opt_a1'])
## revised in 2026.06.07 by Qin Yue
C.pin['opt_a1'].type = "optical:"
## revised in 2026.06.07 by Qin Yue
# legacy: xs2.raise_pins(['b0'],['b1'])
xs2.raise_pins(['b0'],['opt_b1'])
## revised in 2026.06.07 by Qin Yue
C.pin['opt_b1'].type = "optical:"
else:
coreIN.raise_pins(['a0'],['b1'])
coreOUT.raise_pins(['b0'],['a1'])
## revised in 2026.06.07 by Qin Yue
# legacy: coreIN.raise_pins(['a0'],['b1'])
coreIN.raise_pins(['a0'],['opt_b1'])
## revised in 2026.06.07 by Qin Yue
C.pin['opt_b1'].type = "optical:"
## revised in 2026.06.07 by Qin Yue
# legacy: coreOUT.raise_pins(['b0'],['a1'])
coreOUT.raise_pins(['b0'],['opt_a1'])
## revised in 2026.06.07 by Qin Yue
C.pin['opt_a1'].type = "optical:"
# nd.put_stub()
return C