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
@@ -235,8 +235,12 @@ class STD_CROW_V:
# instr.raise_pins(['r1','r2','r3','r4'],['ra1','ra2','ra3','ra4'])
# print(self.sz_ring,self.w_ring,self.gap_cp[0])
BUS_d = self.bus_cell[0].put(0,-self.sz_ring[0][1]/2-self.w_ring[0][1]/2-self.w_bus/2-self.gap_cp[0])
nd.Pin(name='a1',pin=BUS_d.pin['a1']).put()
nd.Pin(name='b1',pin=BUS_d.pin['b1']).put()
## revised in 2026.06.07 by Qin Yue
# legacy: nd.Pin(name='a1',pin=BUS_d.pin['a1']).put()
nd.Pin(name='opt_a1',pin=BUS_d.pin['opt_a1'],type="optical:").put()
## revised in 2026.06.07 by Qin Yue
# legacy: nd.Pin(name='b1',pin=BUS_d.pin['b1']).put()
nd.Pin(name='opt_b1',pin=BUS_d.pin['opt_b1'],type="optical:").put()
dy = 0
for _idx_ in range(0,len(self.gap_crows)):
@@ -253,8 +257,12 @@ class STD_CROW_V:
if (len(self.gap_cp)==2):
BUS_u = self.bus_cell[1].put(0,dy+self.sz_ring[-1][1]/2+self.w_ring[-1][1]/2+self.w_bus/2+self.gap_cp[1],flip=1)
nd.Pin(name='a2',pin=BUS_u.pin['a1']).put()
nd.Pin(name='b2',pin=BUS_u.pin['b1']).put()
## revised in 2026.06.07 by Qin Yue
# legacy: nd.Pin(name='a2',pin=BUS_u.pin['a1']).put()
nd.Pin(name='opt_a2',pin=BUS_u.pin['opt_a1'],type="optical:").put()
## revised in 2026.06.07 by Qin Yue
# legacy: nd.Pin(name='b2',pin=BUS_u.pin['b1']).put()
nd.Pin(name='opt_b2',pin=BUS_u.pin['opt_b1'],type="optical:").put()
except Exception as ex:
print("ERROR :: ",ex)