The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Other CAD Tools >> Entry Tools >> Not effective envSetVal() for Layout in Cadence Virtuoso
https://designers-guide.org/forum/YaBB.pl?num=1501229380

Message started by cheap_salary on Jul 28th, 2017, 1:09am

Title: Not effective envSetVal() for Layout in Cadence Virtuoso
Post by cheap_salary on Jul 28th, 2017, 1:09am

I've used "envSetVal()" in ".cdsinit" for setting my custom enviroments like following.

Code:
envSetVal("layout" "startLevel" 'int 0)
envSetVal("layout" "stopLevel" 'int 32)

;[Set Working Grid]
envSetVal("layout" "xSnapSpacing" 'float 0.005) ; [um]
envSetVal("layout" "ySnapSpacing" 'float 0.005) ; [um]

;[Set Display Minor Grid]
envSetVal("layout" "gridSpacing" 'float 0.1) ; Minor Spacing [um]

;[Set Display MajorGrid]
envSetVal("layout" "gridMultiple" 'int 5) ; (=Major_Spacing/Minor_Spacing)

envSetVal("layout" "dynamicHilightOn" 'boolean nil)


But these can not be effective recently.
What causes prevent to change environment ?

Title: Re: Not effective envSetVal() for Layout in Cadence Virtuoso
Post by Andrew Beckett on Aug 2nd, 2017, 9:23pm

Not sure this is in the right forum (probably should have been in Entry Tools) - but never mind.

My guess is that you have saved the environment settings to your design or library. For example at the bottom of the Options->Display form there are choices to save the settings to CellView, Library, Tech Library or cdsenv.

If this has been done, then these win over any cdsenv settings. The highest priority is the cellView, then library, then tech library, then the cdsenv settings.

You can tell if this has been done by looking at the cellView properties (File->Properties in the layout editor), or in the library manager over the library name (or tech library name) Right Mouse->Properties and if there's a property called "viewProps" with a button EXPAND, then you can expand and see maskLayout (and EXPAND again) and then see the individual settings.

The Options->Display form has the ability to Delete from the location it's saved to - so that can be a way of removing these library or cellView-specific settings if that hadn't been intended.

Regards,

Andrew.

Title: Re: Not effective envSetVal() for Layout in Cadence Virtuoso
Post by cheap_salary on Aug 7th, 2017, 7:22am


Andrew Beckett wrote on Aug 2nd, 2017, 9:23pm:
My guess is that you have saved the environment settings to your design or library.
Thanks for response.

I delete cellview property.
Now "envSetVal("layout",....)" in ".cdsinit" are effective.

BTW, I can set grid setting for layout at startup on Virtuoso by ".cdsinit".

However I can not change grid setting dynamically during session by "envSetVal("layout",....)".

How can I change grid setting dynamically during session by skill-language ?

Title: Re: Not effective envSetVal() for Layout in Cadence Virtuoso
Post by Andrew Beckett on Aug 7th, 2017, 10:21am

Assuming you mean the gridSpacing or gridMultiple then:

hiGetCurrentWindow()~>gridSpacing=0.2
hiGetCurrentWindow()~>gridMultiple=10

If you were talking about the snap spacing, then it would be xSnapSpacing or ySnapSpacing.

Put another way, you set attributes on the window to affect the current layout window; the cdsenv vars (or cellView/lib/tech lib properties) only affect new windows.

Regards,

Andrew.

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.