added "devices/simulator_commands*.sym" to conditionally include commands in the netlist depending on selected target simulator
This commit is contained in:
parent
d4e29db770
commit
907315191d
|
|
@ -0,0 +1,38 @@
|
|||
v {xschem version=3.1.0 file_version=1.2
|
||||
}
|
||||
G {}
|
||||
K {type=netlist_commands
|
||||
template="name=COMMANDS
|
||||
simulator=ngspice
|
||||
only_toplevel=false
|
||||
value=\\"
|
||||
* ngspice commands
|
||||
\\""
|
||||
|
||||
format="tcleval(
|
||||
[if \{[ sim_is_@simulator ]\} \{ return \{
|
||||
@value
|
||||
\}\}]
|
||||
"}
|
||||
V {}
|
||||
S {}
|
||||
E {}
|
||||
L 4 20 30 60 30 {}
|
||||
L 4 20 40 40 40 {}
|
||||
L 4 20 50 60 50 {}
|
||||
L 4 20 60 50 60 {}
|
||||
L 4 20 70 50 70 {}
|
||||
L 4 20 80 90 80 {}
|
||||
L 4 20 90 40 90 {}
|
||||
L 4 20 20 70 20 {}
|
||||
L 4 20 10 40 10 {}
|
||||
L 4 100 10 110 10 {}
|
||||
L 4 110 10 110 110 {}
|
||||
L 4 20 110 110 110 {}
|
||||
L 4 20 100 20 110 {}
|
||||
L 4 100 0 100 100 {}
|
||||
L 4 10 100 100 100 {}
|
||||
L 4 10 0 10 100 {}
|
||||
L 4 10 0 100 0 {}
|
||||
T {@name} 15 -50 0 0 0.3 0.3 {}
|
||||
T {SIM=@simulator} 15 -30 0 0 0.3 0.3 {}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
v {xschem version=3.1.0 file_version=1.2
|
||||
}
|
||||
G {}
|
||||
K {type=netlist_commands
|
||||
template="name=COMMANDS
|
||||
simulator=ngspice
|
||||
only_toplevel=false
|
||||
value=\\"
|
||||
* ngspice commands
|
||||
\\""
|
||||
|
||||
format="tcleval(
|
||||
[if \{[ sim_is_@simulator ]\} \{ return \{
|
||||
@value
|
||||
\}\}]
|
||||
"}
|
||||
V {}
|
||||
S {}
|
||||
E {}
|
||||
L 4 0 -10 70 -10 {}
|
||||
L 4 0 -10 0 10 {}
|
||||
T {@name} 5 -50 0 0 0.3 0.3 {}
|
||||
T {@value} 15 -5 0 0 0.3 0.3 {font=Monospace}
|
||||
T {SIM=@simulator} 5 -30 0 0 0.3 0.3 {}
|
||||
Loading…
Reference in New Issue