• 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 17010
  • 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
  • skillUser
    skillUser over 9 years ago
    Gunwant,

    I don't know which version you are using and that's important because earlier versions and current versions of Virtuoso represent vias differently. Assuming that you are using something recent (IC61x or ICADV12x) then vias are represented as objects in a layout - from the cellview database ID you can get the vias (e.g. geGetEditCellView()~>vias). From there you can get the types and locations - here's an example for showing me M4_M3 via locations:

    setof(via geGetEditCellView()~>vias via~>viaHeader~>viaDef~>name=="M4_M3")
    => (db:0x29c9ca9a db:0x29c9ca9b db:0x29c9ca9c db:0x29c9ca9d db:0x29c9ca9e
    db:0x29c9caa5
    )
    setof(via geGetEditCellView()~>vias via~>viaHeader~>viaDef~>name=="M4_M3")~>xy
    => ((0.0 0.0)
    (7.58 0.0)
    (7.58 3.585)
    (3.325 4.515)
    (7.605 7.585)
    (0.0 2.215)
    )

    If you are asking about just the via layer cut shape then you can get to that too, but you'd need to transform the shape from the master to the current location, but I'm not even sure that's what you're asking for (your question is fairly vague).

    I hope this helps,

    Lawrence.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • 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
  • Gunwant
    Gunwant over 9 years ago
    Hi Lawrence,
    Thanks for your reply. As of now,I need just VIAcoordinates for running reliability flow. For some reason your code is not giving all via co-ordinates. I am using ICADV12x.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • 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