v {xschem version=3.4.6 file_version=1.2
*
* This file is part of XSCHEM,
* a schematic capture and Spice/Vhdl/Verilog netlisting tool for circuit
* simulation.
* Copyright (C) 1998-2024 Stefan Frederik Schippers
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
}
G {}
K {}
V {}
S {}
E {}
L 2 940 -540 940 -340 {dash=2}
L 2 1010 -540 1010 -340 {dash=2}
L 2 1000 -540 1000 -340 {dash=2}
L 2 950 -540 950 -340 {dash=2}
L 2 880 -540 880 -340 {dash=2}
L 2 890 -540 890 -340 {dash=2}
L 3 30 -1220 300 -1220 {}
L 3 780 -1220 950 -1220 {}
L 4 475 -210 480 -250 {}
L 4 480 -250 485 -210 {}
L 4 30 -865 30 -765 {dash=1}
L 4 20 -810 150 -810 {dash=1}
L 4 90 -865 90 -775 {dash=2}
L 4 30 -845 120 -845 {dash=2}
L 4 30 -1185 30 -1085 {dash=1}
L 4 20 -1130 150 -1130 {dash=1}
L 4 90 -1185 90 -1095 {dash=2}
L 4 30 -1165 120 -1165 {dash=2}
L 4 485 -210 490 -250 {}
L 4 490 -250 495 -210 {}
L 4 495 -210 500 -250 {}
L 4 500 -250 505 -210 {}
L 4 505 -210 510 -250 {}
L 4 510 -250 515 -210 {}
L 4 515 -210 520 -250 {}
L 4 520 -250 525 -210 {}
L 4 525 -210 530 -250 {}
L 4 530 -250 535 -210 {}
L 4 535 -210 540 -250 {}
L 4 540 -250 545 -210 {}
L 4 545 -210 550 -250 {}
L 4 550 -250 555 -210 {}
L 4 870 -510 890 -510 {}
L 4 890 -530 890 -510 {}
L 4 890 -530 940 -530 {}
L 4 940 -530 940 -510 {}
L 4 940 -510 1010 -510 {}
L 4 1010 -530 1010 -510 {}
L 4 1010 -530 1040 -530 {}
L 4 870 -380 880 -380 {}
L 4 880 -380 880 -360 {}
L 4 880 -360 950 -360 {}
L 4 950 -380 950 -360 {}
L 4 950 -380 1000 -380 {}
L 4 1000 -380 1000 -360 {}
L 4 1000 -360 1040 -360 {}
L 4 30 -775 120 -775 {dash=2}
L 4 30 -1095 120 -1095 {dash=2}
L 4 293.75 -241.875 298.125 -250 {}
L 4 290 -230 293.75 -241.875 {}
L 4 301.875 -250 306.25 -241.875 {}
L 4 306.25 -241.875 310 -230 {}
L 4 313.75 -218.125 318.125 -210 {}
L 4 310 -230 313.75 -218.125 {}
L 4 321.875 -210 326.25 -218.125 {}
L 4 326.25 -218.125 330 -230 {}
L 4 333.75 -241.875 338.125 -250 {}
L 4 330 -230 333.75 -241.875 {}
L 4 341.875 -250 346.25 -241.875 {}
L 4 346.25 -241.875 350 -230 {}
L 4 298.125 -250 299.375 -250.625 {}
L 4 300.625 -250.625 301.875 -250 {}
L 4 299.375 -250.625 300.625 -250.625 {}
L 4 338.125 -250 339.375 -250.625 {}
L 4 340.625 -250.625 341.875 -250 {}
L 4 339.375 -250.625 340.625 -250.625 {}
L 4 320.625 -209.375 321.875 -210 {}
L 4 318.125 -210 319.375 -209.375 {}
L 4 319.375 -209.375 320.625 -209.375 {}
L 7 30 -1095 70 -1095 {}
L 7 70 -1095 80 -1100 {}
L 7 80 -1100 100 -1160 {}
L 7 110 -1165 150 -1165 {}
L 7 100 -1160 110 -1165 {}
L 7 30 -845 70 -845 {}
L 7 70 -845 80 -840 {}
L 7 80 -840 100 -780 {}
L 7 110 -775 150 -775 {}
L 7 100 -780 110 -775 {}
B 2 1060 -660 2040 -400 {flags=graph
y1=-51
y2=52
ypos1=2.19058
ypos2=36.4765
divy=5
subdivy=1
unity=1
x1=1e-09
x2=0.002
divx=5
subdivx=1
node="OUT
OUT_LPF
\\"Expected;in 5 - 9 *\\""
color="7 8 6"
dataset=0
unitx=u
digital=0
jpeg_quality=25}
B 2 1060 -390 2040 -150 {flags=graph
y1=-7
y2=7
ypos1=1.02912
ypos2=7.14491
divy=5
subdivy=1
unity=1
x1=1e-09
x2=0.002
divx=5
subdivx=1


dataset=0
unitx=u
digital=1
color="7 4 4 7"
node="\\"out;OUT 8 / \\"
DRIVEU
DRIVED
REF"
jpeg_quality=25}
B 2 1060 -990 2040 -680 {flags=graph
y1=-0.1
y2=11
ypos1=-3.90706
ypos2=14.7089
divy=5
subdivy=1
unity=1
x1=1e-09
x2=0.002
divx=5
subdivx=1


dataset=0
unitx=u
digital=0

color="6 8 7"
node="REFU
REFD
IN"
jpeg_quality=25}
B 2 600 -780 996 -635 {flags=image,unscaled
alpha=0.6
image_data=iVBORw0KGgoAAAANSUhEUgAAAYwAAACRCAYAAADQBo+7AAAABmJLR0QA/wD/AP+gvaeTAAAKEElEQVR4nO3d25ajKBgGUDOr3/+Vay66ssqmPCCC8JO9b3omB0NQ+AA1tSwAAAAA8KhX7wIA9Xx9fX1tPf56vQ7b+t779pxtD4DBbXX8OWFwJTCuhgvz+K93AQCIQWAAkEVgAJBFYAA09vWtdznuEhgADa2DInpoCAyAxl7fepfjLoEBQBaBAdBI9CWolMAAaChdioocIgIDgCwCA+Ah0U98CwwAsggMALIIDIAGIp/c3iMwABqJfs4iJTAAyCIwAB4WdblKYACQRWAAPCjyeQ2BAUCWP70LwPiirrfOJvLIlDkIDLLorPoS2rHMur8EBkBlsw6wnMMAGMjIsxOBAUCWJoExckICUGbYGYbQARhL05Peaaf/er1ee4+9TxKtn18/DjCTrf5t9IFy8xnG69vZY+nz638hitEbPNwx7JIUwKxyBswj6nIfxtYobO+xkSsPojDzISQHbjz2Wb5WdWUfzCd34DwSS1IAZHk8MCwxAcRkhvHt61vvckSl7mB+fnww0ftE+1bHm1OeKx12q+/3LsNss8jex8QIDAj+NfPxcNSOBcbK+ybCXh3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2Hlu/9v3f6T7det3WdtPn0se2ynf0+r1jae9zjz4v/cytz3DJMlEMP8MoXY4q3Qblti5KOAv193vSpcSj/0/fnz53NsPJ2f76sa0ypo+XdvrCgkiGD4xlOW5UZ2GgQT7rTucZScl33AqquqWCtsIuSS3Lz9TeDGIMe0sv66Wlo1lgugRV2qGeHQ/p9nOPn73yX3n/+nOBG9KGlxMGpa8RNHOzf6G+4ZekaozGjOjG1aJTFxTQxtBLUjkd/dlVK3weAwRoY/gZRo7cYHmiLDynZKBw9XwD8GPoGQbx3LnPYWsb6/dsnaQ+uyfj6D1Hn5m+ruR7GaQwmylmGIxhLwhq3Cux9fz639L35LzuyveCmQ03w7AUENvVS1VHcTbzufK9hAizGiowNLT4ap0j2Fsi2nrsqDM/e0/tba8fdzwDDKjXjMb9HnwS5zCgkKCADjQ8gPH9cw5jq+Ner8Nurf0C8MGeHvGbYfylHoCRnV4ltXczUumNTOmVJ0dXqxx91nr76Xa3yn32HdaPH333Wo/tXcZ5diPaXlkBWss+6Z3TGZfcoLV2NsLeK0P6vpoj9dzyX/mee4Gw/vdom8IC6CHrPoyjTqv2Mkru6P/KdtLZyN5rS7Z/9XVpILzLWPtzAWorvnHvzg1aR+/NvZP2ytJWbhm3OuO7N2dd3fbZzWIAU4t+c1P08gPU0PzGvegdbfTyAwDAo/4HLBNKOj5NZq4AAAAASUVORK5CYII=}
B 2 1060 -1310 2040 -1000 {flags=graph
y1=0
y2=210
ypos1=2.19058
ypos2=36.4765
divy=5
subdivy=1
unity=1
x1=1e-09
x2=0.002
divx=5
subdivx=1


dataset=0
unitx=u
digital=0
color="4 12 10 20 8"
node="\\"xm1 power;vpp out - i(vu) * 500u ravg()\\"
\\"xm2 power;out vnn - i(vd) * 500u ravg()\\"
\\"Load power;out_lpf 2 ** 8 /\\"
\\"P(load);out_lpf 2 ** 8 / 500e-6 ravg()\\"
\\"P(supply); i(vvnn) 500u ravg() i(vvpp) 500u ravg() - 40 *\\""
jpeg_quality=25}
B 2 610 -120 747 -60 {flags=image
alpha=0.6
[encoded data, 50943 characters]
ps_invert=true}
B 2 770 -117.5 908 -55 {flags=image
alpha=0.6
image=/home/schippes/x/xyce.png
[encoded data, 61011 characters]
ps_invert=true}
T {PWM Modulator} 480 -610 0 0 0.6 0.6 {}
T {Driver} 230 -930 0 0 0.6 0.6 {}
T {LP
Filter} 700 -1040 0 0 0.6 0.6 {}
T {Load} 860 -1010 0 0 0.6 0.6 {}
T {10} 25 -850 0 1 0.2 0.2 {}
T {10} 25 -1170 0 1 0.2 0.2 {}
T {DRIVED} 135 -805 0 0 0.2 0.2 {}
T {DRIVEU} 130 -1125 0 0 0.2 0.2 {}
T {Class D amplifier } 320 -1250 0 0 1 1 {}
T {-10} 25 -780 0 1 0.2 0.2 {}
T {-10} 25 -1100 0 1 0.2 0.2 {}
N 460 -1020 460 -1000 {lab=#net1}
N 460 -920 460 -900 {lab=OUT}
N 460 -840 460 -800 {lab=#net2}
N 460 -1060 460 -1020 {lab=#net1}
N 460 -700 460 -640 {lab=VNN}
N 460 -940 460 -920 {lab=OUT}
N 460 -1160 460 -1120 { lab=VPP}
N 220 -1020 460 -1020 {
lab=#net1}
N 340 -1090 420 -1090 {
lab=GU_I}
N 220 -700 460 -700 {
lab=VNN}
N 340 -770 420 -770 {
lab=GD_I}
N 610 -370 750 -370 {
lab=DRIVED}
N 70 -510 70 -490 {
lab=VSS}
N 70 -590 70 -570 {
lab=VPP}
N 190 -510 190 -490 {
lab=VSS}
N 190 -590 190 -570 {
lab=VNN}
N 70 -370 70 -350 {
lab=0}
N 70 -450 70 -430 {
lab=VSS}
N 220 -1090 280 -1090 {
lab=#net3}
N 220 -770 280 -770 {
lab=#net4}
N 440 -150 440 -130 {
lab=VSS}
N 280 -150 280 -130 {
lab=VSS}
N 780 -920 780 -890 {
lab=OUT_LPF}
N 740 -920 780 -920 {
lab=OUT_LPF}
N 460 -740 460 -700 {lab=VNN}
N 460 -920 680 -920 {
lab=OUT}
N 780 -830 780 -810 {
lab=VSS}
N 900 -830 900 -810 {
lab=VSS}
N 900 -920 900 -890 {
lab=OUT_LPF}
N 900 -920 940 -920 {
lab=OUT_LPF}
N 780 -920 900 -920 {
lab=OUT_LPF}
N 280 -400 490 -400 {
lab=IN}
N 280 -400 280 -210 {
lab=IN}
N 610 -520 750 -520 {
lab=DRIVEU}
N 440 -490 490 -490 {
lab=REFU}
N 440 -340 490 -340 {
lab=REFD}
N 280 -550 490 -550 {
lab=IN}
N 280 -550 280 -400 {
lab=IN}
N 440 -230 440 -210 {
lab=REF}
N 220 -1090 220 -1080 {
lab=#net3}
N 220 -770 220 -760 {
lab=#net4}
C {nmos3.sym} 440 -770 0 0 {name=xm2 model=irf540 m=1
program=evince
url="https://www.vishay.com/docs/91021/irf540.pdf"


device_model=".SUBCKT irf540 1 2 3
M1 9 7 8 8 MM L=100u W=100u
* Default values used in MM:
* The voltage-dependent capacitances are
* not included. Other default values are:
* RS=0 RD=0 LD=0 CBD=0 CBS=0 CGBO=0
.MODEL MM NMOS LEVEL=1 IS=1e-32
+VTO=3.56362 LAMBDA=0.00291031 KP=25.0081
+CGSO=1.60584e-05 CGDO=4.25919e-07
RS 8 3 0.0317085
D1 3 1 MD
.MODEL MD D IS=1.02194e-10 RS=0.00968022 N=1.21527 BV=100
+IBV=0.00025 EG=1.2 XTI=3.03885 TT=1e-07
+CJO=1.81859e-09 VJ=1.1279 M=0.449161 FC=0.5
RDS 3 1 4e+06
RD 9 1 0.0135649
RG 2 7 5.11362
D2 4 5 MD1
* Default values used in MD1:
* RS=0 EG=1.11 XTI=3.0 TT=0
* BV=infinite IBV=1mA
.MODEL MD1 D IS=1e-32 N=50
+CJO=2.49697e-09 VJ=0.5 M=0.9 FC=1e-08
D3 0 5 MD2
* Default values used in MD2:
* EG=1.11 XTI=3.0 TT=0 CJO=0
* BV=infinite IBV=1mA
.MODEL MD2 D IS=1e-10 N=0.4 RS=3e-06
RL 5 10 1
FI2 7 9 VFI2 -1
VFI2 4 0 0
EV16 10 0 9 7 1
CAP 11 10 2.49697e-09
FI1 7 9 VFI1 -1
VFI1 11 6 0
RCAP 6 10 1
D4 0 6 MD3
* Default values used in MD3:
* EG=1.11 XTI=3.0 TT=0 CJO=0
* RS=0 BV=infinite IBV=1mA
.MODEL MD3 D IS=1e-10 N=0.4
.ENDS
"}
C {nmos3.sym} 440 -1090 0 0 {name=xm1 model=irf540 m=1
program=xdg-open
url="https://www.vishay.com/docs/91021/irf540.pdf"


device_model=".SUBCKT irf540 1 2 3
M1 9 7 8 8 MM L=100u W=100u
* Default values used in MM:
* The voltage-dependent capacitances are
* not included. Other default values are:
* RS=0 RD=0 LD=0 CBD=0 CBS=0 CGBO=0
.MODEL MM NMOS LEVEL=1 IS=1e-32
+VTO=3.56362 LAMBDA=0.00291031 KP=25.0081
+CGSO=1.60584e-05 CGDO=4.25919e-07
RS 8 3 0.0317085
D1 3 1 MD
.MODEL MD D IS=1.02194e-10 RS=0.00968022 N=1.21527 BV=100
+IBV=0.00025 EG=1.2 XTI=3.03885 TT=1e-07
+CJO=1.81859e-09 VJ=1.1279 M=0.449161 FC=0.5
RDS 3 1 4e+06
RD 9 1 0.0135649
RG 2 7 5.11362
D2 4 5 MD1
* Default values used in MD1:
* RS=0 EG=1.11 XTI=3.0 TT=0
* BV=infinite IBV=1mA
.MODEL MD1 D IS=1e-32 N=50
+CJO=2.49697e-09 VJ=0.5 M=0.9 FC=1e-08
D3 0 5 MD2
* Default values used in MD2:
* EG=1.11 XTI=3.0 TT=0 CJO=0
* BV=infinite IBV=1mA
.MODEL MD2 D IS=1e-10 N=0.4 RS=3e-06
RL 5 10 1
FI2 7 9 VFI2 -1
VFI2 4 0 0
EV16 10 0 9 7 1
CAP 11 10 2.49697e-09
FI1 7 9 VFI1 -1
VFI1 11 6 0
RCAP 6 10 1
D4 0 6 MD3
* Default values used in MD3:
* EG=1.11 XTI=3.0 TT=0 CJO=0
* RS=0 BV=infinite IBV=1mA
.MODEL MD3 D IS=1e-10 N=0.4
.ENDS
"}
C {lab_pin.sym} 460 -640 0 0 {name=p18 lab=VNN}
C {ammeter.sym} 460 -870 0 0 {name=vd}
C {ammeter.sym} 460 -970 0 0 {name=vu}
C {lab_pin.sym} 460 -1160 0 0 {name=p27 lab=VPP}
C {lab_pin.sym} 460 -910 0 0 {name=p3 lab=OUT}
C {comp_ngspice.sym} 550 -370 2 1 {name=x1 
OFFSET=5
AMPLITUDE=10}
C {lab_pin.sym} 750 -370 0 1 {name=p6 lab=DRIVED}
C {title.sym} 160 -40 0 0 {name=l1 author="Stefan Schippers"}
C {vsource.sym} 70 -540 0 0 {name=VVPP value=40}
C {lab_pin.sym} 70 -490 0 0 {name=p9 lab=VSS}
C {lab_pin.sym} 70 -590 0 0 {name=p10 lab=VPP}
C {vsource.sym} 190 -540 0 0 {name=VVNN value=-40}
C {lab_pin.sym} 190 -490 0 0 {name=p11 lab=VSS}
C {lab_pin.sym} 190 -590 0 0 {name=p12 lab=VNN}
C {vsource.sym} 70 -400 0 0 {name=VVSS value=0}
C {lab_pin.sym} 70 -350 0 0 {name=p13 lab=0}
C {lab_pin.sym} 70 -450 0 0 {name=p14 lab=VSS}
C {launcher.sym} 1000 -130 0 0 {name=h5 
descr="Reload waveforms" 
tclcommand="
xschem raw_read $netlist_dir/[file tail [file rootname [xschem get current_name]]].raw
"
}
C {res.sym} 310 -1090 1 1 {name=R2 m=1 value=2}
C {res.sym} 310 -770 1 1 {name=R3 m=1 value=2}
C {parax_cap.sym} 370 -1080 0 0 {name=C3 gnd=0 value=20f m=1}
C {parax_cap.sym} 370 -760 0 0 {name=C1 gnd=0 value=20f m=1}
C {parax_cap.sym} 610 -910 0 0 {name=C2 gnd=0 value=10n m=1}
C {lab_wire.sym} 410 -1090 0 0 {name=l19 lab=GU_I}
C {lab_wire.sym} 410 -770 0 0 {name=l2 lab=GD_I}
C {vsource.sym} 440 -180 0 0 {name=V6 value="pulse 0 \{VCC\} 0 5u 5u 5p 10u"}
C {lab_pin.sym} 440 -130 0 0 {name=p19 lab=VSS}
C {lab_pin.sym} 440 -230 0 0 {name=p20 lab=REF}
C {vsource.sym} 280 -180 0 0 {name=V7 value="SIN ( 5 4 2000 0 0 0 )"
}
C {lab_pin.sym} 280 -130 0 0 {name=p21 lab=VSS}
C {lab_pin.sym} 280 -230 0 0 {name=p22 lab=IN}
C {parax_cap.sym} 660 -360 0 0 {name=C4 gnd=0 value=200f m=1}
C {ind.sym} 710 -920 1 0 {name=L3
m=1
value=0.03m
footprint=1206
device=inductor}
C {capa.sym} 780 -860 0 0 {name=C5
m=1
value=20u
footprint=1206
device="ceramic capacitor"}
C {lab_pin.sym} 940 -920 0 1 {name=p4 lab=OUT_LPF}
C {lab_pin.sym} 780 -810 0 0 {name=p7 lab=VSS}
C {res.sym} 900 -860 0 1 {name=R4 m=1 value=8}
C {lab_pin.sym} 900 -810 0 0 {name=p8 lab=VSS}
C {launcher.sym} 1000 -90 0 0 {name=h1 
descr="Netlist + Simulate
Ctrl-Left-Click" 
tclcommand="xschem netlist; xschem simulate"
}
C {comp_ngspice.sym} 550 -520 0 0 {name=x2 
OFFSET=5
AMPLITUDE=10}
C {lab_pin.sym} 750 -520 0 1 {name=p1 lab=DRIVEU}
C {parax_cap.sym} 660 -510 0 0 {name=C6 gnd=0 value=200f m=1}
C {vsource.sym} 440 -460 0 0 {name=Voffs value=0.1}
C {lab_pin.sym} 440 -490 0 0 {name=p2 lab=REFU}
C {vsource.sym} 440 -310 2 1 {name=Voffs1 value=0.1}
C {lab_pin.sym} 440 -340 0 0 {name=p5 lab=REFD}
C {lab_pin.sym} 440 -280 0 0 {name=p17 lab=REF}
C {lab_pin.sym} 440 -430 0 0 {name=p23 lab=REF}
C {vcvs.sym} 220 -1050 0 0 {name=E1 value=1}
C {vcvs.sym} 220 -730 0 0 {name=E2 value=1}
C {lab_pin.sym} 180 -710 0 0 {name=p15 lab=VSS}
C {lab_pin.sym} 180 -1030 0 0 {name=p16 lab=VSS}
C {lab_pin.sym} 180 -1070 0 0 {name=p24 lab=DRIVEU}
C {lab_pin.sym} 180 -750 0 0 {name=p25 lab=DRIVED}
C {simulator_commands_shown.sym} 0 -250 0 0 {name=COMMANDS
simulator=ngspice
only_toplevel=false 
value="
.param VCC=10 VGATE=10
.control
save all
tran 100n 2000u uic
write classD_amp.raw
quit 0
.endc
"}
C {simulator_commands_shown.sym} 680 -250 0 0 {name=COMMANDS1
simulator=xyce
only_toplevel=false 
value="
.param VCC=10 VGATE=10
.tran 100n 2000u uic
.print tran format=raw
+ file=classD_amp.raw v(*) i(*)
"}
