.meas statements used in worst case tolerances

Hi,

I’m evaluating a worst case resistor tolerance on a simple 12V measurement circuit.
It’s using the standard 2 functions (binary and wc) to do so and some behavioral voltage sources to plot the results.
When adding some .meas statements I noticed that they report wrong values when the “.option listparam” is disabled and correct values when it is enabled.
Why is that?

Schematic, the models are just a P-Fet and N-Fet:

Best regards,
Arne

If I recall correctly, waveform data (.qraw) does not store parameters (.param) for each step by default. To force the storage of parameters as waveform data, you must use .option saveparam. Additionally, .option listparam also sets the bit for saveparam, which is why your step parameters were successfully stored in the waveform data.

I suspect that without that option, your equation was using a fixed parameter for its computation. Regardless, if your calculation requires parameters that change via .step command, you must include .option saveparam.

This is my note about .param and .option saveparam

1 Like

Thanks!
That explains the behavior and also fixes it when adding the .option saveparam statement.

1 Like