• 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. compare schematic and layout pins

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 144
  • Views 14762
  • 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

compare schematic and layout pins

vkannoth
vkannoth over 10 years ago

need a skill script which will compare schematic pins with layout pins in a given hierarchy. 

  • Cancel
  • meland
    meland over 10 years ago

    Your question is somewhat vague. Have you tried anything?

    layout:

    a=geGetEditCellView()

    a~>shapes~>lpp

    a~>shapes~>theLabel

    schematic:

    a=geGetEditCellView()

    a~>terminals~>name

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • vkannoth
    vkannoth over 10 years ago

    wanted skill script which will compare and dump out the mismatch between the pins in layout and schematics for a given cell.

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

    Something like this might do what you want:

    /* CCFcompareTerminals.il
    
    Author     A.D.Beckett
    Group      Custom IC (UK), Cadence Design Systems Ltd.
    Language   SKILL
    Date       Jun 25, 2015 
    Modified   
    By         
    
    Compare terminals between two cellViews
    
    ***************************************************
    
    SCCS Info: @(#) CCFcompareTerminals.il 06/25/15.21:28:36 1.1
    
    */
    
    /***************************************************************
    *                                                              *
    *                 CCFcompareTerminals(cv1 cv2)                 *
    *                                                              *
    *      Compare terminals between two different cellViews       *
    *     and print out some information about the differences     *
    *                                                              *
    ***************************************************************/
    
    procedure(CCFcompareTerminals(cv1 cv2)
        let((termInfo termRec lcv1 lcv2)
            sprintf(lcv1 "%s/%s/%s" cv1~>libName cv1~>cellName cv1~>viewName)
            sprintf(lcv2 "%s/%s/%s" cv2~>libName cv2~>cellName cv2~>viewName)
            termInfo=makeTable('termInfo nil)
            foreach((prop cv) '(cv1 cv2) list(cv1 cv2)
                foreach(term cv~>terminals
                    foreach(termName dbProduceMemName(term~>name)
                        unless(termRec=termInfo[termName]
                            termRec=list(nil)
                        )
                        putprop(termRec term~>direction prop)
                        termInfo[termName]=termRec
                    )
                )
            )
            foreach(termName sort(termInfo->? nil)
                termRec=termInfo[termName]
                cond(
                    (termRec->cv1 && !termRec->cv2
                        printf("Terminal %s missing in %s\n" termName lcv2))
                    (termRec->cv2 && !termRec->cv1
                        printf("Terminal %s missing in %s\n" termName lcv1))
                    (termRec->cv1 != termRec->cv2
                        printf("Terminal %s - direction mismatch (%s : %s) (%s : %s)\n" termName lcv1 termRec->cv1 lcv2 termRec->cv2))
                )
            )
            t
        )
    )
    
    
    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • vkannoth
    vkannoth over 10 years ago

    Thanks, Andrew. This is perfect.

    This is what i was looking for. only thing is i just need to assign cv1 & cv2 seperately.

    thank you once again!!

    • 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