<@U017H530WC9> Thats good to know! my fault is i f...
# analog-design
s
@User Thats good to know! my fault is i forgot to tell you about the '`format=tcleval(...`'. Basically the format definition in the instance overrides symbol default. Since we want to do variable substitution the
@value
token (which gets substituted by xschem with your simulation data) is then passed down to tcl for further expansion (this way you can add anything, valid tcl commands, tcl variables, shell variables (via the $env(VAR) ) . However passing things down to tcl should be done only when needed. Try to put an unknown command in your code block (
[blablabla]
, square brackets denote tcl commands) and the entire process fails and you get a nice question mark (
?
) into your netlist. Passing text for further intepretation and substitution requires extra care for syntax (and perhaps some escaping to prevent unwanted execution of code / substitution) . I believe adding explicitly
tcleval(@value\)
in format (instead of default
format=@value
) only when needed on instance level is a good compromise.