I’m getting this exception thrown when trying to connect two cells with sbend_p2p
It is not allowed to create a node outside the scope of max one level deep: You cannot connect to a cell that is not placed inside the cell you are creating.
It is thrown by copy in netlist.py
The code in question is
import nazca as nd
import testpat as testpat
from nazca.interconnects import Interconnect
ic = Interconnect(width=50, radius=10.0, layer=1)
trs = testpat.obj1()
pad1 = testpat.pad(padlen=1000, padwidth=5000).put(14500,0,0)
pad2 = testpat.pad(padlen=1000, padwidth=5000).put(16500,0,0)
ic1 = ic.sbend_p2p(pin1=pad1.pin['b0'], pin2=obj1.pin['a0']).put()
ic2 = ic.sbend_p2p(pin1=pad2.pin['b0'], pin2=obj1.pin['b0']).put()
I’ve never encountered this behaviour before, despite making similar designs (using the same pre-built cells from the same testpat file). Am I overlooking something? Any tips on troubleshooting?
If I repeat the same with strt_p2p, the design does not fail, but the straight lines go to two a0 and b0 pins near the origin.