carlgrace
|
I'm trying to add slew-rate limiting to an op-amp model in Verilog-A. I have the linear settling doing what I expect using the laplace_nd() function and everything works fine up to that point.
However, when I try to wrap the slew function around it I get crazy results. For example, the statement:
Aout = laplace_nd(Vout_temp, {gdc}, {1 , tau});
does exactly what it should. But, if I want to model limited current with:
Aout = slew( laplace_nd(Vout_temp, {gdc}, {1 , tau}),slewrate);
then I get outputs in hundreds of volts of kilovolts! I set the slewrate at 1e9, or 1V/ns. I also tried a lot of other slewrates in case I didn't understand the definition but it doesn't work! Can someone please give me a hint on how this slew() function works?
Thanks, Carl
|