Home > Community > Forums > Custom IC SKILL > Search and Replace

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: *

 Search and Replace 

Last post Wed, Nov 28 2012 6:46 AM by ashishcic. 3 replies.
Started by ashishcic 27 Nov 2012 11:13 AM. Topic has 3 replies and 804 views
Page 1 of 1 (4 items)
Sort Posts:
  • Tue, Nov 27 2012 11:13 AM

    • ashishcic
    • Not Ranked
    • Joined on Tue, Nov 27 2012
    • Posts 3
    • Points 30
    Search and Replace Reply

    Hi Experts,

    Does ic5141 have any S&R utlility? If yes where can I find it?

    I also need a SKILL script that would place all the symbols in a library into one schematic. Here is the description of what I need:

    The script will put the symbols for all IP’s in a schematic cell.

    The call should be something like:

    CreateAllIPinOneSchematic(“srcLibPattern”, “trgLibName”, “allIPinoneSchematicName”)

    It should search for all libraries starting with the string matching the srcLibPattern and put all the symbols of the cell that has the same name as the library in a schematic called “allIPinoneSchematicName” in Library “trgLibName”. 

    Can I get SKILL for this? Or some pointer will help.

     Regards.

    Ash 

    • Post Points: 5
  • Wed, Nov 28 2012 3:07 AM

    • ashishcic
    • Not Ranked
    • Joined on Tue, Nov 27 2012
    • Posts 3
    • Points 30
    Re: Search and Replace Reply

    Folks, 

    Any clues for SKILL query? 

    • Post Points: 20
  • Wed, Nov 28 2012 5:31 AM

    Re: Search and Replace Reply

    If this was urgent you should log a service request with customer support - we're all volunteers here - even those from Cadence who post do so in their spare time.

    Yes, IC5141 has a search and replace (Edit->Search->Replace in the schematic editor).

    And you could write SKILL for this. Something like:

    procedure(CreateAllIPinOneSchematic(srcLibPattern trgLib trgCell @key (xSpacing 1.0) (srcView "symbol") (trgView "schematic"))
      let((srcCv trgCv x)
        trgCv=dbOpenCellViewByType(trgLib trgCell trgView "schematic" "w")
        foreach(srcLib rexMatchList(srcLibPattern ddGetLibList()~>name
          foreach(srcCell ddGetObj(srcLib)~>cells~>name
            when(ddGetObj(srcLib srcCell srcView)
              srcCv=dbOpenCellViewByType(srcLib srcCell srcView)
              when(srcCv
                dbCreateInst(trgCv srcCv "" x:0 "R0")
                x=x+xSpacing
              )
            )
          )
        )
      )
    )

    Something like that. Note I have not tested the above - just typed it into the post - and it's intended to give you the rough idea. I'll leave you to finish and test it.

    Regards,

    Andrew.

    • Post Points: 20
  • Wed, Nov 28 2012 6:46 AM

    • ashishcic
    • Not Ranked
    • Joined on Tue, Nov 27 2012
    • Posts 3
    • Points 30
    Re: Search and Replace Reply
    Hi Andrew, Appreciate your help. Regards, Ashish
    • Post Points: 5
Page 1 of 1 (4 items)
Sort Posts:
Started by ashishcic at 27 Nov 2012 11:13 AM. Topic has 3 replies.