Home Forums Nazca Inserting Cell in pre-existent .gds layout Reply To: Inserting Cell in pre-existent .gds layout


Dear killian.keller,

This should be straightforward. Suppose your template file (containing the Wafer layout etc.) is called template.gds and your design is called user.gds with top cell name “my_design”, then the following Nazca program should do the trick:

import nazca as nd

scellmap = {“user.gds”: {“user_design”: “my_design”}}
nd.replaceCells(gdsin=”template.gds”, ScellMapping=scellmap)

If needed, you can replace multiple cells in the template with cells from
different user designs, by extending the scellmap dictionary.