• 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 get details from schematic

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 17315
  • 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 get details from schematic

Skill User
Skill User over 11 years ago

 Hello

For an example I have 1 capacitor connected with 2 pins and 2 nets in schematic. Now I want to read these details and dump into some file with its library name, cell name and view name.

Information could be instance name, nets name, pins name etc...

Someone please help me with some script so that I can understand and start working on that.

Regards

Varun

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    Why do you keep asking the same vague questions over and over again, despite being asked to be more specific?

    I gave an answer (albeit vague, because the question was vague) in this previous thread of yours. And in this one.

    Kindest Regards,

    Andrew.

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

    Hi Varun,

    Here is a simple example of some SKILL that outputs some details to
    the CIW (not to a file, though you can modify the code to open a port
    and then use fprintf in place of printf to output to that file, and then
    use close() on the file handle).

    
    /*
    ***********************************************************************
    * DISCLAIMER: This code is provided for Cadence customers to use      *
    * with Cadence tools at their own risk. The code may require          *
    * modification to satisfy the requirements of any user. The code and  *
    * any modifications to the code may not be compatible with current or *
    * future versions of Cadence products.                                *
    * THE CODE IS PROVIDED "AS IS" AND WITH NO WARRANTIES, INCLUDING      *
    * WITHOUT LIMITATION ANY EXPRESS OR IMPLIED WARRANTIES OF             *
    * MERCHANTABILITY, FITNESS FOR A PARTICULAR USE OR NON-INFRINGEMENT.  *
    * (c) 2013 Cadence Design Systems, Inc. All rights reserved.          *
    ***********************************************************************
    
    */
    
    procedure(CCFprintSomeInfo(@optional (obj geGetEditCellView()) "d")
      if(obj~>objType=="cellView" then
        when(obj~>instances
          printf("CCFprintSomeInfo: cellview %s %s %s has instances:\n"
    	obj~>libName obj~>cellName obj~>viewName)
          foreach(inst obj~>instances
    	if(inst~>purpose=="pin"
    	  printf("Pin type %s, net:%s, term:%s\n"
    	    inst~>cellName inst~>net~>name inst~>pin~>term~>name)
    	  printf("Instance %s: terminals %L connected to %L\n"
    	    inst~>name inst~>instTerms~>name inst~>instTerms~>net~>name)
    	)
          ); foreach
          t
        ); when
      else
        printf(strcat("CCFprintSomeInfo: object of type %s\n"
          "  in cellview %s %s %s has attributes:\n%L") obj~>objType
          obj~>cellView~>libName obj~>cellView~>cellName obj~>cellView~>viewName
          obj~>??)
      ); if
    ); procedure CCFprintSomeInfo
    

    Hopefully this will help you to get started?,
    Regards,
    Lawrence.

    CCFprintSomeInfo.il
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Skill User
    Skill User over 11 years ago

    Thanks Lawrence for this script. It really helps me to get a start. I dumped some information in a file. I harcoded some syntax of XML using fprintf statements. Please let me know is that posible to dump in XML file format directly using some function or something else?

     Please share some information or procedure with an example if possible.

     Regards

    Varun

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

    Varun,

    See this post which discusses writing (and reading) XML.

    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