• 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. Skill code to assign Connectivity information to path in...

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 144
  • Views 2865
  • 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

Skill code to assign Connectivity information to path in virtuoso layout editor

Nisanth SS
Nisanth SS 9 months ago

Hi Andrew,

I'm writing a script to take the value of Property and assign it as connectivity to the same net.

I was able to print both the Property and Connectivity values for the net, but I'm not able to assign the variable to Connectivity 

Paths = geGetSelSet()
path = car(Paths) ; select first path
path~>net~>name ; print current connectivity name
net_name=car(path~>prop~>value) ; print the property name to variable
path~>net~>name = net_name ; assigning net name

*Error* setSGq: (DB-370034): dbSetq: Cannot set attribute - name

How to set the attribute to  path~>net~>name ?

Thanks,

Nisanth.SS

  • Cancel
  • mbracht
    mbracht 9 months ago

    Hi Nisanth,

    Even thouhg I am not Andrew ;-) I think I can answer this question. The name of a net OA object is a read only attribute, you cannot reassign it. You can use the dbRenameNet(..) function though:


    (dbRenameNet path~>net net_name)

    Max

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Nisanth SS
    Nisanth SS 9 months ago in reply to mbracht

    Thanks Mbracht

    I used the dbRenameNet(..) function and was able to attach the connectivity, but I'm facing the following challenges,

    The function throws an error message if the connectivity information is not present in the path.

    It writes random values to the net.

    Even though I'm not changing the value of net_name, it prints "TRUE" along with the original net_name.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • mbracht
    mbracht 9 months ago in reply to Nisanth SS

    Hi Nisanth,

    Well if - like you say - there's no connectivity then there's no net OA object on the path in the first place and in such dbRenameNet() which expects the net as it's first arguments throws an error. That is an expected behavior. Can you please elaborate on what exactly you want to do. The other thing is that the statement net_name=car(path~>prop~>value) works only if there's only one property on the path, path~>prop~>value returns a list of the values of all user defined properties. It'd be much safer to access to access the property value in terms of it's name. Assuming the name of the user defined property would be myNet (and I take it you have the name of that property) you have to:
    net_name=getq(path myNet)
    But again, we need a little more context about what you actually want to do and why you want to do it to give a reasonable answer.

    Max

    • 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