On Sun, Mar 2, 2025 at 11:44 PM, Mathias Born wrote:
One of the exciting new features of LTspice 24.1 (which is the best thing since the invention of sliced bread :-) is that it compiles the math expressions of behavioral sources into highly optimized machine code matching the host machine. In this process, the limit() function is decomposed into more primitive operations to allow the optimizer to "see through it". It's the result of this decomposition that you see in the expanded netlist.
Performance measurements have shown that this new approach consistently cuts the time spent for behavioral source down to 50% (!)
?
Best Regards,
Mathias
?
Hi Mathias
?
In the past, I always tried to avoid if() statements to prevent convergence issues, and often used LIMIT to wrap if() statements.
So I was concerned on how this re-write would affect convergence.
?