• 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. time varying spectre alter statement

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 125
  • Views 14645
  • 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

time varying spectre alter statement

markbeck
markbeck over 14 years ago

I have no idea whether this is possible or not but what I'd like to do is create a variable that changes with time.

e.g.

  alter1 alter dev=Q2 param=mult value=5*sin(2*pi*1G*$time)"

But when I try simulating this, it complains about "unknown variable $time".  However, I can create a bsource which is dependent on the variable $time

e.g.

    vb1 (x1 vee) bsource v=sin(2*pi*1G*$time)

So the time variable does appear to be available to some instances, but not necessarily to all?

Is there another spectre variable name for time that is generically available?

Thanks,
Mark
 

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    This is not possible. bsource is a special case (you can use the special variable on resistor, capacitor, inductor, vsource and isource which morph into bsource when such expressions are used) - effectively it becomes a VerilogA model.

    Changing a parameter on a device at every timestep could cause significant changes in the operating point - and so would not be desirable as it could cause convergence problems (plus a lot of work having to re-build the model, possibly with topology changes). You do have the "dynamic parameter" capability in a tran analysis to allow you to set up a piece-wise time-value pairs, which provided you change smoothly enough shouldn't cause convergence difficulty - but it's not quite what you want as it's not a function of time.

    So it's not supported. If you want this, you'll need to create a service request and ask for an enhancement (ideally with good justification as to why it would be useful).

    Thanks,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • markbeck
    markbeck over 14 years ago

     Thanks for the feedback. At least I can stop trying to go down that road. 

    As for a service request, I doubt that I could make a strong enough case that would be considered worthwhile from a financial standpoint.  My desire for a time-varying alter statement is to allow me to simulate with a smaller / faster circuit than I'll have to simulate with now.  From Cadence's point of view, I should just purchase some aps licences...

    Thanks,
    Mark

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

    Mark,

    Actually Cadence are interested in improving customer's productivity - it's far better for you to be able to simulate things efficiently (that's why there has been so much effort put into APS, and various other techniques to simulate circuits more smartly rather than just throwing licenses at it). So I'd still say it's worth it if you can suggest technical and productivity benefits.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • markbeck
    markbeck over 14 years ago

    Fair enough... I created the SR 42617518.

     Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Alok Tripathi
    Alok Tripathi over 14 years ago

    You can do this in PSpice. PSpice support expression based on TIME (simulation time point)

    • Cancel
    • Vote Up 0 Vote Down
    • 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