• 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. How to traverse the hierarchy in a schematic

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 144
  • Views 19859
  • 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

How to traverse the hierarchy in a schematic

aryajur
aryajur over 14 years ago

Hi,

         I am totally new to SKILL. I am trying to write a skill routine to traverse the hierarchy of a schematic. Basically I want to pick each port at the top schematic and go down the hierarchy tracing each net down the hierarchy and listing out to which pin it connects to for certain type of components. 

        What functions can help me in:

1. Listing out the ports on the schematic

2. Listing out the subcircuits in the schematics that I can open and go inside

3. Trace a net to find the components connected to it on a particular schematic.

 

Thanks.

  • Cancel
Parents
  • Quek
    Quek over 14 years ago

    Hi aryajur

    I think perhaps you can use the following method to trace schematic net connectivity:
    a. Find all instances and terminals connected to the net using the script below
    b. Open each of the instances and repeat step "a"

    "cv~>instances" gives the list of instance IDs. "cv~>instances~>master" gives the cellview ID of the master cell from which the instances where created. E.g.

    cv=geGetWindowCellView()

    cv~>instances~>name
    ("M2" "M1" "M0" "M7" "M6"
        "M5" "M4" "M3" "PIN4" "PIN1"
        "PIN0" "PIN3" "PIN2" "R2" "R3"
        "R0" "PIN5" "C0"
    )

    The above gives the instance names. But if I were to do this:

    cv~>instances~>master~>name

    I will get "nil". It is expected that both "cv~>instances~>cellName" and "cv~>instances~>master~>cellName" are the same since it is the same cell that is being used. Cell "abc" is used to create instance "I0" in a schematic. The name of the cell master is still "abc". : )


    Best regards
    Quek


    procedure( CCSgetNetObj(myNet)
       prog( (cv allInsts instList term allTerminals)
          cv=geGetWindowCellView()
          allInsts=cv~>instances
          allTerminals=cv~>terminals
          instList=list()
          foreach( inst allInsts
             when( member(myNet inst~>instTerms~>net~>name)
                instList=cons(inst instList)
             ) ;when
          ) ;foreach
          term=car(setof(x allTerminals x~>net~>name==myNet))
          if( term then
              printf("Net %s is connected to instances : %L and terminal : %s\n"
            myNet instList~>name term~>name)
          else
              printf("Net %s is connected to instances : %L\n" myNet instList~>name) 
          ) ;if
          return(list(instList term))
       ) ;prog
    ) ;procedure

    getnetobj.il
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Quek
    Quek over 14 years ago

    Hi aryajur

    I think perhaps you can use the following method to trace schematic net connectivity:
    a. Find all instances and terminals connected to the net using the script below
    b. Open each of the instances and repeat step "a"

    "cv~>instances" gives the list of instance IDs. "cv~>instances~>master" gives the cellview ID of the master cell from which the instances where created. E.g.

    cv=geGetWindowCellView()

    cv~>instances~>name
    ("M2" "M1" "M0" "M7" "M6"
        "M5" "M4" "M3" "PIN4" "PIN1"
        "PIN0" "PIN3" "PIN2" "R2" "R3"
        "R0" "PIN5" "C0"
    )

    The above gives the instance names. But if I were to do this:

    cv~>instances~>master~>name

    I will get "nil". It is expected that both "cv~>instances~>cellName" and "cv~>instances~>master~>cellName" are the same since it is the same cell that is being used. Cell "abc" is used to create instance "I0" in a schematic. The name of the cell master is still "abc". : )


    Best regards
    Quek


    procedure( CCSgetNetObj(myNet)
       prog( (cv allInsts instList term allTerminals)
          cv=geGetWindowCellView()
          allInsts=cv~>instances
          allTerminals=cv~>terminals
          instList=list()
          foreach( inst allInsts
             when( member(myNet inst~>instTerms~>net~>name)
                instList=cons(inst instList)
             ) ;when
          ) ;foreach
          term=car(setof(x allTerminals x~>net~>name==myNet))
          if( term then
              printf("Net %s is connected to instances : %L and terminal : %s\n"
            myNet instList~>name term~>name)
          else
              printf("Net %s is connected to instances : %L\n" myNet instList~>name) 
          ) ;if
          return(list(instList term))
       ) ;prog
    ) ;procedure

    getnetobj.il
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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