热度 1| |||
##merge GDS:add filling cell to top cell, not create new top.
set layout1 [layout create topCell.gds -dt_expand]
set layout2 [layout create topCell.fill.gds -dt expand]
set output topCell.merged.gds
set topcell [ $layout1 topcell ]
set topcell_fill [ $layout2 topcell ]
foreach cell [ $layout1 cells] {
if { [string match $topcell_fill $cell] } {
puts "In conflict cell in $topcell and $topcell fill: $cell."
Exit
}
##$L import layout {handle | file} del mode{if conflict}
$layout1 import layout $layout2 FALSE rename
##added fill cell to top cell.
##$L create ref incell refcell x y mirror angle mag [cols rows xspace yspace]
layout1 create ref $topcell $topcell fill 0 0 0 0 1
set output type [file extension $output]
##output merged gds
$layout1 gdsout $output