• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC Design
  3. Setting xSnapSpacing and ySnapSpacing in .cdsenv not taking...

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 125
  • Views 6643
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Setting xSnapSpacing and ySnapSpacing in .cdsenv not taking effect

dr3patel
dr3patel over 2 years ago

Tool: Cadence Virtuoso ICADVM20.1-64b.500.24. 

Hi,

I am trying to pre-set the xSnapSpacing and ySnapSpacing values for layoutXL to the desired values (i.e. 0.001) by loading the customized .cdsenv file from the .cdsinit. However, every time I open the layout SnapSpacing values get set to default values.

Every time I open LayoutXL I have to manually go to the Display options and set the xSnapSpacing and ySnapSpacing options manually. The next time I open the same cell view layout, I have to set that again as it doesn’t save these settings.

I have tried following things to fix this but none of them has resolved my issue.

1. I have included "setenv CDS_LOAD_ENV addCWD" into my ~/.cshrc file

2. Also, included envLoadFile("./.cdsenv") in my ./.cdsinit file located at my cadence home directory. 

3. My ./.cdsenv file located in my cadence home directory contains the following lines to set the snap spacing.

layout ySnapSpacing float 0.001

layout xSnapSpacing float 0.001

4. Furthermore, I also tried envSetVal("layout" "xSnapSpacing" 'float 0.001) and envSetVal("layout" “ySnapSpacing" 'float 0.001) from the virtuoso command line which returns ’t’  but doesn’t take the effect in the LayoutXL nor in the LayoutEXL.

Looking for a solution to fix this issue. Thanks!

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 2 years ago

    What's likely to have happened is that (at some point) somebody has saved the settings to the cellView you're using, or the library or technology library. These will take priority over the cdsenv setting - the priority order is:

    1. cellView
    2. library
    3. technology library
    4. cdsenv

    For the cellView, if you do File→Properties in the layout editor - if there's an xSnapSpacing/ySnapSpacing property you can delete them or change them.

    For library/technology library, in the library manager over the name of the library do Right Mouse->Properties and see if there's a property called viewProps with an EXPAND button next to it (this means it's a hierarchical property). If so, press "EXPAND" and then you may see a property called maskLayout (again with an EXPAND button). Click on this EXPAND and then you should see relevant display/edit option properties like xSnapSpacing/ySnapSpacing which you can edit or delete.

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • dr3patel
    dr3patel over 2 years ago in reply to Andrew Beckett

    Dear Andrew,

    Your suggestions for the cell view seem to be working well, thanks. However, I need to do that manually for every cell view so looking for a general solution i.e. at the library level.

    I attempted your suggestions for the library by following the "Right Mouse->Properties and see if there's a property ..." However, this only shows me the library property in "viewing" form in plain text (i.e. there was nothing 'clickable' or 'expandable'). Am I missing something? Let me know. 

    Dhruv

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago in reply to dr3patel

    Dhruv,

    I'd be rather surprised if the display options have been saved to every cellView (that's not normal practice in my experience), but if they have been saved to the cellView, fixing it at the library level won't help you (as I mentioned before, the cellView setting wins over the library setting).

    If you only have the "Library Property Viewer" window displayed, that means that either the library properties are readonly, or there are no properties. The first might be because its design managed. You can use the Edit menu of the viewer window to change that. However, if there are no properties set on the library, there's little point in doing this - the cdsenv would win if there are no properties on the cellView, library or technology library.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 2 years ago in reply to dr3patel

    Dhruv,

    I'd be rather surprised if the display options have been saved to every cellView (that's not normal practice in my experience), but if they have been saved to the cellView, fixing it at the library level won't help you (as I mentioned before, the cellView setting wins over the library setting).

    If you only have the "Library Property Viewer" window displayed, that means that either the library properties are readonly, or there are no properties. The first might be because its design managed. You can use the Edit menu of the viewer window to change that. However, if there are no properties set on the library, there's little point in doing this - the cdsenv would win if there are no properties on the cellView, library or technology library.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • dr3patel
    dr3patel over 2 years ago in reply to Andrew Beckett

    Dear Andrew,

    got it. Thanks!

    Dhruv

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information