• 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. using Skill to Copy Config viiews

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 6164
  • 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

using Skill to Copy Config viiews

Ali Bastami
Ali Bastami over 2 years ago

Hi all,

I am trying to create a simple function to copy one golden config view to new configviews and change the top cell view for the new config views.

Using the following code creates copies of the golden config but when I change the top cellview the new configs will all be empty of contnent:

cv=hdbOpen(MyWorkLib MyTB GoldenConfig "r") 
hdbSaveAs( cv MyWorkLib MyTB MyConf)  ; MyConf is the new config view
hdbClose(cv)

SchView="schematic_test1"
new_cv=hdbOpen(MyWorkLib MyTB MyConf "w")
hdbSetTopCellViewName(new_cv MyWorkLib MyTB SchView)
hdbSave(new_cv)
hdbClose(new_cv)

 Any Idea why? Have I missed any steps?

Thank you in advance!

  • Cancel
  • AaronSymko
    AaronSymko over 2 years ago

    Try using "a" mode (instead of "w") for the hdbOpen command.  When you use "w", it essentially overrides all the previous settings, whereas "a" will retain the previous settings (like libList, viewList, etc).

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • skillUser
    skillUser over 2 years ago

    Hi Ali,

    I think it is because your second call to hdbOpen() uses "w" (write/overwrite) for the mode rather than "a" (append/edit).

    Regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Ali Bastami
    Ali Bastami over 2 years ago in reply to skillUser

    Hi Lawrence,

    That was exactly the issue!

    Thank you!

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillUser
    skillUser over 2 years ago

    Looks like Aaron and I posted at almost the same time (so I didn't see his response while I was replying) - his answer and mine are essentially the same, and since technically his reply was first he should get any credit/kudos :-)  but thank you for the thanks.

    • 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