Size shapes on a particular layer

Are there any examples on how to bias all shapes on a particular layer? I am trying to size a layer in a hierarchical layout.
Thanks,

Comments

  • Hi,

    you can achieve this with a DRC script (see https://www.klayout.de/doc-qt5/manual/drc_basic.html). As you mention you have hierarchical layout, you can try the "deep" switch which enables hierarchical mode:

    # enable hierarchical mode
    deep
    
    # for example to size all shapes on layer 123, datatype 0 by 200nm use:
    input(123, 0).sized(200.nm).output(123, 0)
    

    Matthias

  • Hello Matthias, This does exactly what I need. Simple when you know how! Thanks

Sign In or Register to comment.