Hi all,
Still on tapers, but now on a linear one. I am facing one issue when trying to define a taper inside a function. Some additional polygons are appearing.
Here’s the code.
import nazca as nd
import nazca.interconnects as IC
nd.add_layer2xsection(xsection='slabXS', layer=10, accuracy=0.001)
icSlab = IC.Interconnect(width=0.49, radius=10, xs='slabXS')
def slabTaper(length=3.0, ribWidth=0.49, slabWidth=2.0):
with nd.Cell(name='SlabTaper_{}_{}'.format(length,slabWidth)) as bb:
#Place Taper
chTaper = icSlab.taper(length=length,width1=ribWidth,width2=slabWidth)
chTaper.put(0,0)
#Put Pins
nd.Pin('a0', pin=chTaper.pin['a0']).put()
nd.Pin('b0', pin=chTaper.pin['b0']).put()
#Put stubs
nd.put_stub()
return bb
functionTaper = slabTaper(length=4.0, ribWidth=0.49, slabWidth=2.0)
variableTaper = icSlab.taper(length=4.0,width1=0.49,width2=2.0)
functionTaper.put(0,0)
variableTaper.put(0,5)
nd.export_gds(filename='tapers.gds')
Any idea if that is an issue and on how to solve that?
Thanks,
Douglas