From 26d8dbf6449d611351ba1cfa051afc2fcd3aa6fa Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Sat, 13 Jul 2024 10:38:32 +0200 Subject: [PATCH] update simulator_commands.sym and simulator_commands_shown.sym to handle wrong simulator names (no `?` in netlist) --- xschem_library/devices/simulator_commands.sym | 10 ++++++---- xschem_library/devices/simulator_commands_shown.sym | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/xschem_library/devices/simulator_commands.sym b/xschem_library/devices/simulator_commands.sym index fff29302..f15ca8a0 100644 --- a/xschem_library/devices/simulator_commands.sym +++ b/xschem_library/devices/simulator_commands.sym @@ -1,4 +1,4 @@ -v {xschem version=3.4.4 file_version=1.2 +v {xschem version=3.4.5 file_version=1.2 * * This file is part of XSCHEM, * a schematic capture and Spice/Vhdl/Verilog netlisting tool for circuit @@ -29,10 +29,12 @@ value=\\" \\"" format="tcleval( -[if \{[ sim_is_@simulator ]\} \{ return \{ +[if \{[catch \{sim_is_@simulator \} retval] \} \{ + return \{\} \} elseif \{$retval\} \{ return \{ \\\\@value -\}\}] -)" +\} +\} else \{ return \{\} \} +])" } V {} S {} diff --git a/xschem_library/devices/simulator_commands_shown.sym b/xschem_library/devices/simulator_commands_shown.sym index 4b17239f..ca00873a 100644 --- a/xschem_library/devices/simulator_commands_shown.sym +++ b/xschem_library/devices/simulator_commands_shown.sym @@ -1,4 +1,4 @@ -v {xschem version=3.4.4 file_version=1.2 +v {xschem version=3.4.5 file_version=1.2 * * This file is part of XSCHEM, * a schematic capture and Spice/Vhdl/Verilog netlisting tool for circuit @@ -29,10 +29,12 @@ value=\\" \\"" format="tcleval( -[if \{[ sim_is_@simulator ]\} \{ return \{ +[if \{[catch \{sim_is_@simulator \} retval] \} \{ + return \{\} \} elseif \{$retval\} \{ return \{ \\\\@value -\}\}] -)"} +\} +\} else \{ return \{\} \} +])"} V {} S {} E {}