• 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. Select nets in schematic.

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 149
  • Views 16346
  • 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

Select nets in schematic.

marbs
marbs over 16 years ago

How can I select net in schematic by using skill ?

and report all its connections ?

Thanks in advance.  

 

 

 

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 16 years ago

    Something like this:

    netName="iref"
    cv=geGetEditCellView()
    net=dbFindNetByName(cv netName)
    ; select all the wire segments on the net
    foreach(fig net~>figs geSelectFig(fig))
    ; print connections
    printf("Net %s is connected to:\n" netName)
    foreach(instTerm net~>instTerms
      printf("  Pin %s of instance %s (cell %s)\n"
        instTerm~>name instTerm~>inst~>name instTerm~>inst~>cellName
      )
    )

    Best Regards,

    Andrew.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • marbs
    marbs over 16 years ago

    Than you very much for the code sir, sorry for the late reply. 

    But I've got an error when I run the code,  something like this : 

    *Error* eval : unbound variable - netName . 

    Please complete the code.  

     

    Thank you . 

     

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 16 years ago

    Er, the first line of the code sets netName, so presumably you didn't cut and paste it, or omitted that part and didn't set it yourself...

    Of course "iref" is not necessarily the name you want.

    You could of course change it to be a function definition:

    procedure(CCSselectNet(netName)
    let((cv net)
      cv=geGetEditCellView()
      net=dbFindNetByName(cv netName)
      ; select all the wire segments on the net
      foreach(fig net~>figs geSelectFig(fig))
      ; print connections
      printf("Net %s is connected to:\n" netName)
      foreach(instTerm net~>instTerms
        printf("  Pin %s of instance %s (cell %s)\n"
          instTerm~>name instTerm~>inst~>name instTerm~>inst~>cellName
        )
      )
    )

    And then use:

    CCSselectNet("myNet")

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • marbs
    marbs over 16 years ago

    The code is excellent,

    It is now running.  Thank you very much sir.

     

     

     

     

    • 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