summaryrefslogtreecommitdiff
path: root/Examples/Diac_Triac/diac.sub
blob: 7f28ecc2c87ddc43f10e604d1b756502fdbf16b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
* Subcircuit diac
.subckt diac 1 2 
* /opt/esim/src/subcircuitlibrary/diac/diac.cir
* u1  1 1 2 aswitch
* u2  1 1 2 aswitch
a1 1 (1 2)  u1
a2 1 (1 2)  u2
* Schematic Name: aswitch, NgSpice Name: aswitch
.model u1 aswitch(log=TRUE cntl_off=0.1 cntl_on=25 r_on=0.0125 r_off=1000000 )
* Schematic Name: aswitch, NgSpice Name: aswitch
.model u2 aswitch(log=TRUE cntl_off=-0.1 cntl_on=-25 r_on=0.0125 r_off=1000000 )

* Control Statements

.ends diac