• 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. Can dbOpenCellViewByType Open a Config View?

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 15067
  • 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

Can dbOpenCellViewByType Open a Config View?

Curtisma
Curtisma over 8 years ago

I am trying to check that a schematic and config view exists for a specific cell and display a custom error message if it doesn't exist.  However the dbOpenCellViewByType call I am using seems to work for the schematic view but not for the config view.  Is there a better way of checking for the existence of a config cell view?  (or for the schematic for that matter)

Here is the code I have tried:  ( The first check on the schematic does not cause an error, whereas the config check does.  Both the schematic and the config views exist.

; Check that the test bench schematic view exists
schemCellObj = dbOpenCellViewByType("pk1126_sky77366_5_CR_mayberc" "pk1126_demo_TB" "schematic")
if(schemCellObj == nil
then
error("The schematic view must be created before the ADEXL view is imported. Please makse sure the testbench schematic and config views have been created and try importing the adexl view again.")
else
dbClose(schemCellObj));

; Check that the test bench config view exists
configCellObj = dbOpenCellViewByType("pk1126_sky77366_5_CR_mayberc" "pk1126_demo_TB" "config")
if(configCellObj == nil
then
error("The config view must be created before the ADEXL view is imported. Please makse sure the testbench schematic and config views have been created and try importing the adexl view again.")
else
dbClose(configCellObj));

Here is the error I get:

*WARNING* (DB-270211): dbOpenCellViewByType: Failed to open cellview (pk1126_demo_TB config) from lib (pk1126_sky77366_5_CR_mayberc) in 'r' mode because cellview does not exist, or cellview type is not recognized by dbOpenCellViewByType.
*Error* The config view must be created before the ADEXL view is imported. Please makse sure the testbench schematic and config views have been created and try importing the adexl view again.
*Error* load: error while loading file - "/prj/crdc_dev/mayberc/Github/SkyVer_sandbox/tbx/doc/examples/SKY77366_pk1126/pk1126_demo_TB_test.il" at line 34

I am using IC6.17-64b.500.8

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    The db function won't work for a config, because it's not an OA database. It's a hierarchy editor config view instead.

    There's a simple API to check this:

    hdbIsConfig("pk1126_sky77366_5_CR_mayberc" "pk1126_demo_TB" "config")

    which will return t or nil.

    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