• 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
  • manudupouy
    manudupouy over 9 years ago

    Hello Andrew,

    I would like to obtain the following curve:  deriv(log (Id)) / deriv(log (Vgs)), the derivate of log(Id) related to log(Vgs). 

    If I use the function deriv, I will obtain deriv(log(Id)) / deriv(Vgs) and not deriv(log(Vgs))

    If I could manipulate vectors of points, for example with a 50 points vector, I could make the following operation: (log(Id[2:50]) - log(Id[1:49])) / (log(Vgs[2:50]) - log(Vgs[1:49]))

    I tried with clip, but it did not work, as the signal is indexed to another variable.

    Do you have a solution please?

    Regards,

    Emmanuel

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • manudupouy
    manudupouy over 9 years ago

    Hello Andrew,

    I would like to obtain the following curve:  deriv(log (Id)) / deriv(log (Vgs)), the derivate of log(Id) related to log(Vgs). 

    If I use the function deriv, I will obtain deriv(log(Id)) / deriv(Vgs) and not deriv(log(Vgs))

    If I could manipulate vectors of points, for example with a 50 points vector, I could make the following operation: (log(Id[2:50]) - log(Id[1:49])) / (log(Vgs[2:50]) - log(Vgs[1:49]))

    I tried with clip, but it did not work, as the signal is indexed to another variable.

    Do you have a solution please?

    Regards,

    Emmanuel

    • 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