Home > Community > Forums > Custom IC SKILL > skill code to get details from schematic

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 skill code to get details from schematic  

Last post Wed, Oct 23 2013 5:35 AM by Andrew Beckett. 4 replies.
Started by Skill User 22 Oct 2013 05:30 AM. Topic has 4 replies and 2879 views
Page 1 of 1 (5 items)
Sort Posts:
  • Tue, Oct 22 2013 5:30 AM

    • Skill User
    • Not Ranked
    • Joined on Tue, Jul 16 2013
    • Bangalore, Karnataka
    • Posts 15
    • Points 255
    skill code to get details from schematic Reply

     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

    • Post Points: 35
  • Tue, Oct 22 2013 5:39 AM

    Re: skill code to get details from schematic Reply

    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.

    • Post Points: 5
  • Tue, Oct 22 2013 10:57 AM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,598
    • Points 16,075
    Re: skill code to get details from schematic Reply

    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.

    • Post Points: 20
  • Tue, Oct 22 2013 11:04 PM

    • Skill User
    • Not Ranked
    • Joined on Tue, Jul 16 2013
    • Bangalore, Karnataka
    • Posts 15
    • Points 255
    Re: skill code to get details from schematic Reply

    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

    • Post Points: 20
  • Wed, Oct 23 2013 5:35 AM

    Re: skill code to get details from schematic Reply

    Varun,

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

    Regards,

    Andrew.

    • Post Points: 5
Page 1 of 1 (5 items)
Sort Posts:
Started by Skill User at 22 Oct 2013 05:30 AM. Topic has 4 replies.