• 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. How to use a design variable inside value()?

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 143
  • Views 17366
  • 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

How to use a design variable inside value()?

yayla
yayla over 14 years ago

 Hi everyone,

 I want to use one of the design variable inside value() for histogram bin but I couldn't achieve. I have looked ocean and skill references and this is my final point:

 desVar("fin" 1G)

 value(db(v("/out" ?result "pss_fd") (evalstring(desVar("fin"))/8*3) ?histoDisplay nil ?noOfHistoBins 1)

 

but I couldn't get any. When I changed evalstring() part to a number, it works. Do you know how I can solve this problem?

 

Thanks,

yayla

 

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

    Yayla,

    You will still need to define the variable using desVar(), and then vary it using paramAnalysis(). The VAR() will pick up the value used in the simulation itself. Put another way, the desVar() defines the variable before the simulation is run, and the VAR() function refers to the value from the simulation itself.

    If doing a parametric sweep, you may then find that VAR() is returning a waveform - depending on the version you have, this might cause a problem when used as the interpolation value of the value() function - but try it and see. I think that was fixed some time ago (there's a workaround using famMap() if it doesn't).

    Andrew.

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

    Yayla,

    You will still need to define the variable using desVar(), and then vary it using paramAnalysis(). The VAR() will pick up the value used in the simulation itself. Put another way, the desVar() defines the variable before the simulation is run, and the VAR() function refers to the value from the simulation itself.

    If doing a parametric sweep, you may then find that VAR() is returning a waveform - depending on the version you have, this might cause a problem when used as the interpolation value of the value() function - but try it and see. I think that was fixed some time ago (there's a workaround using famMap() if it doesn't).

    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