• 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. RF Design
  3. Subcircuit string parameters will not pass to a SUBCKT NET...

Stats

  • Locked Locked
  • Replies 9
  • Subscribers 62
  • Views 12266
  • 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

Subcircuit string parameters will not pass to a SUBCKT NET=, but works with local variable.

FormerMember
FormerMember over 4 years ago

Hello,

I'm trying to pass the name of an s2p Data File into a subcircuit parameter so I can have a subcircuit with a big template but change the s2p being used in that subcircuit by variable name.

It works if I set the name of the s2p datafile in the subcircuit, but it does not work if I pass the s2p data file name as a string argument to the subcircuit.  The first image shows it working with A="100A0R5" and the second image shows the error with A<<"100A0R5".  Is this some kind of bug when passing strings to subcircuits and using them with NET= in a sub-subcircuit?  I have attached a small test project to demonstrate the problem.  Just change the A<< parameter to an A= variable in the S2 schematic and press F8 to render the graph:

Working:

Not Working:

Here is the error:

Here is the .emz:

Subcircuit Parameter Test.zip

  • Cancel
Parents
  • FormerMember
    FormerMember over 4 years ago

    Oh, I got it to work!  You have to right-click on the A<<"String" EQN and set its datatype to a string.

    Maybe someone can pass this on to the developers: it sure would be nice if the error said something like "Error evaluating parameter 'A', expecting variable type of 'String'" or something similar.  It would have at least pointed me in the right direction.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • FormerMember
    FormerMember over 4 years ago in reply to FormerMember

    Actually I think the error in this example might more accurately be something like "A@SUBCKT.S1 is of type Real but was passed a String"

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • FormerMember
    FormerMember over 4 years ago in reply to FormerMember

    Actually I think the error in this example might more accurately be something like "A@SUBCKT.S1 is of type Real but was passed a String"

    • 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