• 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 Design
  3. How to load viaGetViaOptions Function inside PCELL

Stats

  • Replies 4
  • Subscribers 125
  • Views 693
  • Members are here 0

How to load viaGetViaOptions Function inside PCELL

Esteban Saavedra
Esteban Saavedra 1 month ago

Hi all,

I'm trying to use the function viaGetViaOptions inside a pcell, but I get an error that the function is not defined, how can I define it?

Thank you

  • Sign in to reply
  • Cancel
  • Esteban Saavedra
    Esteban Saavedra 1 month ago

    here is a small code where I'm using it

    pceDefinePcell(

    .

    .

    techFile = techGetTechFile(ddGetObj("tsmcN3"))

    metalWidth = techGetSpacingRule(demoTfId "minWidth" "M17")
    metalLength = techGetSpacingRule(demoTfId "minArea" "M17")/metalWidth

    constraintGroupId = cstFindConstraintGroupIn(techFile "virtuosoDefaultSetup")
    myViaOptions = viaGetViaOptions(constraintGroupId)
    myViaOptions~>createInRoute = nil
    myViaOptions~>createAsROD = t
    myViaOptions~>rodName = "sourceVias"


    );pceDefinePcell

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Andrew Beckett
    Andrew Beckett 1 month ago in reply to Esteban Saavedra
    Esteban Saavedra said:
    I'm trying to use the function viaGetViaOptions inside a pcell, but I get an error that the function is not defined, how can I define it?

    You can't. The via* functions are not supported in PCells. This is from the Virtuoso Parameterized Cell Reference manual:

    Recommended and Supported SKILL Functions for Pcells
    When you create SKILL routines within Pcells, use only the following functions:

    • The SKILL functions documented in Cadence SKILL Language Reference; for example, car, if, foreach, sprintf, while.
    • SKILL functions from the db, dd, cdf, rod, tech, abe, cst, and tx families.
    • There are a few "pc" functions too - covered in the Virtuoso Parameterized Cell Reference manual
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Esteban Saavedra
    Esteban Saavedra 1 month ago in reply to Andrew Beckett

    Thanks for the answer, then, there is an funtion that is supported by pcells to create the vias similar to viaGenerateViasInArea?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Andrew Beckett
    Andrew Beckett 1 month ago in reply to Esteban Saavedra

    No. There's dbCreateVia, but you have to do the computation yourself of the parameters. The reason being that the via engine has to take many things into consideration and this could change over time (as new functionality comes on board), but within a PCell you need consistency between releases, so sadly there's no access to the via engine functionality within a PCell.

    We do (in the PCell Designer tool) have a via fill command which does this - it has the ability to fill a given region with vias.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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