• 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. performance multiple value vs multiple calls to value in...

Stats

  • Locked Locked
  • Replies 0
  • Subscribers 143
  • Views 12172
  • 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

performance multiple value vs multiple calls to value in ocean

LDIL
LDIL over 5 years ago

Hello all.

Let us say that I to loop over samples of waveform wf, starting from point x1, in x2 intervals (time domain).

final_t is the last time point.

This leaves us with two main options.

Either one does for( i 0 floor( (final_point-x1 )/x2 ) )

     y_val=value( wf x1+i*final_point )

;rest of code below.

)

Option 2 would be to create a samples waveform, and loop on its' elemnts:

wf_sampled = drGetWaveformYVec( values( wf x1 ?period x2 ) )

And then do:

for( i 0 sub1( len( wf_sampled ) )

    y_val=drGetElem( wf_sampled i )

 ; rest of code below.

)

The value of val should, IMHO, be the same for each iteration. If not, I may have a bug.

Assuming that RAM is not a limiting factor, should there be a significant performance difference?

I would suspect that this may be the case, if there will a lot of samples, and value always needs to re-access the psfxl file.

Thanks,

  • 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