It looks like you're new here. If you want to get involved, click one of these buttons!
I want to make a standard square hole GDS with fixed pitches in X and Y directions. 100*100 arrays.
But I want to add the random CD bias to each hole.
How to implement in Klayout?
Would be happy if anyone can share me such implementation, thanks.
Not sure why you'd do this or how realistic you think it'll be
(much of CD variation will be systematic, and some more of
it involving proximity / edge-of-array effects). But if it were my
problem, I think I'd first make a PCell for the square object
with center 0,0 and param for size, and then a script routine
to place randomized-property cells on your major grid.
However you might as easily be able to riffle through a layout
of identical objects and property-edit the objects one by one
on their inherent geom fields.
All would seem to presume there is a random() function in
the Ruby or Python, whichever you plan to use. Seems likely.
The two seem identically easy to me because I have no chance
of accomplishing either one.
Here is a python script that might do what you are looking for:
Image of output gds:
Many thanks for sharing this script.
One remark: in order to be useful for Linux users, the path separator cannot be a backslash. For the generic version use:
Thanks Matthias, I have edited the above script to include that correction.