• 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 Design
  3. How to count the number of digital gates used on my virtuoso...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 125
  • Views 16126
  • 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 count the number of digital gates used on my virtuoso schematic?

ericliu
ericliu over 15 years ago
I have used Cadence Virtuoso to compose a schematic which was made up of only standard digital gates from the foundry's libraries. Is there a tool that gives me the total number of gates appearing on my schematic? The schematic was composed in a hierarchical manner and I'd like to count the digital gates in all levels.
Can I also find out how many transistors are there on my schematic?
Thanks in advance.
Eric
  • Cancel
  • skillUser
    skillUser over 15 years ago

    Hi Eric,

    One thing that you might be able to do is to find these instances based on the cellname (or perhaps the inverse, what that cell is not named).  Here's a brief example:

    
      cv = geGetEditCellView()
      => db:0x452bdf92
      stdCells = setof(inst cv~>instances rexMatchp("^std" inst~>cellName))
      => (db:0x452bdc12 db:0x452bdc13)
      count = length(stdCells)
      => 2
    

     In the example above, we are searching for a cell instance which has a cell name that starts with "std", using a regular expression match within a setof expression.  You can try searching for solutions that expand or follow the hierarchy, the way that a netlister might, in order to get hierarchical information. Also there is a "Tree" function for layouts, and solutions for schematic Tree code - search for these to get a hierarchical listing of a design.

    I hope that this code snippet and information helps you to get started.

    Regards,

    Lawrence.

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

    You could probably use code similar to Cadence Online Support Solution 11581916

    It would need a bit of tweaking (because this is just to count leaf cells) but wouldn't be too hard to modify.

    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