Home > Community > Forums > Custom IC Design > Pin searching in the layout top

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

 Pin searching in the layout top 

Last post Thu, Oct 27 2011 3:15 AM by mfyee. 8 replies.
Started by mfyee 24 Oct 2011 04:42 AM. Topic has 8 replies and 2008 views
Page 1 of 1 (9 items)
Sort Posts:
  • Mon, Oct 24 2011 4:42 AM

    • mfyee
    • Not Ranked
    • Joined on Thu, Aug 18 2011
    • Posts 8
    • Points 115
    Pin searching in the layout top Reply

    Hi there,

     I am planning to find the pin in my top layer using Skill in IC5141 following is my simple skill

     pinLayerList = list (list (MEAL1 "PIN") (METAL5 "PIN"))

    and i am using the following to capture my pin

     foreach (pinLay pinLayerList

    allPins = appened (allPins leSearchHierarchy(cvId cvId~> bBox 0 "rectangle" list(list("layer" "==" pinLay))))

    )

    However instead of return Metal1 and Metal5 pins it returns all my other drawinig layer in the top, please kindly point out what is wrong with my scripts. Thank you very much.

     Regards,

     

    Filed under:
    • Post Points: 20
  • Mon, Oct 24 2011 7:59 AM

    • Quek
    • Top 10 Contributor
    • Joined on Wed, Oct 14 2009
    • Singapore, 00-SG
    • Posts 1,051
    • Points 15,990
    Re: Pin searching in the layout top Reply

    Hi mfyee

    You had not specified to only search for pins in leSearchHierarchy. That's why you got all the shapes. The following cmd should have been used:

    leSearchHierarchy(cvId cvId~> bBox 0 "pin" list(list("layer" "==" pinLay)))

    If it is just top level pins, you can also use this:

    procedure( CCSfindPins()
       prog( (cv pinLayerList allPins targetPins)
          cv=geGetWindowCellView()
          pinLayerList=list( '("Metal1" "PIN") '("Metal5" "PIN") )
          allPins=list()
          foreach( pinLay pinLayerList
             targetPins=setof(x cv~>shapes x~>pin && x~>lpp==pinLay)
             allPins=append(allPins targetPins)
          ) ;foreach
          return(allPins)
       ) ;prog
    ) ;procedure

    I prefer to use "prog+return" instead of just using "let" to return the last value. Just a personal preference. : )

    Best regards
    Quek

    • Post Points: 20
  • Mon, Oct 24 2011 6:28 PM

    • mfyee
    • Not Ranked
    • Joined on Thu, Aug 18 2011
    • Posts 8
    • Points 115
    Re: Pin searching in the layout top Reply

    Hi Quek,

    Great to hear from you again, its been a long time. i have tried to use "pin" as your first suggestion but the problem is, it returns nothing but nil. i have also check on the user guide itself where i don't see "pin" as one of the option in leSearchHierarchy function. i will try on your second suggestion, although i hope to get the 'leSearchHierarchy' done as this scripts might also need to search the pin down to more hierarchy.

     Thank you for your suggestion very much.

     Best regards,

    MF

    • Post Points: 20
  • Mon, Oct 24 2011 6:38 PM

    • Quek
    • Top 10 Contributor
    • Joined on Wed, Oct 14 2009
    • Singapore, 00-SG
    • Posts 1,051
    • Points 15,990
    Re: Pin searching in the layout top Reply

    Hi MF

    "pin" is one of the object types listed in IC61x layout SKILL reference manual. It is not listed in IC51 layout SKILL manual.

    Best regards
    Quek


    • Post Points: 20
  • Mon, Oct 24 2011 7:24 PM

    • mfyee
    • Not Ranked
    • Joined on Thu, Aug 18 2011
    • Posts 8
    • Points 115
    Re: Pin searching in the layout top Reply

    Dear Quek,

     I am not sure if this is applicable in IC5, since i need the code to deal with the old library where id cdb format and it is not possible to migrate to IC6. I have tried your script using Prog but its also grep all the elements on the top instead of just pin. would this be i specified the datatype wrongly?

    Thanks for all the help.

     Best regards,
    MF

    • Post Points: 20
  • Mon, Oct 24 2011 8:14 PM

    • Quek
    • Top 10 Contributor
    • Joined on Wed, Oct 14 2009
    • Singapore, 00-SG
    • Posts 1,051
    • Points 15,990
    Re: Pin searching in the layout top Reply

    Hi MF

    I just tested the script on IC5141-500-6-150. It seems to be working fine. It returns only the pinIDs. 

    Best regards
    Quek

    • Post Points: 20
  • Mon, Oct 24 2011 8:45 PM

    • mfyee
    • Not Ranked
    • Joined on Thu, Aug 18 2011
    • Posts 8
    • Points 115
    Re: Pin searching in the layout top Reply

    Dear Quek,

    I have found the problem on the scripts, i have tried running the leSearcHierarchy function as before by defining the correct layer e.g. "METAL5" "pin" it returns only the pin ID but the problem is once the particular layer is not found or group together with other layers like

     pinLayerList = list (list("M1" "pin") list("METAL5" "pin")

    where M1 is not exist in the technology(but i need this to be the universal program which use on different technology). in this scenario the leSearchHierarchy will grep all the metal layer on the top, but it is fine when i define as below,

     pinLayerList = list (list("METAL1" "pin") list("METAL5" "pin")

    I wonder why is this goes wrong, should leSearchHierarchy only return the value that exist?

     Many thanks.

     Regards,MF

     

     

     

     

    • Post Points: 20
  • Wed, Oct 26 2011 11:42 PM

    • Quek
    • Top 10 Contributor
    • Joined on Wed, Oct 14 2009
    • Singapore, 00-SG
    • Posts 1,051
    • Points 15,990
    Re: Pin searching in the layout top Reply

    Hi MF

    I can reproduce your observations. It seems that leSearchHierarchy will return all pins instead of nil when a non-existent LPP is used. How about adding a check for the LPP? E.g.

    procedure( CCSfindPins()
       prog( (cv tf pinLayerList allPins)
          cv=geGetWindowCellView()
          tf=techGetTechFile(ddGetObj(cv~>libName))
          pinLayerList = list( '("METAL1" "PIN") '("METAL5" "PIN") )
          allPins=list()
          foreach (pinLay pinLayerList
             if( techGetLP(tf pinLay) then
                allPins = append(allPins leSearchHierarchy(cvId cvId~>bBox 0 "pin" list(list("layer" "==" pinLay))))
             else
                printf("LPP %L not found in techfile\n" pinLay)
             ) ;if
         ) ;foreach
          return(allPins)
       ) ;prog
    ) ;procedure


    Best regards
    Quek

    • Post Points: 20
  • Thu, Oct 27 2011 3:15 AM

    • mfyee
    • Not Ranked
    • Joined on Thu, Aug 18 2011
    • Posts 8
    • Points 115
    Re: Pin searching in the layout top Reply

    Dear Quek,

    Thanks for giving me the instruction to get the metal layer that available on the Tech file only, and now it works great. Thanks so much and it is always please to work with you all the while.

     Best regards, MF

    • Post Points: 5
Page 1 of 1 (9 items)
Sort Posts:
Started by mfyee at 24 Oct 2011 04:42 AM. Topic has 8 replies.