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
+12 -4
View File
@@ -199,9 +199,13 @@ class taper_xs2xs:
nd.strt(length=L_port,xs=xs_2,width=w_2).put(L_taper,0,0)
nd.Pin(name='a0',width=w_1).put(-L_port,0,180)
nd.Pin(name='a1',width=w_1).put(-L_port,0,180)
## revised in 2026.06.07 by Qin Yue
# legacy: nd.Pin(name='a1',width=w_1).put(-L_port,0,180)
nd.Pin(name='opt_a1',width=w_1,type="optical:").put(-L_port,0,180)
nd.Pin(name='b0',width=w_2).put(L_taper+L_port,0,0)
nd.Pin(name='b1',width=w_2).put(L_taper+L_port,0,0)
## revised in 2026.06.07 by Qin Yue
# legacy: nd.Pin(name='b1',width=w_2).put(L_taper+L_port,0,0)
nd.Pin(name='opt_b1',width=w_2,type="optical:").put(L_taper+L_port,0,0)
self.cell = C
@@ -363,8 +367,12 @@ class PSR:
nd.strt(width=w0,length=L_port,layer=layers).put(0,0,180)
nd.strt(width=w1,length=L_port,layer=layers).put(sum(Lt_rib),0,0)
nd.Pin(name='a1',width=w[0]).put(-L_port,0,180)
nd.Pin(name='b1',width=w[-1]).put(sum(Lt_rib)+L_port,0,0)
## revised in 2026.06.07 by Qin Yue
# legacy: nd.Pin(name='a1',width=w[0]).put(-L_port,0,180)
nd.Pin(name='opt_a1',width=w[0],type="optical:").put(-L_port,0,180)
## revised in 2026.06.07 by Qin Yue
# legacy: nd.Pin(name='b1',width=w[-1]).put(sum(Lt_rib)+L_port,0,0)
nd.Pin(name='opt_b1',width=w[-1],type="optical:").put(sum(Lt_rib)+L_port,0,0)
self.cell = C