So I know with `MASKHINTS_XXX` you can add some of...
# magic
t
So I know with
MASKHINTS_XXX
you can add some of those generated layers where you need to. But is there a way to replace / remove ? Because AFAICT the auto-generated one is still there and it just overlays what you specify but in my case I'd like to remove some. Granted my use case is special ... I'm drawing some cells that will be "composed" by a script.
t
There is; I haven't tried implementing it. The
MASKHINTS_XXX
has to be used in conjunction with the
cifoutput
rules in the magic tech file. A cifoutput recipe containing, e.g.,
mask-hints PSDM
adds in all geometry coming from the property
MASKHINTS_PSDM
. The name
PSDM
in this case does not have to be a known layer name; it's just a text tag that matches between the property name and the cifoutput rule. So you could do this in the
cifoutput
sections:
Copy code
templayer PSDMdrop
        mask-hints PSDMdrop

layer PSDM basePSDM,extendPSDM
        grow 185
        shrink 185
        close 265000
        mask-hints PSDM
        and-not PSDM_drop
        calma 94 20
That would allow you to specify two properties, one
MASKHINTS_PSDM
to add extra layers of
PSDM
, and one property
MASKHINTS_PSDMdrop
to remove layers of
PSDM
. I didn't implement this in the PDK tech file because it seemed over-complicated and I didn't have a real use case for it.
👌 1
t
Oh interesting, thanks you. I've worked around it for now since that part of the design isn't super dense I had some leeway, but definitely saving this for later !