• 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. passing variable number of params in spectre subckt call...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 125
  • Views 11191
  • 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

passing variable number of params in spectre subckt call?

smikes
smikes over 4 years ago

I'm trying to create a custom parasitic wrapper for a transistor. Something very much like the example from the Spectre reference manual for inline subcircuits.

Here's an example:

inline subckt nmos_macro (D G S B)

    parameters l=7n w=112.0n

    nmos_macro (D G S B) nmos l=l w=w

     cgs_m (G S) capacitor c=10f

    cds_m (D S) capacitor c=10f

ends nmos_macro

I'm then using User-CDF to effect a model swap when netlisting, calling the _macro instead of the base device.

The problem I'm running into is that the base transistor device has dozens of parameters, but only some of them are used depending on the context. For example, a regular schematic simulation will specify a certain set of params, but an extracted view will have another (partially overlapping) set. The params that are not specified presumably keep their default values according to the model definition.

This makes a little bit of a headache when creating the macro model, since it looks like I would have to list *all* possible parameters with their default values.

What would make this much simpler is if there were a way to just pass any extra arguments on, like most programming languages have some form of *args for functions accepting a variable number of parameters.

This is a long shot, but can Spectre handle something like that? 

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 4 years ago

    I don't think there's currently a way to do this - I can certainly see some use in being able to though. Most often when creating a wrapper macro model like this, people usually restrict the parameters that can be passed. You might want to contact customer support to explore in more detail and determine whether filing an enhancement request makes sense.

    Regards,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 4 years ago

    I don't think there's currently a way to do this - I can certainly see some use in being able to though. Most often when creating a wrapper macro model like this, people usually restrict the parameters that can be passed. You might want to contact customer support to explore in more detail and determine whether filing an enhancement request makes sense.

    Regards,

    Andrew

    • 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