Dan Clement
Community Member
Offline
Posts: 95
Salt Lake City, Utah, USA
|
Hello forum:
I have a veriloga model for an amplifier that has two modes. One mode is a short time constant and the other a long time constant.
When in the short time constant mode, the amplifier slew rate is actually faster than the time constant. In the veriloga model I have a resistor and cap in feedback to model the time constant and I have a slew command that operates on the output.
The amplifier basically drives square waves which are filtered by the feedback. So the output is constantly switching and when in short time constant mode, the output is slew limited until close to when the output is settled.
The problem is this runs very very slowly. Does anyone have some ideas on how to make this simulation more efficient without making the model too complicated? Why is the slew operator slowing things down so much?
My output is something like this: slew(V(out,gnd), 3.0M);
Thanks! Dan
|