案例分享:利用i3.merge_elements函数合并版图中的图层
如:
全部代码如下:
from si_fab import all as pdk
from ipkiss3 import all as i3
class MergeElements(i3.GDSCell):
def _default_filename(self):
return "demo.gds"
class Layout(i3.GDSCell.Layout):
def _generate_elements(self, elems):
elems = super()._generate_elements(elems)
return i3.merge_elements(elems, layers=[i3.TECH.PPLAYER.SI_CLADDING,i3.TECH.PPLAYER.SI])
if __name__ == '__main__':
MergeElements().Layout().visualize()
代码中的demo.gds为教程19生成的gds,将gds和代码放同一文件运行就可以得到上图结果。