• 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. how to calculate signal width in a cellView

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 144
  • Views 13164
  • 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

how to calculate signal width in a cellView

vincentmt
vincentmt over 15 years ago

Hi all,

 

i am wondering, how can i calculate total width for every single signal in a cell view. i wish the result text file show me the signal name and it's total width.

 

Thanks

 Vincent

  • Cancel
  • Quek
    Quek over 15 years ago
    Hi Vincent

    I think there are not too many details in your question so I am going to guess a little. I will guess that you need only the info for top level interconnects. : P  The following script will send width info of all the top level shapes to a text file. Hope that you can improve on it to do what you want. When posting a question, it would be great if you can state the specific version of Virtuoso which you are using.

    unix>icfb -W
    unix>virtuoso -W

    Load the script and press F10 in a layout. Look for the output file "sigWidth.txt".

    Best regards
    Quek

    procedure( CCSsigWidth()
       let( (cv outPort sName sWidth)
          cv=geGetWindowCellView()
          outPort=outfile("sigWidth.txt")
          fprintf(outPort "Signal Name\tWidth\n")
          fprintf(outPort "===========\t=====\n")
          foreach(shape cv~>shapes
             sName=shape~>net~>name
             sWidth=shape~>width
             if( sName && sWidth then
               fprintf(outPort "%s\t%g\n" sName sWidth)
             ) ;if
          ) ;foreach

          close(outPort)
          outPort=nil
          printf("Signal width info has been sent to file sigWidth.txt")
       ) ;let
    ) ;procedure

    hiSetBindKey("Layout" "F10" "CCSsigWidth()")
    sigwidth.il
    • 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