Stefan Schippers
09/09/2022, 12:22 AMtest_multisim.sch schematic (that is placed in the top.sch schematic page) showing how to include different commands depending on selected simulator. This schematic simulates unchanged in ngspice and Xyce. Conditionals allows you to generate netlist code depending on any condition (for example the content of a tcl variable or an environment variable or return value of a procedure as in this case). No changes in xschem were done, i have only added a convenience procedure sim_is_ngspice that is now paired with already existing sim_is_xyce. This is the only reason you should update xschem if you want to test this example.Steven Bos
09/09/2022, 6:06 AMSteven Bos
09/09/2022, 6:10 AMSteven Bos
09/09/2022, 6:11 AMSteven Bos
09/09/2022, 10:34 AMtclcommand="set sim(spice,default) 3; xschem netlist; xschem simulate"Steven Bos
09/09/2022, 10:36 AM