<@U01819B63HP> how to do a simple calculation in t...
# xschem
k
@Stefan Schippers how to do a simple calculation in the parameter list for lvs The following code does not work
lvs_format="@spiceprefix@name @pinlist @model le=@El*1e-6 we=70.0n m=@Nx"
s
@Krzysztof Herman:
lvs_format="tcleval(@spiceprefix@name @pinlist @model le=[expr @El * 1e-6] we=70.0n m=@Nx)"
bracing the
expr
expression will make it faster:
lvs_format="tcleval(@spiceprefix@name @pinlist @model le=[expr {@El * 1e-6}] we=70.0n m=@Nx)"
put a space at the end of a @xx parameter in the
expr
to avoid having to escape the following non space character.
k
thank you!
👍 1
@Stefan Schippers this solution worked perfectly but I would like to know if it is possible (I think it is ) to calculate this expression
lvs_format="tcleval(@spiceprefix@name @pinlist @model le=[expr {A * B}] we=70.0n m=@Nx)"
where
A
and
B
are evaluated separately using
tcleval
. I have some calculations and just for making it clean it would be nice to do it in a few steps.
The
minimal
DRC is the minimal set of DRC rules which ensure no errors. The
maximal
extends the minimal DRC ruleset by reliability rules.