¿ªÔÆÌåÓý

Re: Possible g;itch in stepping parameters


 

In versions prior to 24.1, parameter substitutions almost worked like C-macros. This elicited creative use cases like dynamic nodes, stepping models etc. It also caused hard to fix bugs, in particular in sub-circuits.
24.1.x works very differently. It's a complete rewrite of the entire netlist processing; the reason will become obvious in the near future. Unfortunately, this meant that said creative use cases no longer worked in the initial version. Since then, adjustements have been made as needed to stay backward compatible.
?
Anyway, as a result it matters not whether you write x, (x),?{x}, or 'x' in an expression. (The latter is hspice syntax.)
?
As to the worry part: We are aware, after seeing how the release of 24.1 did not quite go as intended :-(
?
Best Regards,
Mathias
?
?
On Fri, May 2, 2025 at 02:22 PM, Andy I wrote:

On Fri, May 2, 2025 at 06:38 AM, Mathias Born wrote:
Yes, it is.
However, curly braces are perfectly fine in any expression and putting them in a .meas is therefore not incorrect. At least not anymore.
Although I am happy to hear that, I would be real careful about making changes like that.? On face value, this seems like it is a great thing.? But things are rarely as simple as they seem.
?
Are you suggesting that expressions like this one:
E_ABMGATE ? ?YINT 0 VALUE {{IF(V(A) > {VTHRESH} ?& ?
+ V(B) > {VTHRESH},{VDD},{VSS})}}
are now admissible in LTspice 24.1.7 and moving forward, and no longer produce warnings or errors?? Until now, that was not "perfectly fine" when written that way and the reason may have been semi-obvious.? Have you forever changed the rules for curly braces?? Have you considered every possible consequence of that change, both good and bad?
?
On the one hand, I would like to see fewer instances (preferably none) where LTspice objects to bad syntax like that one.? On the other hand, every change has consequences.
?
Don't misunderstand me.? I would be delighted to be rid of the above syntax difficulty, at long last - especially as it seemed that LTspice both objected and accepted it.? But I worry about the consequences.
?
Andy
?
?

Join [email protected] to automatically receive all group messages.