• 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. Array manipulation in calculator

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 125
  • Views 15847
  • 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

Array manipulation in calculator

manudupouy
manudupouy over 9 years ago

Hello,

I need to manipulate arrays with expression editor of the calculator. But I did not succeed.

I made a simple simulation of Id=f(Vgs) para um transistor NMOS. I put the result of Id in a variable: Id = i("/V1/PLUS" ?result "dc").

There is 50 points of simulation. How can I keep only the last 30 points for example.

I tried Id_reduc = Id[20:50], but it don't work.

I know it exists clip function, but for me, it would be easier to directly manipulate an array with its reference.

Thanks in advance

Emmanuel

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

    It's not an array. There are arrays in SKILL and there's no array slice operator (arrays aren't used very often anyway) - but either way waveform objects are not arrays.

    The reason being that waveforms often have irregular x-axis ranges and they consistent of both an x vector and a y vector.

    It would be possible to create a function to do this (I could write one easily enough), but I'm really not convinced you want to do that. Why not just use the clip function? That's pretty easy to use and then is independent of the actual steps you took in the simulation.

    Regards,

    Andrew.

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

    It's not an array. There are arrays in SKILL and there's no array slice operator (arrays aren't used very often anyway) - but either way waveform objects are not arrays.

    The reason being that waveforms often have irregular x-axis ranges and they consistent of both an x vector and a y vector.

    It would be possible to create a function to do this (I could write one easily enough), but I'm really not convinced you want to do that. Why not just use the clip function? That's pretty easy to use and then is independent of the actual steps you took in the simulation.

    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