Unexpected PWL source behavior

Hi community

Noticed pwl source behaviour changes a lot when rise time goes to low values. I did not study if this is related to longish simulation time used in simple example. As shown in attached example, when rise time is below 2 ns, response becomes as slow slope.

Should some simulator options be added or is this intended operation?

-Frank-


qspice_pwl_rise_time.qsch (1.7 KB)

Must be some special “edge condition” in the math logic.

qspice_pwl_rise_time(lp).qsch (1.8 KB)

If I change tstop <=1.9997, it works as expected. tstop>=1.9998 yields the same peculiar results.

It doesn’t appear to help any if I reduce the MaxTimeStep value. It just takes longer.

Len

1 Like

Update Qspice, and the new version will handle that.
This issue is related to the time delta being too extreme in the PWL statement (1s vs. 1ns). The update will automatically limit the minimum increment. But in short, try to avoid using values that are too extreme.

A step can be done with a B-source like this as well.

2 Likes