• 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. use of multiple calcVal() expressions to create a sweep...

Stats

  • Replies 2
  • Subscribers 125
  • Views 1559
  • Members are here 0

use of multiple calcVal() expressions to create a sweep in the dependent test

Parvez
Parvez 5 months ago

Hi,

I have some expressions named as "code_1ui" and "code_2ui" in test1 that generate integer codes in each corner.

In test2, I want to fetch these variables and create a sweep, such that test2 runs for code_1ui and code_2ui in all the matching corners (I am using the same corners in both tests).

I am trying to do this by defining a variable in test2 as follows:

code_to_use: calcVal("code_1ui" "test1" ?historyName "Interactive.20" ),calcVal("code_2ui" "test1" ?historyName "Interactive.20" )

Although it can fetch code_1ui values in the first sweep of test2, it can't get the code_2ui values in the 2nd sweep.

 

Please let me know if this is possible and what is the correct way of doing this.

Best regards,

Parvez.

  • Sign in to reply
  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett 5 months ago

    Parvez,

    You can't do this. Sweep points cannot be the result of a function.

    You could however (and I didn't test this) create two variables:

    simpleSweep: 1,2
    code_to_use: case(simpleSweep (1 calcVal("code_1ui" "test1" ?historyName "Interactive.20" )) (2 calcVal("code_2ui" "test1" ?historyName "Interactive.20" ))

    (You might need to use VAR("simpleSweep") instead of just referring to it directly, but I think it should be fine with the simple reference). In essence you are just sweeping with fixed values, and then having a more complex dependent expression to do the lookup.

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Parvez
    Parvez 5 months ago in reply to Andrew Beckett

    Thanks, Andrew.

    It worked with a slight modification to avoid the complications of having a different local sweep in test2 (there was no sweep in test1):

    code_to_use: case(simpleSweep (1 calcVal("code_1ui" "test1" ?historyName "Interactive.20" ?getFirstSweepPoint t )) (2 calcVal("code_2ui" "test1" ?historyName "Interactive.20" ?getFirstSweepPoint t )))

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Parvez
    Parvez 5 months ago in reply to Andrew Beckett

    Thanks, Andrew.

    It worked with a slight modification to avoid the complications of having a different local sweep in test2 (there was no sweep in test1):

    code_to_use: case(simpleSweep (1 calcVal("code_1ui" "test1" ?historyName "Interactive.20" ?getFirstSweepPoint t )) (2 calcVal("code_2ui" "test1" ?historyName "Interactive.20" ?getFirstSweepPoint t )))

     

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