• 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. close all views opened by dbOpenCellViewByType()

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 143
  • Views 18546
  • 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

close all views opened by dbOpenCellViewByType()

pkerichang
pkerichang over 8 years ago

Hello,

I noticed that when you use dbOpenCellViewByType() to open a schematic view, it actually will also open all symbol views contained in the schematic.  As the result, This makes tracking references hard and could even have unintentional edit locks.  For example, suppose schematic A contains the symbol of B, and if we perform the following operation:

calling dbOpenCellViewByType() with append mode on A opens A in append mode, symbol of B in read mode.

calling dbClose() on A closes A.

calling dbOpenCellViewByType() with append mode on symbol of B will change it to append mode, and increment reference count by 1.

calling dbClose() on B does not close B (because it still has reference count of 1), and now it still has an edit lock.

Now my work-around is always use dbReopen() before dbClose() to change append mode back to read mode, so when dbClose() fails at least I don't have edit lock problems.  However, this leaves a lot of unnecessary cellviews in virtual memory, and over time this could become a problem.  Is there a way to find all the cellviews opened by the dbOpenCellViewByType() command?

 

  • 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