• 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. skill code to find out VIA coordinates from given layou...

Stats

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

skill code to find out VIA coordinates from given layout

Gunwant
Gunwant over 9 years ago

Hi,

Can someone tell me skill code to extract VIA locations from given layout ? e.g I have metal 5 and metal 6 in my layout and i m mainly interested in knowing VIA5 locations. Is there skill code to get this ?

  • Cancel
Parents
  • Sheppy
    Sheppy over 9 years ago

    Hi Gunwant,

    Please find below a little procedure that goes through all cells in a given library and reports a few details about vias in a cellview.

    procedure( extractViaInformationInLibrary( libName "S" )
      let( ( ( libDbId nil )
        ( cellName "" )

        ( viewName "" )
        ( cellView nil )
        ( viewType "" ) )

        printf( "Going through all cells in library %L to find via's and report their details...\n" libName )
        ;;; Getting the information (database ID) for the library...
        libDbId = ddGetObj( libName )

        ;;; Search in all cells of given library, if library exists...
        when( libDbId
          foreach( cell libDbId~>cells
            cellName = cell~>name
            foreach( view cell~>views
              viewName = view~>name
              cellView = dbOpenCellViewByType( libName cellName viewName nil "r" )
              viewType = dbGetq( cellView cellViewType )
              when( equal( viewType "maskLayout" ) && cellView~>vias
                printf("This is a valid cell-view WITH vias: %L %L %L\n" libName cellName viewName )
                foreach( via cellView~>vias
                  printf( "    Via details: type = %L | origin = %L | orientation = %L | connectivity = %L\n" via~>viaHeader~>viaDefName via~>origin via~>orient via~>net~>name )
                )
              ) ;;; end of when viewType
            ) ;;; end of foreach view
          ) ;;; end of foreach cell
        ) ;;; end of when libDbId
        t
      ) ;;; end of let
    ) ;;; end of procedure extractViaInformationInLibrary

    Load the code and run it by doing this:

    extractViaInformationInLibrary( "your_library_name" )

    This will give you some information about all vias in the library.

    With kind regards,

    Sjoerd

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Sheppy
    Sheppy over 9 years ago

    Hi Gunwant,

    Please find below a little procedure that goes through all cells in a given library and reports a few details about vias in a cellview.

    procedure( extractViaInformationInLibrary( libName "S" )
      let( ( ( libDbId nil )
        ( cellName "" )

        ( viewName "" )
        ( cellView nil )
        ( viewType "" ) )

        printf( "Going through all cells in library %L to find via's and report their details...\n" libName )
        ;;; Getting the information (database ID) for the library...
        libDbId = ddGetObj( libName )

        ;;; Search in all cells of given library, if library exists...
        when( libDbId
          foreach( cell libDbId~>cells
            cellName = cell~>name
            foreach( view cell~>views
              viewName = view~>name
              cellView = dbOpenCellViewByType( libName cellName viewName nil "r" )
              viewType = dbGetq( cellView cellViewType )
              when( equal( viewType "maskLayout" ) && cellView~>vias
                printf("This is a valid cell-view WITH vias: %L %L %L\n" libName cellName viewName )
                foreach( via cellView~>vias
                  printf( "    Via details: type = %L | origin = %L | orientation = %L | connectivity = %L\n" via~>viaHeader~>viaDefName via~>origin via~>orient via~>net~>name )
                )
              ) ;;; end of when viewType
            ) ;;; end of foreach view
          ) ;;; end of foreach cell
        ) ;;; end of when libDbId
        t
      ) ;;; end of let
    ) ;;; end of procedure extractViaInformationInLibrary

    Load the code and run it by doing this:

    extractViaInformationInLibrary( "your_library_name" )

    This will give you some information about all vias in the library.

    With kind regards,

    Sjoerd

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Purge2343
    Purge2343 over 5 years ago in reply to Sheppy

    Hey 

    is it possible to use the same structure to get the metal information? 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 5 years ago in reply to Purge2343

    What do you mean by "metal information"? I'm assuming that since you asked another question in this post, we'll discuss it there instead.

    Andrew

    • 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