Support Forum

Complex conditions for Components Layout

Simone

Monday 19th April 2021
Hi, is it possible to use a complex condition for defining the layout of a component, e.g. "w=2u && l=0.5u"? I tried in few ways, but only the first conditions (w=2u) is considered. Thanks
Jürgen
LayoutEditorFull
Monday 19th April 2021
Yes of course, that is possible. You will need two parameter ( l and w ) and each of this two parameter is handled separate. There is no limit in number of parameters. I guess you have just used a single parameter for both values.
Simone

Monday 19th April 2021
I'm not sure to understand what you mean. I would like to have a layout for instance for w=20u && l=2u, and another one for w=20u && l=4u. How can I do that? I'm trying with: ``` [oa] #condition lib cell view w=30u test MOS1 layout w=20u&&l=2u test MOS2 layout w=20u&&l=4u test MOS3 layout ``` but no layout is generated in case 2 and 3. If I put l=2u on a new line, then the condition on w is ignored and every MOS with l=2u will use the same layout regardless of w.
Jürgen
LayoutEditorFull
Monday 19th April 2021
Ok, now I have understood where you are hanging. Just use quotes and a space to separate: ``` [oa] #condition lib cell view w=30u test MOS1 layout "w=20u l=2u" test MOS2 layout "w=20u l=4u" test MOS3 layout ``` Ether single quote or double quotes should work.
Simone

Monday 19th April 2021
Thanks!