• 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 SKILL
  3. How to get instance mode

Stats

  • Locked Locked
  • Replies 16
  • Subscribers 143
  • Views 18056
  • 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

How to get instance mode

psill000
psill000 over 7 years ago

How do I get the mode of an instance in layout.

I know the cell is editable but when I try instDb~>master~>mode or instDb~>master~>mode~>cellView I get "r".

Paul

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 7 years ago in reply to psill000

    OK, nothing unusual about that code. Can you present some evidence (screenshots, maybe) showing both the window where the instance is contained (and on which you're running instMode) and a window for the underlying cellView (the master) is open in edit mode - and information to show that they're absolutely the same master? I cannot imagine how this is possible, knowing how things are structured in the database.

    This would be much easier to handle via a webex with customer support, BTW.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • mbracht
    mbracht over 7 years ago in reply to Andrew Beckett

    Hi Paul,

    What exactly do you mean  when you say "you opened the instance" - do you mean you opened the master in a separate window or did you just descend the hierarchy in Edit mode?

    Max

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • psill000
    psill000 over 7 years ago in reply to mbracht

    I did both. opened the cell for edit and descended into the cell for edit.

    Same result instDb~>master~>mode = "r"

    Will check in it again

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 7 years ago in reply to psill000

    Paul,

    Can you please post the results of the following, plus screenshots of the banners of the windows you've opened (the bit where it says Virtuoso Layout Suite ... Editing: lib cell view) - don't really need to see the contents, although seeing the toolbars would be useful too.

    instDb~>libName
    instDb~>cellName
    instDb~>viewName
    instDb~>master~>mode
    instDb~>cellView~>libName
    instDb~>cellView~>cellName
    instDb~>cellView~>viewName
    instDb~>cellView~>mode

    Thanks.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • psill000
    psill000 over 7 years ago in reply to Andrew Beckett

    instMode(CDB())
    "zzz_psillaLib"
    "zzzCell"
    "layout"
    "a"    ( I have to have the cell open for edit in another cell window to get an "a" for the mode; otherwise I get an "r" )
    "zzz_psillaLib"
    "zzz_psilla"
    "layout"
    "r"

    I am not sure if it is Cadence envirnoment or a trigger that places the cell into read mode if the top cell in read.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 7 years ago in reply to psill000

    OK, so everything looks correct. That contradicts what you were saying earlier, where you said that even if you opened it for edit, the mode showed "r".

    I assume what you thought was that if you opened in edit mode the cellVIew in which the  instance is contained that the master for each instance would also be in edit mode? That's not the case - it would be pretty annoying (especially in a design-managed environment) to have cellViews open by default in edit mode as this would cause a check out or lock them unnecessarily, as well as leading to a risk of unexpected changes being made. So regardless of whether the containing cellView is in "a" or "r" mode, the masters for the instances would be in "r" mode unless they're explicitly open in append mode.

    It's easy enough to reopen them in append mode though if you know you want to make changes to them. Just do:

    dbReopen(instDb~>master "a")

    Regards,

    Andrew.

    • 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