switch_ngspice.sym: add "device_model" attribute in template string, so a template model is given when placing the symbol
This commit is contained in:
parent
4311ac424a
commit
7ace392d23
|
|
@ -1,4 +1,4 @@
|
|||
v {xschem version=3.4.4 file_version=1.2
|
||||
v {xschem version=3.4.6RC file_version=1.2
|
||||
*
|
||||
* This file is part of XSCHEM,
|
||||
* a schematic capture and Spice/Vhdl/Verilog netlisting tool for circuit
|
||||
|
|
@ -22,7 +22,8 @@ v {xschem version=3.4.4 file_version=1.2
|
|||
G {}
|
||||
K {type=switch
|
||||
format="@name @@P @@M @@CP @@CM @model"
|
||||
template="name=S1 model=SWITCH1"
|
||||
template="name=S1 model=SW1
|
||||
device_model=\\".MODEL SW1 SW( VT=0.9 VH=0.01 RON=0.01 ROFF=10G )\\""
|
||||
}
|
||||
V {}
|
||||
S {}
|
||||
|
|
@ -47,4 +48,4 @@ T {@#1:net_name} 5 -42.5 0 0 0.15 0.15 {layer=15 hide=instance}
|
|||
T {@#2:net_name} 5 32.5 0 0 0.15 0.15 {layer=15 hide=instance}
|
||||
T {@#0:net_name} -45 -12.5 0 1 0.15 0.15 {layer=15 hide=instance}
|
||||
T {@#3:net_name} -45 22.5 0 1 0.15 0.15 {layer=15 hide=instance}
|
||||
T {@device_model} 2.5 13 0 0 0.04 0.04 {}
|
||||
T {@device_model} 2.5 13 0 0 0.06 0.06 {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue