Christoph Weiser
11/22/2024, 6:25 PMStefan Schippers
11/24/2024, 3:37 PMspice_ignore="tcleval([info exists xxx])"
where xxx is a tcl variable.
if xxx
exists (set xxx 1)
the block will be ignored
if xxx
does not exist (unset xxx
) the block will be netlisted.
whenever you change variables please run
xschem reset_caches
, so the expressions involving tcl variables on instances will be re-evaluated, so you immediately visually see the block turning to grey if ignored.
The xschem reset_caches
is done anyway before generating a netlist (so another way to update the visual appearance of ignored blocks is to do a netlist)
you can use a reverse condition with:
spice_ignore="tcleval([expr ![info exists xxx]])"