mirror of
https://github.com/ra3xdh/qucs_s
synced 2025-03-28 21:13:26 +00:00
Moved examples to qucs/examples
This commit is contained in:
parent
aeb3323cac
commit
93a29937ee
@ -62,7 +62,7 @@ ADD_SUBDIRECTORY( qucs-lib )
|
||||
#ADD_SUBDIRECTORY( examples )
|
||||
ADD_SUBDIRECTORY( translations )
|
||||
|
||||
INSTALL(DIRECTORY "../examples" DESTINATION "share/${QUCS_NAME}")
|
||||
INSTALL(DIRECTORY "examples" DESTINATION "share/${QUCS_NAME}")
|
||||
|
||||
#
|
||||
# Custom uninstall target
|
||||
|
47
examples/ngspice/B-sources.sch
Normal file
47
examples/ngspice/B-sources.sch
Normal file
@ -0,0 +1,47 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,-13,909,677,1,0,120>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=B-sources.dat>
|
||||
<DataDisplay=B-sources.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=4.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 1 210 220 0 0 0 0>
|
||||
<GND * 1 100 220 0 0 0 0>
|
||||
<GND * 1 110 400 0 0 0 0>
|
||||
<Vac V1 1 100 190 18 -26 0 1 "1 V" 1 "10 kHz" 0 "0" 0 "0" 0>
|
||||
<Vac V2 1 110 370 18 -26 0 1 "1 V" 1 "7 kHz" 0 "0" 0 "0" 0>
|
||||
<.TR TR1 1 220 290 0 71 0 0 "lin" 1 "0" 1 "1 ms" 1 "200" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
|
||||
<B B1 1 210 190 18 -26 0 1 "V=V(in1)*V(in2)" 1>
|
||||
</Components>
|
||||
<Wires>
|
||||
<100 130 100 160 "" 0 0 0 "">
|
||||
<100 130 110 130 "" 0 0 0 "">
|
||||
<110 310 110 340 "" 0 0 0 "">
|
||||
<110 310 120 310 "" 0 0 0 "">
|
||||
<210 140 210 160 "" 0 0 0 "">
|
||||
<210 140 260 140 "mul" 270 110 25 "">
|
||||
<110 130 110 130 "in1" 140 100 0 "">
|
||||
<120 310 120 310 "in2" 150 280 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 390 230 256 161 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.v(mul)" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 390 464 254 164 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"xyce/tran.V(MUL)" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 90 470 12 #000000 0 "This is a voltage multiplier that \nuses B-type spice sources.\nNOTE: This Example could be run \nonly with Ngspice/Xyce">
|
||||
</Paintings>
|
90
examples/ngspice/BJT-four.sch
Normal file
90
examples/ngspice/BJT-four.sch
Normal file
@ -0,0 +1,90 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=-127,-34,1020,1433,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=BJT-four.dat>
|
||||
<DataDisplay=BJT-four.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=BJT-four.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<_BJT Q2N2222A_1 1 400 210 8 -26 0 0 "npn" 0 "8.11e-14" 0 "1" 0 "1" 0 "0.5" 0 "0.225" 0 "113" 0 "24" 0 "1.06e-11" 0 "2" 0 "0" 0 "2" 0 "205" 0 "4" 0 "0" 0 "0" 0 "0.137" 0 "0.343" 0 "1.37" 0 "2.95e-11" 0 "0.75" 0 "0.33" 0 "1.52e-11" 0 "0.75" 0 "0.33" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "3.97e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
|
||||
<GND * 1 400 330 0 0 0 0>
|
||||
<GND * 1 280 310 0 0 0 0>
|
||||
<R R1 1 280 240 15 -26 0 1 "2 kOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R2 1 400 290 15 -26 0 1 "470 Ohm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 150 310 0 0 0 0>
|
||||
<C C1 1 230 210 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
<R R3 1 280 150 15 -26 0 1 "24 kOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 600 330 0 0 0 0>
|
||||
<C C2 1 550 170 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
<Vdc V1 1 820 140 18 -26 0 1 "12 V" 1>
|
||||
<GND * 1 820 170 0 0 0 0>
|
||||
<R R5 1 400 130 15 -26 0 1 "4.7k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R4 1 600 300 15 -26 0 1 "Rload" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<IProbe Pr1 1 680 80 -26 16 1 2>
|
||||
<Eqn Eqn1 1 150 390 -31 17 0 0 "Rload=47k" 1 "K=out.v/in.v" 1 "yes" 0>
|
||||
<Vac V2 1 150 280 18 -26 0 1 "1000 mV" 1 "4 kHz" 1 "0" 0 "0" 0>
|
||||
<.TR TR1 1 390 380 0 71 0 0 "lin" 1 "0" 1 "1 ms" 1 "1000" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
|
||||
<.DC DC1 1 720 380 0 61 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
<.AC AC1 1 550 380 0 61 0 0 "lin" 1 "100 Hz" 1 "10 MHz" 1 "2000" 1 "no" 0>
|
||||
<.FOURIER FOUR1 1 240 380 0 71 0 0 "TR1" 1 "20" 1 "4kHz" 1 "V(out) V(out2)" 1>
|
||||
</Components>
|
||||
<Wires>
|
||||
<280 80 280 120 "" 0 0 0 "">
|
||||
<280 80 400 80 "" 0 0 0 "">
|
||||
<280 180 280 210 "" 0 0 0 "">
|
||||
<280 210 370 210 "" 0 0 0 "">
|
||||
<400 80 400 100 "" 0 0 0 "">
|
||||
<400 240 400 260 "" 0 0 0 "">
|
||||
<400 320 400 330 "" 0 0 0 "">
|
||||
<280 270 280 310 "" 0 0 0 "">
|
||||
<260 210 280 210 "" 0 0 0 "">
|
||||
<150 210 150 250 "" 0 0 0 "">
|
||||
<150 210 200 210 "in" 150 160 6 "">
|
||||
<400 160 400 170 "" 0 0 0 "">
|
||||
<600 170 600 270 "" 0 0 0 "">
|
||||
<580 170 600 170 "out" 610 130 2 "">
|
||||
<400 170 400 180 "" 0 0 0 "">
|
||||
<400 170 520 170 "out2" 490 120 50 "">
|
||||
<400 80 650 80 "" 0 0 0 "">
|
||||
<710 80 820 80 "" 0 0 0 "">
|
||||
<820 80 820 110 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 10 750 240 160 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.v(out)" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/tran.v(out2)" #ff0000 0 3 0 0 0>
|
||||
<"ngspice/tran.v(in)" #ff00ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 690 740 240 160 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/phase(v(out))" #0000ff 0 3 0 6 0>
|
||||
</Rect>
|
||||
<Rect 350 750 240 160 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/magnitude(v(out))" #0000ff 0 3 0 6 0>
|
||||
<"ngspice/magnitude(v(out2))" #ff0000 0 3 0 6 0>
|
||||
</Rect>
|
||||
<Rect 10 1030 240 160 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"xyce/magnitude(V(OUT))" #0000ff 0 3 0 6 0>
|
||||
<"xyce/magnitude(V(OUT2))" #ff0000 0 3 0 6 0>
|
||||
</Rect>
|
||||
<Rect 380 1030 240 160 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"xyce/phase(V(OUT))" #0000ff 0 3 0 6 0>
|
||||
<"xyce/phase(V(OUT2))" #ff0000 0 3 0 6 0>
|
||||
</Rect>
|
||||
<Tab 137 1413 611 281 3 #c0c0c0 1 00 1 0 1 1 1 0 1 1 1 0 1 20 315 0 225 "" "" "">
|
||||
<"ngspice/magnitude(v(out))" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/phase(v(out))" #0000ff 0 3 0 0 0>
|
||||
</Tab>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text -40 90 12 #000000 0 "Fourier analysis example.\nCould be run only with Ngspice or Xyce">
|
||||
</Paintings>
|
70
examples/ngspice/BJT-noise.sch
Normal file
70
examples/ngspice/BJT-noise.sch
Normal file
@ -0,0 +1,70 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=-126,-300,932,947,1,46,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=BJT-noise.dat>
|
||||
<DataDisplay=BJT-noise.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=BJT-noise.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<_BJT Q2N2222A_1 1 400 210 8 -26 0 0 "npn" 0 "8.11e-14" 0 "1" 0 "1" 0 "0.5" 0 "0.225" 0 "113" 0 "24" 0 "1.06e-11" 0 "2" 0 "0" 0 "2" 0 "205" 0 "4" 0 "0" 0 "0" 0 "0.137" 0 "0.343" 0 "1.37" 0 "2.95e-11" 0 "0.75" 0 "0.33" 0 "1.52e-11" 0 "0.75" 0 "0.33" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "3.97e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
|
||||
<GND * 1 280 310 0 0 0 0>
|
||||
<R R1 1 280 240 15 -26 0 1 "2 kOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R2 1 400 290 15 -26 0 1 "470 Ohm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 150 310 0 0 0 0>
|
||||
<R R3 1 280 150 15 -26 0 1 "24 kOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<C C2 1 550 170 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
<R R5 1 400 130 15 -26 0 1 "4.7k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<Vac V2 1 150 280 18 -26 0 1 "1000 mV" 1 "4 kHz" 1 "0" 0 "0" 0>
|
||||
<.NOISE NOISE1 1 160 380 0 71 0 0 "lin" 1 "1 Hz" 1 "10 MHz" 1 "100" 1 "v(out)" 1 "V2" 1>
|
||||
<IProbe Pr1 1 490 80 -26 16 1 2>
|
||||
<Vdc V1 1 680 140 18 -26 0 1 "12 V" 1>
|
||||
<GND * 1 680 170 0 0 0 0>
|
||||
<R R4 1 600 260 15 -26 0 1 "47k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 600 290 0 0 0 0>
|
||||
<GND * 1 400 320 0 0 0 0>
|
||||
<C C1 1 220 210 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
<.SW SW1 1 20 380 0 71 0 0 "NOISE1" 1 "lin" 1 "R5" 1 "1k" 1 "10k" 1 "20" 1>
|
||||
</Components>
|
||||
<Wires>
|
||||
<280 80 280 120 "" 0 0 0 "">
|
||||
<280 80 400 80 "" 0 0 0 "">
|
||||
<280 180 280 210 "" 0 0 0 "">
|
||||
<280 210 370 210 "" 0 0 0 "">
|
||||
<400 80 400 100 "" 0 0 0 "">
|
||||
<400 240 400 260 "" 0 0 0 "">
|
||||
<280 270 280 310 "" 0 0 0 "">
|
||||
<400 160 400 170 "" 0 0 0 "">
|
||||
<400 170 400 180 "" 0 0 0 "">
|
||||
<400 170 520 170 "" 0 0 0 "">
|
||||
<400 80 460 80 "" 0 0 0 "">
|
||||
<520 80 680 80 "" 0 0 0 "">
|
||||
<680 80 680 110 "" 0 0 0 "">
|
||||
<580 170 600 170 "out" 610 130 2 "">
|
||||
<600 170 600 230 "" 0 0 0 "">
|
||||
<250 210 280 210 "" 0 0 0 "">
|
||||
<150 210 150 250 "" 0 0 0 "">
|
||||
<150 210 190 210 "in" 150 160 6 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Tab 330 566 561 190 3 #c0c0c0 1 00 1 0 1 1 1 0 1 1 1 0 1 21 315 0 225 "" "" "">
|
||||
<"ngspice/inoise_total" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/onoise_total" #0000ff 0 3 0 0 0>
|
||||
</Tab>
|
||||
<Rect 60 849 442 219 3 #c0c0c0 1 00 1 1000 1000 10000 1 -6.37339e-10 2e-09 8.69074e-09 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/inoise_total" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/onoise_total" #ff0000 0 3 0 0 1>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 50 -40 12 #000000 0 "Here is a noise analysis exmple. This is BJT \none-stage amplifier. Simulate this circuit and plot\nonoise _ total and inoise _ total variables to obtain\ndependencies of total noise vs. collector resistance.\nNOTE: This Example could be run only with Ngspice">
|
||||
</Paintings>
|
45570
examples/ngspice/BJT-swp.dat.ngspice
Normal file
45570
examples/ngspice/BJT-swp.dat.ngspice
Normal file
File diff suppressed because it is too large
Load Diff
0
examples/ngspice/BJT-swp.dpl
Normal file
0
examples/ngspice/BJT-swp.dpl
Normal file
77
examples/ngspice/BJT-swp.sch
Normal file
77
examples/ngspice/BJT-swp.sch
Normal file
@ -0,0 +1,77 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=-41,-94,1091,1196,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=BJT-swp.dat>
|
||||
<DataDisplay=BJT-swp.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=BJT-swp.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Название>
|
||||
<FrameText1=Чертил:>
|
||||
<FrameText2=Дата:>
|
||||
<FrameText3=Версия:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<_BJT Q2N2222A_1 1 370 270 8 -26 0 0 "npn" 0 "8.11e-14" 0 "1" 0 "1" 0 "0.5" 0 "0.225" 0 "113" 0 "24" 0 "1.06e-11" 0 "2" 0 "0" 0 "2" 0 "205" 0 "4" 0 "0" 0 "0" 0 "0.137" 0 "0.343" 0 "1.37" 0 "2.95e-11" 0 "0.75" 0 "0.33" 0 "1.52e-11" 0 "0.75" 0 "0.33" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "3.97e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
|
||||
<GND * 1 370 390 0 0 0 0>
|
||||
<GND * 1 250 370 0 0 0 0>
|
||||
<R R3 1 250 300 15 -26 0 1 "2 kOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R4 1 370 350 15 -26 0 1 "470 Ohm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 120 370 0 0 0 0>
|
||||
<R R1 1 250 210 15 -26 0 1 "24 kOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R5 1 570 360 15 -26 0 1 "47k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 570 390 0 0 0 0>
|
||||
<IProbe Pr1 1 650 140 -26 16 0 0>
|
||||
<Vdc V1 1 790 200 18 -26 0 1 "12 V" 1>
|
||||
<GND * 1 790 230 0 0 0 0>
|
||||
<R R2 1 370 190 15 -26 0 1 "2k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<Vac V2 1 120 340 18 -26 0 1 "200 mV" 1 "10 kHz" 1 "0" 0 "0" 0>
|
||||
<Eqn Eqn1 1 860 430 -31 17 0 0 "Rload=47k" 1 "K=out.v/in.v" 1 "Pwr=(out.Vt*out.Vt)/Rload" 1 "yes" 0>
|
||||
<.DC DC1 1 480 430 0 61 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
<.SW SW1 1 210 430 0 71 0 0 "AC1" 1 "lin" 1 "R2" 1 "1k" 1 "10k" 1 "4" 1>
|
||||
<.SW SW2 1 80 430 0 71 0 0 "TR1" 1 "lin" 1 "R2" 1 "1k" 1 "10k" 1 "3" 1>
|
||||
<.TR TR1 1 350 430 0 71 0 0 "lin" 1 "0" 1 "0.5 ms" 1 "200" 1 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
|
||||
<C C1 1 200 270 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
<C C2 1 520 230 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
<.AC AC1 1 650 430 0 43 0 0 "lin" 1 "1 Hz" 1 "10 MHz" 1 "2000" 1 "no" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<250 140 250 180 "" 0 0 0 "">
|
||||
<250 140 370 140 "" 0 0 0 "">
|
||||
<250 240 250 270 "" 0 0 0 "">
|
||||
<250 270 340 270 "" 0 0 0 "">
|
||||
<370 140 370 160 "" 0 0 0 "">
|
||||
<370 220 370 230 "" 0 0 0 "">
|
||||
<370 300 370 320 "" 0 0 0 "">
|
||||
<370 380 370 390 "" 0 0 0 "">
|
||||
<250 330 250 370 "" 0 0 0 "">
|
||||
<370 230 370 240 "" 0 0 0 "">
|
||||
<570 230 570 330 "" 0 0 0 "">
|
||||
<550 230 570 230 "out" 580 190 2 "">
|
||||
<370 230 490 230 "" 0 0 0 "">
|
||||
<370 140 620 140 "" 0 0 0 "">
|
||||
<680 140 790 140 "" 0 0 0 "">
|
||||
<790 140 790 170 "" 0 0 0 "">
|
||||
<230 270 250 270 "" 0 0 0 "">
|
||||
<120 270 120 310 "" 0 0 0 "">
|
||||
<120 270 170 270 "in" 120 220 6 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 512 870 382 210 3 #c0c0c0 1 10 1 0 1 0 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.k" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 80 874 352 217 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.v(in)" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/tran.v(out)" #ff0000 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 110 1120 444 168 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.pwr" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 670 310 12 #000000 0 "This schematic shows how to utilize Parameter sweep\nwith Ngpice simulation.\nNOTE: This Example could be run only with Ngspice ">
|
||||
</Paintings>
|
72
examples/ngspice/BJT.sch
Normal file
72
examples/ngspice/BJT.sch
Normal file
@ -0,0 +1,72 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=-78,26,1020,1234,1,169,420>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=BJT.dat>
|
||||
<DataDisplay=BJT.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=BJT.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<_BJT Q2N2222A_1 1 400 210 8 -26 0 0 "npn" 0 "8.11e-14" 0 "1" 0 "1" 0 "0.5" 0 "0.225" 0 "113" 0 "24" 0 "1.06e-11" 0 "2" 0 "0" 0 "2" 0 "205" 0 "4" 0 "0" 0 "0" 0 "0.137" 0 "0.343" 0 "1.37" 0 "2.95e-11" 0 "0.75" 0 "0.33" 0 "1.52e-11" 0 "0.75" 0 "0.33" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "3.97e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
|
||||
<GND * 1 400 330 0 0 0 0>
|
||||
<GND * 1 280 310 0 0 0 0>
|
||||
<R R1 1 280 240 15 -26 0 1 "2 kOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R2 1 400 290 15 -26 0 1 "470 Ohm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 150 310 0 0 0 0>
|
||||
<C C1 1 230 210 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
<R R3 1 280 150 15 -26 0 1 "24 kOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 600 330 0 0 0 0>
|
||||
<C C2 1 550 170 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
<Vdc V1 1 820 140 18 -26 0 1 "12 V" 1>
|
||||
<GND * 1 820 170 0 0 0 0>
|
||||
<.TR TR1 1 330 380 0 71 0 0 "lin" 1 "0" 1 "1 ms" 1 "1000" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
|
||||
<R R5 1 400 130 15 -26 0 1 "4.7k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<Vac V2 1 150 280 18 -26 0 1 "200 mV" 1 "4 kHz" 1 "0" 0 "0" 0>
|
||||
<.DC DC1 1 660 380 0 61 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
<R R4 1 600 300 15 -26 0 1 "Rload" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<Eqn Eqn1 1 150 390 -31 17 0 0 "Rload=47k" 1 "K=out.v/in.v" 1 "Pwr=(out.Vt*out.Vt)/Rload" 1 "yes" 0>
|
||||
<IProbe Pr1 1 680 80 -26 16 1 2>
|
||||
<.AC AC1 1 490 380 0 61 0 0 "log" 1 "100 Hz" 1 "10 MHz" 1 "101" 1 "no" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<280 80 280 120 "" 0 0 0 "">
|
||||
<280 80 400 80 "" 0 0 0 "">
|
||||
<280 180 280 210 "" 0 0 0 "">
|
||||
<280 210 370 210 "" 0 0 0 "">
|
||||
<400 80 400 100 "" 0 0 0 "">
|
||||
<400 240 400 260 "" 0 0 0 "">
|
||||
<400 320 400 330 "" 0 0 0 "">
|
||||
<280 270 280 310 "" 0 0 0 "">
|
||||
<260 210 280 210 "" 0 0 0 "">
|
||||
<150 210 150 250 "" 0 0 0 "">
|
||||
<150 210 200 210 "in" 150 160 6 "">
|
||||
<400 160 400 170 "" 0 0 0 "">
|
||||
<600 170 600 270 "" 0 0 0 "">
|
||||
<580 170 600 170 "out" 610 130 2 "">
|
||||
<400 170 400 180 "" 0 0 0 "">
|
||||
<400 170 520 170 "" 0 0 0 "">
|
||||
<400 80 650 80 "" 0 0 0 "">
|
||||
<710 80 820 80 "" 0 0 0 "">
|
||||
<820 80 820 110 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 510 1136 368 271 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.i(pr1)" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/tran.pwr" #ff0000 0 3 0 0 1>
|
||||
</Rect>
|
||||
<Rect 506 835 387 269 3 #c0c0c0 1 10 1 0 1 0 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.k" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 110 580 12 #000000 0 "This example shows the following \nfeatures of Ngspice support:\n1. Semiconductor devices usage\n2. AC and TRAN analysis\n3. Current probes usage\n4. Parametrization usage. Rload is parameter.\n5. Postprocessing usage in frequency domain.\n Volatge gain K calculation.\n6. Postrprocessing usage in time domain.\n\nNOTE: You can run this example with Qucsator and\n Ngspice and compare results.">
|
||||
</Paintings>
|
45
examples/ngspice/BJT_dc.sch
Normal file
45
examples/ngspice/BJT_dc.sch
Normal file
@ -0,0 +1,45 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,146,1033,870,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=BJT_dc.dat>
|
||||
<DataDisplay=BJT_dc.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=BJT_dc.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 1 270 320 0 0 0 0>
|
||||
<GND * 1 420 320 0 0 0 0>
|
||||
<GND * 1 110 370 0 0 0 0>
|
||||
<IProbe Pr1 1 340 200 -26 16 1 2>
|
||||
<Vdc V1 1 420 290 18 -26 0 1 "5" 1>
|
||||
<Idc I2 1 110 340 18 -26 1 3 "5u" 1>
|
||||
<_BJT T1 1 270 290 12 -32 0 0 "npn" 0 "1e-14" 0 "1" 0 "1" 0 "0.3" 0 "0" 0 "100" 0 "0" 0 "0" 0 "1.5" 0 "0" 0 "2" 0 "200" 1 "3" 0 "0" 0 "0" 0 "3" 0 "1" 0 "10" 0 "25e-12" 0 "0.75" 0 "0.33" 0 "8e-12" 0 "0.75" 0 "0.33" 0 "1.0" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "400e-12" 0 "3" 0 "0.0" 0 "2" 0 "100e-9" 0 "26.85" 0 "0.0" 0 "1.0" 0 "1.0" 0 "0.0" 0 "1.0" 0 "1.0" 0 "0.0" 0 "0.0" 0 "3.0" 0 "1.11" 0 "26.85" 0 "1.0" 0>
|
||||
<.DC DC1 1 60 420 0 43 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
<.SW SW1 1 250 370 0 71 0 0 "DC1" 1 "lin" 1 "V1" 1 "0" 1 "5" 1 "250" 1>
|
||||
<.SW SW2 1 390 370 0 71 0 0 "SW1" 1 "lin" 1 "T1.Bf" 1 "20" 1 "200" 1 "5" 1>
|
||||
</Components>
|
||||
<Wires>
|
||||
<270 200 270 260 "" 0 0 0 "">
|
||||
<270 200 310 200 "" 0 0 0 "">
|
||||
<420 200 420 260 "" 0 0 0 "">
|
||||
<110 290 110 310 "" 0 0 0 "">
|
||||
<110 290 240 290 "" 0 0 0 "">
|
||||
<370 200 420 200 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 610 442 386 242 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/i(pr1)" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 530 500 12 #000000 0 "This is an example of DC sweep usage with \nNgspice. It shows how to sweep model \nparameters with Ngspice. Simulate it with Ngspice\n and obtain IV-chart of BJT.\n\nNOTE: This Example could be run only with Ngspice">
|
||||
</Paintings>
|
73
examples/ngspice/Distortion.sch
Normal file
73
examples/ngspice/Distortion.sch
Normal file
@ -0,0 +1,73 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=50,10,1067,944,1,88,364>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=Distortion.dat>
|
||||
<DataDisplay=Distortion.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=Distortion.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<.DC DC1 1 720 380 0 61 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
<.TR TR1 1 390 380 0 79 0 0 "lin" 1 "0" 1 "1 ms" 1 "1000" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
|
||||
<.DISTO DISTO1 1 550 380 0 79 0 0 "lin" 1 "1 Hz" 1 "10 kHz" 1 "1000" 1 "" 0>
|
||||
<_BJT Q2N2222A_1 1 480 210 8 -26 0 0 "npn" 0 "8.11e-14" 0 "1" 0 "1" 0 "0.5" 0 "0.225" 0 "113" 0 "24" 0 "1.06e-11" 0 "2" 0 "0" 0 "2" 0 "205" 0 "4" 0 "0" 0 "0" 0 "0.137" 0 "0.343" 0 "1.37" 0 "2.95e-11" 0 "0.75" 0 "0.33" 0 "1.52e-11" 0 "0.75" 0 "0.33" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "3.97e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
|
||||
<R R1 1 360 240 15 -26 0 1 "2 kOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R3 1 360 150 15 -26 0 1 "24 kOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 680 330 0 0 0 0>
|
||||
<Vdc V1 1 900 140 18 -26 0 1 "12 V" 1>
|
||||
<GND * 1 900 170 0 0 0 0>
|
||||
<R R5 1 480 130 15 -26 0 1 "4.7k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R4 1 680 300 15 -26 0 1 "Rload" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<IProbe Pr1 1 760 80 -26 16 1 2>
|
||||
<Eqn Eqn1 1 170 440 -31 17 0 0 "Rload=47k" 1 "K=out.v/in.v" 1 "yes" 0>
|
||||
<GND * 1 360 290 0 0 0 0>
|
||||
<R R2 1 480 270 15 -26 0 1 "470 Ohm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 480 300 0 0 0 0>
|
||||
<GND * 1 150 370 0 0 0 0>
|
||||
<C C1 1 270 210 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
<C C2 1 620 170 -26 17 0 0 "0.1 uF" 1 "" 0 "neutral" 0>
|
||||
<Vac_SPICE V2 1 150 320 18 -26 0 1 "Vac= DISTOF1 0.2 DC 0" 1 "Vac_Line 2=+ SIN(0 0.2 4k 0 0) AC 0.2" 1 "Vac_Line 3=" 0 "Vac_Line 4=" 0 "Vac_Line 5=" 0>
|
||||
<NutmegEq NutmegEq1 1 270 440 -27 17 0 0 "disto" 1 "H2=disto1.v(out)" 1 "H3=disto2.v(out)" 1>
|
||||
</Components>
|
||||
<Wires>
|
||||
<360 80 360 120 "" 0 0 0 "">
|
||||
<360 80 480 80 "" 0 0 0 "">
|
||||
<360 180 360 210 "" 0 0 0 "">
|
||||
<360 210 450 210 "" 0 0 0 "">
|
||||
<480 80 480 100 "" 0 0 0 "">
|
||||
<480 160 480 170 "" 0 0 0 "">
|
||||
<480 170 480 180 "" 0 0 0 "">
|
||||
<480 80 730 80 "" 0 0 0 "">
|
||||
<790 80 900 80 "" 0 0 0 "">
|
||||
<900 80 900 110 "" 0 0 0 "">
|
||||
<360 270 360 290 "" 0 0 0 "">
|
||||
<300 210 360 210 "" 0 0 0 "">
|
||||
<680 170 680 270 "" 0 0 0 "">
|
||||
<650 170 680 170 "out" 690 130 12 "">
|
||||
<480 170 590 170 "" 0 0 0 "">
|
||||
<150 350 150 370 "" 0 0 0 "">
|
||||
<150 210 240 210 "in" 210 170 6 "">
|
||||
<150 210 150 290 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 697 825 323 243 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.v(in)" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/tran.v(out)" #ff0000 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 230 822 372 242 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.h2" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/ac.h3" #ff0000 0 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 80 30 12 #000000 0 "DISTORTION analysis example.\n 2nd and 3rd harmonic \ncomponents are plotted.\n\nNOTE: This Example could be run \nonly with Ngspice">
|
||||
</Paintings>
|
47
examples/ngspice/EDD-Q-test.sch
Normal file
47
examples/ngspice/EDD-Q-test.sch
Normal file
@ -0,0 +1,47 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,-251,922,588,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=EDD-Q-test.dat>
|
||||
<DataDisplay=EDD-Q-test.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=EDD-Q-test.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 1 100 220 0 0 0 0>
|
||||
<R R1 1 240 130 -26 15 0 0 "1k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<Vdc V1 1 100 190 18 -26 0 1 "1 V" 1>
|
||||
<.AC AC1 1 100 280 0 43 0 0 "lin" 1 "1 Hz" 1 "10 kHz" 1 "200" 1 "no" 0>
|
||||
<GND * 1 310 240 0 0 0 0>
|
||||
<.DC DC1 1 260 280 0 43 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
<EDD D1 1 310 200 36 -26 1 1 "explicit" 0 "1" 0 "0" 1 "-(1e-6*V1+(0.5e-6*V1^2)/2+(0.2e-6*V1^3)/3)" 1>
|
||||
<Vac V2 1 180 130 -26 -58 0 2 "1 V" 1 "300 Hz" 0 "0" 0 "0" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<270 130 310 130 "out" 320 100 15 "">
|
||||
<310 130 310 170 "" 0 0 0 "">
|
||||
<310 230 310 240 "" 0 0 0 "">
|
||||
<100 130 100 160 "" 0 0 0 "">
|
||||
<100 130 150 130 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 476 138 369 225 3 #c0c0c0 1 10 1 1 1 10000 1 -0.0749954 0.5 1.09772 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"out.v" #0000ff 0 3 0 0 0>
|
||||
<"xyce/ac.V(OUT)" #ff0000 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 488 490 350 211 3 #c0c0c0 1 10 1 0 1 0 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.v(out)" #0000ff 0 3 0 0 0>
|
||||
<"xyce/ac.V(OUT)" #ff0000 0 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 50 -40 12 #000000 0 "This is a nonlinear capacitance example for \nNgspice and Xyce. It is shown how to use charge\nequations with EDDs. Simulate it with Qucs, Ngspice,\nand Xyce and compare results.">
|
||||
</Paintings>
|
75
examples/ngspice/Full_wave.sch
Normal file
75
examples/ngspice/Full_wave.sch
Normal file
@ -0,0 +1,75 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,36,1550,1038,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=Full_wave.dat>
|
||||
<DataDisplay=Full_wave.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=Full_wave.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 1 460 240 0 0 0 0>
|
||||
<GND * 1 280 340 0 0 0 0>
|
||||
<R R2 1 490 150 -5 22 0 0 "1" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R3 1 490 340 -26 15 0 0 "1" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<IProbe PrD1 1 610 150 -26 16 0 0>
|
||||
<IProbe PrD2 1 610 340 -26 16 0 0>
|
||||
<Vac V1 1 200 220 18 -26 0 1 "250 V" 1 "50Hz" 1 "0" 0 "0" 0>
|
||||
<C C1 1 900 220 17 -26 0 1 "200u" 1 "" 0 "neutral" 0>
|
||||
<R R4 1 830 220 -55 -20 0 1 "1k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<Diode D1 1 550 150 -26 15 1 2 "1e-15 A" 1 "1" 1 "10p" 1 "0.5" 0 "0.7 V" 0 "0.5" 0 "0.0 fF" 0 "0.0" 0 "2.0" 0 "0.0 Ohm" 0 "1n" 1 "0" 0 "0.0" 0 "1.0" 0 "1.0" 0 "300" 1 "1 mA" 0 "26.85" 0 "3.0" 0 "1.11" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "26.85" 0 "1.0" 0 "US" 0>
|
||||
<Diode D2 1 550 340 -26 15 1 2 "1e-15 A" 1 "1" 1 "10p" 1 "0.5" 0 "0.7 V" 0 "0.5" 0 "0.0 fF" 0 "0.0" 0 "2.0" 0 "0.0 Ohm" 0 "1n" 1 "0" 0 "0.0" 0 "1.0" 0 "1.0" 0 "300" 1 "1 mA" 0 "26.85" 0 "3.0" 0 "1.11" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "26.85" 0 "1.0" 0 "US" 0>
|
||||
<R R1 1 260 150 8 16 0 0 "10" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 830 250 0 0 0 0>
|
||||
<GND * 1 900 250 0 0 0 0>
|
||||
<.DC DC1 1 650 400 0 46 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
<.TR TR1 1 850 340 0 77 0 0 "lin" 1 "0" 1 "200 ms" 1 "8001" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
|
||||
<Sub TRAN1 1 380 200 -28 152 0 0 "single_phase_transformer.sch" 0 "100mH" 1 "20mH" 1 "20mH" 1 "0.999" 1 "0.999" 1 "0.999" 1>
|
||||
</Components>
|
||||
<Wires>
|
||||
<200 250 200 340 "" 0 0 0 "">
|
||||
<200 340 280 340 "" 0 0 0 "">
|
||||
<280 340 330 340 "" 0 0 0 "">
|
||||
<830 150 830 190 "" 0 0 0 "">
|
||||
<830 150 900 150 "" 0 0 0 "">
|
||||
<900 150 900 190 "" 0 0 0 "">
|
||||
<640 150 690 150 "" 0 0 0 "">
|
||||
<640 340 690 340 "" 0 0 0 "">
|
||||
<690 150 690 340 "" 0 0 0 "">
|
||||
<290 150 340 150 "" 0 0 0 "">
|
||||
<200 150 200 190 "" 0 0 0 "">
|
||||
<200 150 230 150 "" 0 0 0 "">
|
||||
<690 150 830 150 "" 0 0 0 "">
|
||||
<460 150 460 150 "Ns1" 450 170 0 "">
|
||||
<460 340 460 340 "Ns2" 450 290 0 "">
|
||||
<900 150 900 150 "Nl" 850 160 0 "">
|
||||
<340 150 340 150 "Np" 320 170 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 180 937 367 175 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.v(nl)" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 669 940 348 173 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.i(vprd1)" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/tran.i(vprd2)" #ff0000 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 510 700 181 161 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.v(ns1)" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 210 710 180 163 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.v(np)" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 820 700 180 158 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.v(ns2)" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
</Paintings>
|
BIN
examples/ngspice/LM358_spice_prj.tar.gz
Normal file
BIN
examples/ngspice/LM358_spice_prj.tar.gz
Normal file
Binary file not shown.
88
examples/ngspice/MESFETs/testACMESFETCL1.sch
Normal file
88
examples/ngspice/MESFETs/testACMESFETCL1.sch
Normal file
@ -0,0 +1,88 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,50,1374,1034,1,0,60>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=testACMESFETCL1.dat>
|
||||
<DataDisplay=testACMESFETCL1.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=testACMESFETCL1.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
<.ID -20 -16 SUB>
|
||||
<Line -20 20 40 0 #000080 2 1>
|
||||
<Line 20 20 0 -40 #000080 2 1>
|
||||
<Line -20 -20 40 0 #000080 2 1>
|
||||
<Line -20 20 0 -40 #000080 2 1>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 1 820 380 0 0 0 0>
|
||||
<R_SPICE R2 1 820 350 15 -26 0 1 "47k" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<GND * 1 640 380 0 0 0 0>
|
||||
<.TR TR1 1 930 360 0 65 0 0 "lin" 1 "0" 1 "10 ms" 1 "10001" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 1 "0" 0>
|
||||
<.FOURIER FOUR1 1 1080 360 0 65 0 0 "TR1" 1 "10" 1 "1kHz" 1 "V(nin) V(nout)" 1>
|
||||
<IProbe PrIds 1 740 110 -26 16 1 2>
|
||||
<R_SPICE R1 1 640 200 15 -26 0 1 "2000" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<L_SPICE L1 5 850 110 -26 10 0 0 "1" 0 "" 0 "" 0 "" 0 "" 0>
|
||||
<C_SPICE C4 5 880 140 17 -26 0 1 "1" 0 "" 0 "" 0 "" 0 "" 0>
|
||||
<S4Q_V V1 1 940 140 18 -26 0 1 "dc 10" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<GND * 1 880 190 0 0 0 0>
|
||||
<GND * 1 940 190 0 0 0 0>
|
||||
<C_SPICE C3 1 750 260 -29 38 0 2 "1u" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<.AC AC1 1 1060 190 0 40 0 0 "log" 1 "100Hz" 1 "100MHz" 1 "241" 1 "no" 0>
|
||||
<.DC DC1 1 1060 90 0 40 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
<S4Q_V V4 1 240 370 12 -151 0 1 "dc 0 ac 0.1 sin(0 250m 1k 0 0) " 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<GND * 1 240 400 0 0 0 0>
|
||||
<L_SPICE L2 5 380 370 10 -26 1 3 "10" 0 "" 0 "" 0 "" 0 "" 0>
|
||||
<C_SPICE C5 5 350 340 -26 -17 0 2 "10" 0 "" 0 "" 0 "" 0 "" 0>
|
||||
<S4Q_V V5 1 380 470 35 -21 0 1 "dc -1.0 ac 0" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<GND * 1 380 500 0 0 0 0>
|
||||
<IProbe PrIgs 1 510 340 -26 16 0 0>
|
||||
<Lib MESFETCL1 1 640 340 -540 -205 0 0 "MESFETs" 0 "MESFETCL1" 0 "3e-3" 1 "0.05" 1 "2.25" 1 "-1.8" 1 "1" 1 "5.1" 1 "1.3" 1 "1.3" 1 "1e-15" 1 "10.0" 1 "1.0" 1 "0.1e-9" 1 "0.1e-9" 1 "0.1e-9" 1 "1e-12" 1 "1e-12" 1 "1e-12" 1 "1e-3" 1>
|
||||
</Components>
|
||||
<Wires>
|
||||
<640 110 710 110 "" 0 0 0 "">
|
||||
<640 110 640 170 "" 0 0 0 "">
|
||||
<640 230 640 260 "" 0 0 0 "">
|
||||
<770 110 820 110 "" 0 0 0 "">
|
||||
<940 170 940 190 "" 0 0 0 "">
|
||||
<880 110 940 110 "" 0 0 0 "">
|
||||
<880 170 880 190 "" 0 0 0 "">
|
||||
<820 260 820 320 "nout" 800 220 0 "">
|
||||
<780 260 820 260 "" 0 0 0 "">
|
||||
<640 260 640 300 "" 0 0 0 "">
|
||||
<640 260 720 260 "" 0 0 0 "">
|
||||
<240 340 320 340 "" 0 0 0 "">
|
||||
<380 400 380 440 "" 0 0 0 "">
|
||||
<540 340 600 340 "" 0 0 0 "">
|
||||
<380 340 480 340 "nin" 470 280 100 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 920 710 330 160 2 #c0c0c0 1 00 1 0 2000 9000 1 -6 2 1.05 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/magnitude(v(nin))" #0000ff 2 3 0 6 0>
|
||||
</Rect>
|
||||
<Rect 100 947 344 167 2 #c0c0c0 1 00 1 0 0.002 0.01 1 -5.6 0.5 -4.4 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.v(nin)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 100 714 328 164 2 #c0c0c0 1 10 1 100 1 1e+08 0 0.09 0.02 0.11 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.v(nin)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 520 716 319 166 2 #c0c0c0 1 10 1 1 1 1e+08 1 0.204376 0.5 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.v(nout)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 520 952 304 172 2 #c0c0c0 1 00 1 0 0.002 0.01 1 -3.04731 5 6.68808 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.v(nout)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 920 952 326 172 2 #c0c0c0 1 00 1 0 2000 9000 1 -0.356885 2 4 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/magnitude(v(nout))" #0000ff 2 3 0 6 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Rectangle 820 70 100 90 #aa0000 3 1 #c0c0c0 1 0>
|
||||
<Rectangle 300 320 110 100 #aa0000 3 1 #c0c0c0 1 0>
|
||||
</Paintings>
|
47
examples/ngspice/MESFETs/testDCIdsVgs.sch
Normal file
47
examples/ngspice/MESFETs/testDCIdsVgs.sch
Normal file
@ -0,0 +1,47 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=-72,39,1281,953,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=testDCIdsVgs.dat>
|
||||
<DataDisplay=testDCIdsVgs.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=testDCIdsVgs.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 1 780 240 0 0 0 0>
|
||||
<IProbe PrIds 1 670 180 -26 16 1 2>
|
||||
<IProbe PrIgs 1 450 240 -26 16 0 0>
|
||||
<S4Q_V V1 1 780 210 18 -26 0 1 "3" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<GND * 1 580 280 0 0 0 0>
|
||||
<.SW SW2 1 1010 160 0 65 0 0 "SW1" 1 "lin" 1 "V2" 1 "-3" 1 "0" 1 "8" 1 "false" 0>
|
||||
<Lib MESFETCL1 1 580 240 -384 -136 0 0 "MESFETs" 0 "MESFETCL1" 0 "3e-3" 1 "0.05" 1 "2.25" 1 "-1.8" 1 "1" 1 "5.1" 1 "1.3" 1 "1.3" 1 "1e-15" 1 "10.0" 1 "1.0" 1 "0.1e-9" 1 "0.1e-9" 1 "0.1e-9" 1 "1e-12" 1 "1e-12" 1 "1e-12" 1 "1e-3" 1>
|
||||
<.SW SW1 1 860 170 0 65 0 0 "DC1" 1 "lin" 1 "V1" 1 "1" 1 "11" 1 "6" 1 "false" 0>
|
||||
<.DC DC1 1 620 260 0 40 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
<GND * 1 340 300 0 0 0 0>
|
||||
<S4Q_V V2 1 340 270 18 -26 0 1 "-1" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<700 180 780 180 "" 0 0 0 "">
|
||||
<480 240 540 240 "" 0 0 0 "">
|
||||
<580 180 580 200 "" 0 0 0 "">
|
||||
<580 180 640 180 "" 0 0 0 "">
|
||||
<340 240 420 240 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect3D 590 838 492 428 3 #c0c0c0 1 00 1 1 1 9.33335 1 -3.3 0.5 0.3 1 -0.0013953 0.002 0.0153483 315 0 314 "V(nds) V" "" "">
|
||||
<"ngspice/i(vprids)" #0000ff 2 3 0 0 1>
|
||||
</Rect3D>
|
||||
<Rect 200 851 368 331 3 #c0c0c0 1 00 1 1 1 9.33335 1 -0.0013953 0.002 0.0153483 1 -1 0.5 1 315 0 225 "V(nds) V" "" "">
|
||||
<"ngspice/i(vprids)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
</Paintings>
|
47
examples/ngspice/MESFETs/testDCMESFETCL1.sch
Normal file
47
examples/ngspice/MESFETs/testDCMESFETCL1.sch
Normal file
@ -0,0 +1,47 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,-120,1503,1165,1,0,180>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=testDCMESFETCL1.dat>
|
||||
<DataDisplay=testDCMESFETCL1.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=testDCMESFETCL1.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<IProbe PrIds 1 670 180 -26 16 1 2>
|
||||
<GND * 1 250 300 0 0 0 0>
|
||||
<S4Q_V V2 1 250 270 18 -26 0 1 "-1" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<GND * 1 580 280 0 0 0 0>
|
||||
<Lib MESFETCL1 1 580 240 -54 84 0 0 "MESFETs" 0 "MESFETCL1" 0 "3e-3" 1 "0.05" 1 "2.25" 1 "-1.8" 1 "1" 1 "5.1" 1 "1.3" 1 "1.3" 1 "1e-15" 1 "10.0" 1 "1.0" 1 "0.1e-9" 1 "0.1e-9" 1 "0.1e-9" 1 "1e-12" 1 "1e-12" 1 "1e-12" 1 "1e-3" 1>
|
||||
<.SW SW1 1 690 290 0 65 0 0 "DC1" 1 "lin" 1 "V1" 1 "-10" 1 "10" 1 "121" 1 "false" 0>
|
||||
<.SW SW2 1 840 290 0 65 0 0 "SW1" 1 "lin" 1 "V2" 1 "-5" 1 "0.5" 1 "14" 1 "false" 0>
|
||||
<GND * 1 720 240 0 0 0 0>
|
||||
<S4Q_V V1 1 720 210 18 -26 0 1 "3" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<.DC DC1 1 790 170 0 40 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
<IProbe PrIgs 1 380 240 -26 16 0 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<580 180 580 200 "" 0 0 0 "">
|
||||
<580 180 640 180 "" 0 0 0 "">
|
||||
<700 180 720 180 "" 0 0 0 "">
|
||||
<410 240 540 240 "" 0 0 0 "">
|
||||
<250 240 350 240 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 140 671 368 331 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
|
||||
<"ngspice/i(vprids)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 700 700 240 160 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
|
||||
<"ngspice/i(vprigs)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
</Paintings>
|
64
examples/ngspice/RCL.sch
Normal file
64
examples/ngspice/RCL.sch
Normal file
@ -0,0 +1,64 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,48,1022,1477,1,0,600>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=RCL.dat>
|
||||
<DataDisplay=RCL.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=ngsp-RCL.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 1 30 310 0 0 0 0>
|
||||
<Vac V1 1 30 280 18 -26 0 1 "0.6 V" 1 "7.5 MHz" 0 "0" 0 "0" 0>
|
||||
<IProbe Pr1 1 60 200 -26 16 0 0>
|
||||
<L L1 1 170 200 -26 10 0 0 "10u" 1 "" 0>
|
||||
<R R1 1 350 270 15 -26 0 1 "30" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<C C1 1 270 200 -26 17 0 0 "40p" 1 "" 0 "neutral" 0>
|
||||
<GND * 1 350 300 0 0 0 0>
|
||||
<.TR TR1 1 260 480 0 71 0 0 "lin" 1 "0" 1 "1 us" 1 "201" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
|
||||
<.AC AC1 1 60 480 0 43 0 0 "lin" 1 "1 MHz" 1 "10 MHz" 1 "1000" 1 "no" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<30 200 30 250 "" 0 0 0 "">
|
||||
<90 200 140 200 "vIn" 160 120 5 "">
|
||||
<200 200 240 200 "" 0 0 0 "">
|
||||
<300 200 350 200 "vR" 350 150 30 "">
|
||||
<350 200 350 240 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 490 568 409 211 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.v(vr)" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/tran.v(vin)" #ff0000 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 80 830 259 189 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"xyce/ac.V(VR)" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 490 1141 306 231 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"xyce/ac.I(PR1)" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 80 1419 410 229 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"xyce/ac.I(PR1)" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 478 291 413 217 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"RCL_ngspice:ac.v(vr)" #0000ff 0 3 0 0 0>
|
||||
<"RCL_ngspice:ac.i(pr1)" #ff0000 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 458 830 447 185 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"xyce/tran.V(VIN)" #0000ff 0 3 0 0 0>
|
||||
<"xyce/tran.V(VR)" #ff0000 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 90 1144 307 234 3 #c0c0c0 1 00 1 1e+06 2e+06 1e+07 1 -0.00183133 0.01 0.0219832 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.i(pr1)" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 80 330 12 #000000 0 "It is a simple series RCL circuit. \nYou can simulate it with Ngspice and Xyce. \nAC and TRAN analysis are allowed.\n\nNOTE: This Example could be run with Qucs and\n Ngspice/Xyce">
|
||||
</Paintings>
|
64
examples/ngspice/Relay.sch
Normal file
64
examples/ngspice/Relay.sch
Normal file
@ -0,0 +1,64 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,-120,957,621,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=Relay.dat>
|
||||
<DataDisplay=Relay.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=Relay.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Название>
|
||||
<FrameText1=Чертил:>
|
||||
<FrameText2=Дата:>
|
||||
<FrameText3=Версия:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<L L1 1 190 70 10 -26 0 1 "0.5" 1 "" 0>
|
||||
<R R1 1 190 130 15 -26 0 1 "120" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<C C1 1 310 90 17 -26 0 1 "5000pF" 1 "" 0 "neutral" 0>
|
||||
<GND * 1 90 160 0 0 0 0>
|
||||
<Vdc V1 1 90 130 18 -26 0 1 "12V" 1>
|
||||
<GND * 1 310 320 0 0 0 0>
|
||||
<GND * 1 250 270 0 0 0 0>
|
||||
<GND * 1 140 270 0 0 0 0>
|
||||
<Vpulse V2 1 140 240 18 -26 0 1 "0 V" 1 "1 V" 1 "0" 1 "1 ms" 1 "1 ns" 0 "1 ns" 0>
|
||||
<VProbe Pr1 1 400 270 -16 28 0 3>
|
||||
<GND * 1 370 320 0 0 0 0>
|
||||
<.TR TR1 1 110 360 0 71 0 0 "lin" 1 "0" 1 "20 ms" 1 "2001" 1 "AdamsMoulton" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
|
||||
<Relais S1 1 280 240 49 -26 0 0 "0.5 V" 0 "0.1 V" 0 "1e-20" 0 "1e12" 0 "26.85" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<190 20 190 40 "" 0 0 0 "">
|
||||
<190 160 310 160 "" 0 0 0 "">
|
||||
<190 20 310 20 "" 0 0 0 "">
|
||||
<310 20 310 60 "" 0 0 0 "">
|
||||
<310 120 310 160 "" 0 0 0 "">
|
||||
<90 20 90 100 "" 0 0 0 "">
|
||||
<90 20 190 20 "" 0 0 0 "">
|
||||
<310 270 310 320 "" 0 0 0 "">
|
||||
<250 180 250 210 "" 0 0 0 "">
|
||||
<140 180 250 180 "" 0 0 0 "">
|
||||
<140 180 140 210 "" 0 0 0 "">
|
||||
<310 160 310 200 "drain" 340 140 21 "">
|
||||
<310 200 310 210 "" 0 0 0 "">
|
||||
<310 200 370 200 "" 0 0 0 "">
|
||||
<370 200 370 260 "" 0 0 0 "">
|
||||
<370 260 380 260 "" 0 0 0 "">
|
||||
<370 280 370 320 "" 0 0 0 "">
|
||||
<370 280 380 280 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 470 531 429 202 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"xyce/tran.V(PR1)" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 480 253 417 223 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.v(drain)" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/tran.v(pr1)" #ff0000 0 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 80 560 12 #000000 0 "This example illustrates how to use ideal switch\nwith LCR circuit. \n\nNOTE: This Example could be run with Qucs and\n Ngspice/Xyce">
|
||||
</Paintings>
|
BIN
examples/ngspice/Test_Cores.qucs
Normal file
BIN
examples/ngspice/Test_Cores.qucs
Normal file
Binary file not shown.
BIN
examples/ngspice/Test_XSPICE_Xanalogue_lib.zip
Normal file
BIN
examples/ngspice/Test_XSPICE_Xanalogue_lib.zip
Normal file
Binary file not shown.
66
examples/ngspice/Test_tran_coup.sch
Normal file
66
examples/ngspice/Test_tran_coup.sch
Normal file
@ -0,0 +1,66 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,69,1700,794,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=Test_tran_coup.dat>
|
||||
<DataDisplay=Test_tran_coup.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=Test_tran_pos_coup.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
<.ID -20 -16 SUB>
|
||||
<Line -20 20 40 0 #000080 2 1>
|
||||
<Line 20 20 0 -40 #000080 2 1>
|
||||
<Line -20 -20 40 0 #000080 2 1>
|
||||
<Line -20 20 0 -40 #000080 2 1>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<R R3 1 700 180 15 -26 0 1 "1k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 700 210 0 0 0 0>
|
||||
<GND * 1 320 210 0 0 0 0>
|
||||
<GND * 1 550 220 0 0 0 0>
|
||||
<GND * 1 490 220 0 0 0 0>
|
||||
<Vac V1 1 320 180 18 -26 0 1 "1 V" 1 "50Hz" 1 "0" 0 "0" 0>
|
||||
<R R2 1 620 150 -26 15 0 0 "1" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 690 400 0 0 0 0>
|
||||
<GND * 1 490 410 0 0 0 0>
|
||||
<GND * 1 550 410 0 0 0 0>
|
||||
<R R6 1 690 370 15 -26 0 1 "1k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R5 1 620 340 -26 15 0 0 "1" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<.TR TR1 1 800 240 0 77 0 0 "lin" 1 "0" 1 "100 ms" 1 "1001" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
|
||||
<R R1 1 440 150 -26 15 0 0 "1" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R4 1 440 340 -26 15 0 0 "1" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<Sub TRAN3 1 510 130 -20 114 0 0 "Transformer_positive_coupling.sch" 0 "0.999" 1 "0.5m" 1 "0.5m" 1>
|
||||
<Sub TRAN2 1 510 320 -20 114 0 0 "Transformer_opposite_coupling.sch" 0 "0.999" 1 "0.5m" 1 "0.5m" 1>
|
||||
</Components>
|
||||
<Wires>
|
||||
<320 150 400 150 "Nsig" 350 110 20 "">
|
||||
<550 150 590 150 "" 0 0 0 "">
|
||||
<650 150 700 150 "N4" 650 120 25 "">
|
||||
<550 340 590 340 "" 0 0 0 "">
|
||||
<650 340 690 340 "" 0 0 0 "">
|
||||
<470 150 490 150 "" 0 0 0 "">
|
||||
<400 150 410 150 "" 0 0 0 "">
|
||||
<470 340 490 340 "" 0 0 0 "">
|
||||
<400 340 410 340 "" 0 0 0 "">
|
||||
<400 150 400 340 "" 0 0 0 "">
|
||||
<690 340 690 340 "N6" 670 310 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 690 690 240 160 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.v(n6)" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/tran.v(nsig)" #ff0000 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 370 690 240 160 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.v(n4)" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/tran.v(nsig)" #ff0000 0 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
</Paintings>
|
BIN
examples/ngspice/TranLibTest.qucs
Normal file
BIN
examples/ngspice/TranLibTest.qucs
Normal file
Binary file not shown.
78
examples/ngspice/Transformer_opposite_coupling.sch
Normal file
78
examples/ngspice/Transformer_opposite_coupling.sch
Normal file
@ -0,0 +1,78 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,0,800,800,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=Transformer_opposite_coupling.dat>
|
||||
<DataDisplay=Transformer_opposite_coupling.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=Transformer_opposite_coupling.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
<Line 10 30 0 0 #000000 0 1>
|
||||
<Line 10 80 0 0 #000000 0 1>
|
||||
<Line 30 30 -10 0 #ff0000 3 1>
|
||||
<Line 20 30 0 10 #ff0000 3 1>
|
||||
<Line 20 40 10 0 #ff0000 3 1>
|
||||
<Line 30 40 0 10 #ff0000 3 1>
|
||||
<Line 30 50 -10 0 #ff0000 3 1>
|
||||
<Line 20 50 0 10 #ff0000 3 1>
|
||||
<Line 20 60 10 0 #ff0000 3 1>
|
||||
<Line 30 60 0 10 #ff0000 3 1>
|
||||
<Line 30 70 -10 0 #ff0000 3 1>
|
||||
<Line 20 70 0 10 #ff0000 3 1>
|
||||
<Line 20 80 10 0 #ff0000 3 1>
|
||||
<Line 30 30 0 -10 #ff0000 3 1>
|
||||
<Line 30 80 0 10 #ff0000 3 1>
|
||||
<Line -10 30 10 0 #ff0000 3 1>
|
||||
<Line 0 30 0 10 #ff0000 3 1>
|
||||
<Line 0 40 -10 0 #ff0000 3 1>
|
||||
<Line -10 40 0 10 #ff0000 3 1>
|
||||
<Line -10 50 10 0 #ff0000 3 1>
|
||||
<Line 0 50 0 10 #ff0000 3 1>
|
||||
<Line 0 60 -10 0 #ff0000 3 1>
|
||||
<Line -10 60 0 10 #ff0000 3 1>
|
||||
<Line -10 70 10 0 #ff0000 3 1>
|
||||
<Line 0 70 0 10 #ff0000 3 1>
|
||||
<Line 0 80 -10 0 #ff0000 3 1>
|
||||
<Line -10 30 0 -10 #ff0000 3 1>
|
||||
<Line -10 80 0 10 #ff0000 3 1>
|
||||
<Line 15 30 0 50 #000000 2 1>
|
||||
<Line 6 30 0 50 #000000 2 1>
|
||||
<Line 11 30 0 50 #000000 2 1>
|
||||
<Line -20 20 10 0 #000080 2 1>
|
||||
<Line 30 20 10 0 #000080 2 1>
|
||||
<Line -20 90 10 0 #000080 2 1>
|
||||
<Line 30 90 10 0 #00007f 2 1>
|
||||
<.PortSym -20 20 1 0>
|
||||
<.PortSym -20 90 2 0>
|
||||
<.PortSym 40 20 3 180>
|
||||
<.PortSym 40 90 4 180>
|
||||
<.ID -20 114 TRAN "1=K=0.999==" "1=L1=0.5m==" "1=L2=0.5m==">
|
||||
<Ellipse -6 18 8 8 #ff0000 1 1 #ff0000 1 1>
|
||||
<Ellipse 18 86 8 8 #ff0000 1 1 #ff0000 1 1>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<Port PL1plus 1 520 220 -47 -27 0 0 "1" 0 "analog" 0>
|
||||
<Port PL2plus 1 670 220 -11 -31 1 2 "3" 0 "analog" 0>
|
||||
<Port PL1neg 1 520 280 -48 10 0 0 "2" 0 "analog" 0>
|
||||
<Port PL2neg 1 670 280 -10 11 1 2 "4" 0 "analog" 0>
|
||||
<K_SPICE K1 1 593 290 -26 17 0 0 "L1=L1" 1 "L2=L2" 1 "K" 1>
|
||||
<L_SPICE L1 1 570 250 -93 -26 0 3 "L1=L1" 1 "=" 0 "=" 0 "=" 0 "=" 0>
|
||||
<L_SPICE L2 1 620 250 10 -26 0 1 "L2=L2" 1 "=" 0 "=" 0 "=" 0 "=" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<520 220 570 220 "" 0 0 0 "">
|
||||
<520 280 570 280 "" 0 0 0 "">
|
||||
<620 220 670 220 "" 0 0 0 "">
|
||||
<620 280 670 280 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
</Paintings>
|
80
examples/ngspice/Transformer_positive_coupling.sch
Normal file
80
examples/ngspice/Transformer_positive_coupling.sch
Normal file
@ -0,0 +1,80 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=350,-48,803,402,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=Transformer_positive_coupling.dat>
|
||||
<DataDisplay=Transformer_positive_coupling.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=Transformer_positive_coupling.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
<Line 10 30 0 0 #000000 0 1>
|
||||
<Line 10 80 0 0 #000000 0 1>
|
||||
<Line 30 30 -10 0 #ff0000 3 1>
|
||||
<Line 20 30 0 10 #ff0000 3 1>
|
||||
<Line 20 40 10 0 #ff0000 3 1>
|
||||
<Line 30 40 0 10 #ff0000 3 1>
|
||||
<Line 30 50 -10 0 #ff0000 3 1>
|
||||
<Line 20 50 0 10 #ff0000 3 1>
|
||||
<Line 20 60 10 0 #ff0000 3 1>
|
||||
<Line 30 60 0 10 #ff0000 3 1>
|
||||
<Line 30 70 -10 0 #ff0000 3 1>
|
||||
<Line 20 70 0 10 #ff0000 3 1>
|
||||
<Line 20 80 10 0 #ff0000 3 1>
|
||||
<Line 30 30 0 -10 #ff0000 3 1>
|
||||
<Line 30 80 0 10 #ff0000 3 1>
|
||||
<Line -10 30 10 0 #ff0000 3 1>
|
||||
<Line 0 30 0 10 #ff0000 3 1>
|
||||
<Line 0 40 -10 0 #ff0000 3 1>
|
||||
<Line -10 40 0 10 #ff0000 3 1>
|
||||
<Line -10 50 10 0 #ff0000 3 1>
|
||||
<Line 0 50 0 10 #ff0000 3 1>
|
||||
<Line 0 60 -10 0 #ff0000 3 1>
|
||||
<Line -10 60 0 10 #ff0000 3 1>
|
||||
<Line -10 70 10 0 #ff0000 3 1>
|
||||
<Line 0 70 0 10 #ff0000 3 1>
|
||||
<Line 0 80 -10 0 #ff0000 3 1>
|
||||
<Line -10 30 0 -10 #ff0000 3 1>
|
||||
<Line -10 80 0 10 #ff0000 3 1>
|
||||
<Line 15 30 0 50 #000000 2 1>
|
||||
<Line 6 30 0 50 #000000 2 1>
|
||||
<Line 11 30 0 50 #000000 2 1>
|
||||
<Line -20 20 10 0 #000080 2 1>
|
||||
<Line 30 20 10 0 #000080 2 1>
|
||||
<Line -20 90 10 0 #000080 2 1>
|
||||
<Line 30 90 10 0 #00007f 2 1>
|
||||
<.PortSym 40 20 3 180>
|
||||
<.PortSym 40 90 4 180>
|
||||
<.ID -20 114 TRAN "1=K=0.999==" "1=L1=0.5m==" "1=L2=0.5m==">
|
||||
<Ellipse -6 18 8 8 #ff0000 1 1 #ff0000 1 1>
|
||||
<Ellipse 18 18 8 8 #ff0000 1 1 #ff0000 1 1>
|
||||
<.PortSym -20 20 2 0>
|
||||
<.PortSym -20 90 1 0>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<Port PL2plus 1 670 220 35 -12 1 2 "3" 0 "analog" 0>
|
||||
<Port PL2neg 1 670 280 33 -11 1 2 "4" 0 "analog" 0>
|
||||
<Port PL1plus 1 480 220 -91 -10 0 0 "2" 0 "analog" 0>
|
||||
<Port PL1neg 1 480 280 -87 -6 0 0 "1" 0 "analog" 0>
|
||||
<L_SPICE L1 1 570 250 -93 -26 0 3 "L1=L1" 1 "=" 0 "=" 0 "=" 0 "=" 0>
|
||||
<L_SPICE L2 1 620 250 10 -26 1 3 "L2=L2" 1 "=" 0 "=" 0 "=" 0 "=" 0>
|
||||
<K_SPICE K1 1 593 290 -26 17 0 0 "L1=L1" 1 "L2=L2" 1 "K" 1>
|
||||
</Components>
|
||||
<Wires>
|
||||
<620 220 670 220 "" 0 0 0 "">
|
||||
<620 280 670 280 "" 0 0 0 "">
|
||||
<480 220 570 220 "PL1plus" 510 180 19 "">
|
||||
<480 280 570 280 "PL1neg" 470 300 22 "">
|
||||
<670 220 670 220 "PL2plus" 620 190 0 "">
|
||||
<670 280 670 280 "PL2neg" 630 300 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
</Paintings>
|
51
examples/ngspice/Tunnel.sch
Normal file
51
examples/ngspice/Tunnel.sch
Normal file
@ -0,0 +1,51 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,56,800,680,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=Tunnel.dat>
|
||||
<DataDisplay=Tunnel.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=Tunnel.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<IProbe Pr1 1 150 110 -26 16 0 0>
|
||||
<GND * 1 40 250 0 0 0 0>
|
||||
<.DC DC1 1 90 290 0 43 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
<Vdc V1 1 40 220 18 -26 0 1 "1" 1>
|
||||
<.SW SW1 1 290 290 0 71 0 0 "DC1" 1 "lin" 1 "V1" 1 "-0.05" 1 "0.4" 1 "50" 1>
|
||||
<GND * 1 250 240 0 0 0 0>
|
||||
<EDD D1 1 250 190 96 -26 0 3 "explicit" 0 "3" 0 "Is*(exp(V1/VT)-1.0)" 1 "C*V1" 1 "Iv*exp(K*(V1-Vv))" 1 "0" 0 "Ip*(V1/Vp)*exp((Vp-V1)/Vp)" 1 "0" 0>
|
||||
<Eqn Eqn1 1 600 110 -23 15 0 0 "Temp0=300" 1 "VT=(kB*Temp0)/q" 1 "Is=1e-12" 1 "Ip=1e-5" 1 "Iv=1e-6" 1 "Vp=0.1" 1 "Vv=0.4" 1 "C=0.01p" 1 "K=5" 1 "yes" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<40 110 40 190 "" 0 0 0 "">
|
||||
<40 110 120 110 "" 0 0 0 "">
|
||||
<180 110 250 110 "" 0 0 0 "">
|
||||
<250 110 250 130 "" 0 0 0 "">
|
||||
<190 240 250 240 "" 0 0 0 "">
|
||||
<190 220 190 240 "" 0 0 0 "">
|
||||
<250 220 250 240 "" 0 0 0 "">
|
||||
<250 240 310 240 "" 0 0 0 "">
|
||||
<310 220 310 240 "" 0 0 0 "">
|
||||
<310 130 310 160 "" 0 0 0 "">
|
||||
<190 130 190 160 "" 0 0 0 "">
|
||||
<250 130 250 160 "" 0 0 0 "">
|
||||
<190 130 250 130 "" 0 0 0 "">
|
||||
<250 130 310 130 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 510 577 275 217 3 #c0c0c0 1 00 1 -0.05 0.1 0.4 1 -2.55556e-05 1e-05 1.34747e-05 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/i(pr1)" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 20 390 12 #000000 0 "This examples shows how to use\n current-defined EDDwith Ngspice. \nYou can simulate it and obtain\n IV-chart of the Tunnel diode. \n\nNOTE: This Example could be run \nwith Qucs and Ngspice/Xyce">
|
||||
</Paintings>
|
175
examples/ngspice/XSPICE_CM/DiodeCap_prj/diodecap.ifs
Executable file
175
examples/ngspice/XSPICE_CM/DiodeCap_prj/diodecap.ifs
Executable file
@ -0,0 +1,175 @@
|
||||
/*
|
||||
diodecap cm model.
|
||||
|
||||
7 March 2016 Mike Brinson
|
||||
|
||||
This file contains the XSPICE ifs specification for an experimental semiconductor
|
||||
diode model (based on the standard SPICE 2g6 and 3f5 implementation).
|
||||
This model is used as a test bench for constructing compact
|
||||
device models with the Qucs-0.0.19-S automatic XSPICE CodeModel compiler
|
||||
system.
|
||||
|
||||
This 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, or (at your option)
|
||||
any later version.
|
||||
*/
|
||||
NAME_TABLE:
|
||||
C_Function_Name: cm_diodecap
|
||||
Spice_Model_Name: diodecap
|
||||
Description: "An experimental diode test model."
|
||||
|
||||
PORT_TABLE:
|
||||
Port_Name: diode
|
||||
Description: "Diode terminals"
|
||||
Direction: inout
|
||||
Default_Type: gd
|
||||
Allowed_Types: [gd]
|
||||
Vector: no
|
||||
Vector_Bounds: -
|
||||
Null_Allowed: no
|
||||
|
||||
PARAMETER_TABLE:
|
||||
Parameter_Name: is
|
||||
Description: "Saturation current."
|
||||
Data_Type: real
|
||||
Default_Value: 1.0e-15
|
||||
Limits: -
|
||||
Vector: no
|
||||
Vector_Bounds: -
|
||||
Null_Allowed: no
|
||||
|
||||
PARAMETER_TABLE:
|
||||
Parameter_Name: tnom
|
||||
Description: "Diode parameter measurement temperature in Celsius."
|
||||
Data_Type: real
|
||||
Default_Value: 26.85
|
||||
Limits: -
|
||||
Vector: no
|
||||
Vector_Bounds: -
|
||||
Null_Allowed: no
|
||||
|
||||
PARAMETER_TABLE:
|
||||
Parameter_Name: temp
|
||||
Description: "Diode circuit temperature in Celsius."
|
||||
Data_Type: real
|
||||
Default_Value: 26.85
|
||||
Limits: -
|
||||
Vector: no
|
||||
Vector_Bounds: -
|
||||
Null_Allowed: no
|
||||
|
||||
PARAMETER_TABLE:
|
||||
Parameter_Name: n
|
||||
Description: "Emmission coefficient."
|
||||
Data_Type: real
|
||||
Default_Value: 1.0
|
||||
Limits: -
|
||||
Vector: no
|
||||
Vector_Bounds: -
|
||||
Null_Allowed: no
|
||||
|
||||
|
||||
PARAMETER_TABLE:
|
||||
Parameter_Name: eg
|
||||
Description: "Band gap at 300 Kelvin (Si)."
|
||||
Data_Type: real
|
||||
Default_Value: 1.11
|
||||
Limits: -
|
||||
Vector: no
|
||||
Vector_Bounds: -
|
||||
Null_Allowed: no
|
||||
|
||||
|
||||
PARAMETER_TABLE:
|
||||
Parameter_Name: area
|
||||
Description: "Diode area coefficient."
|
||||
Data_Type: int
|
||||
Default_Value: 1
|
||||
Limits: -
|
||||
Vector: no
|
||||
Vector_Bounds: -
|
||||
Null_Allowed: no
|
||||
|
||||
PARAMETER_TABLE:
|
||||
Parameter_Name: xti
|
||||
Description: "Saturation current temperature exponent."
|
||||
Data_Type: real
|
||||
Default_Value: 3.0
|
||||
Limits: -
|
||||
Vector: no
|
||||
Vector_Bounds: -
|
||||
Null_Allowed: no
|
||||
|
||||
PARAMETER_TABLE:
|
||||
Parameter_Name: cj0
|
||||
Description: "Zero bias capacitance."
|
||||
Data_Type: real
|
||||
Default_Value: 1e-12
|
||||
Limits: -
|
||||
Vector: no
|
||||
Vector_Bounds: -
|
||||
Null_Allowed: no
|
||||
|
||||
|
||||
PARAMETER_TABLE:
|
||||
Parameter_Name: vj
|
||||
Description: "Junction potential."
|
||||
Data_Type: real
|
||||
Default_Value: 1.0
|
||||
Limits: -
|
||||
Vector: no
|
||||
Vector_Bounds: -
|
||||
Null_Allowed: no
|
||||
|
||||
PARAMETER_TABLE:
|
||||
Parameter_Name: m
|
||||
Description: "Grading coefficient."
|
||||
Data_Type: real
|
||||
Default_Value: 0.5
|
||||
Limits: -
|
||||
Vector: no
|
||||
Vector_Bounds: -
|
||||
Null_Allowed: no
|
||||
|
||||
PARAMETER_TABLE:
|
||||
Parameter_Name: fc
|
||||
Description: "Coefficient for forward-bias depletion capacitance formula."
|
||||
Data_Type: real
|
||||
Default_Value: 0.5
|
||||
Limits: -
|
||||
Vector: no
|
||||
Vector_Bounds: -
|
||||
Null_Allowed: no
|
||||
|
||||
PARAMETER_TABLE:
|
||||
Parameter_Name: tt
|
||||
Description: "Transit time."
|
||||
Data_Type: real
|
||||
Default_Value: 1e-10
|
||||
Limits: -
|
||||
Vector: no
|
||||
Vector_Bounds: -
|
||||
Null_Allowed: no
|
||||
|
||||
PARAMETER_TABLE:
|
||||
Parameter_Name: bv
|
||||
Description: "Breakdown voltage."
|
||||
Data_Type: real
|
||||
Default_Value: 100.0
|
||||
Limits: -
|
||||
Vector: no
|
||||
Vector_Bounds: -
|
||||
Null_Allowed: no
|
||||
|
||||
PARAMETER_TABLE:
|
||||
Parameter_Name: ibv
|
||||
Description: "Current at breakdown voltage."
|
||||
Data_Type: real
|
||||
Default_Value: 1.0e-3
|
||||
Limits: -
|
||||
Vector: no
|
||||
Vector_Bounds: -
|
||||
Null_Allowed: no
|
||||
|
||||
|
212
examples/ngspice/XSPICE_CM/DiodeCap_prj/diodecap.mod
Executable file
212
examples/ngspice/XSPICE_CM/DiodeCap_prj/diodecap.mod
Executable file
@ -0,0 +1,212 @@
|
||||
/*
|
||||
diodecap cm model.
|
||||
|
||||
7 March 2016 Mike Brinson
|
||||
|
||||
This file contains the XSPICE C code for an experimental semiconductor
|
||||
diode model (based on the standard SPICE 2g6 and 3f5 implementation).
|
||||
This model is used as a test bench for constructing compact
|
||||
device models with the Qucs-0.0.19-S automatic XSPICE CodeModel compiler
|
||||
system.
|
||||
|
||||
This 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, or (at your option)
|
||||
any later version.
|
||||
*/
|
||||
#define Xlimexp(x) (x < 80.0) ? exp(x) : exp(80)*(1.0-(x-80.0))
|
||||
#define Xpow(x,y) exp(y*log(x))
|
||||
#include <math.h>
|
||||
|
||||
void cm_diodecap(ARGS)
|
||||
{
|
||||
Complex_t ac_gain;
|
||||
static double P1, P3, P4, P5, P6, PTNOM, PTEMP, PCJ0, PVJ, PIBV;
|
||||
static double PIS, PAREA, PXTI, PEG, PN, PTT, PFC, PBV;
|
||||
static double Is_temp, Vt_temp, Vd0, cap, cdep;
|
||||
static double derive, F2, F3, PM, Vj_temp, Cj0_temp, BVeff;
|
||||
double Id, Vd, Tr,Eg_temp, Eg_tnom;
|
||||
double A = 7.02e-4;
|
||||
double B = 1108;
|
||||
double exp80 = 5.5406334e34;
|
||||
double GMIN = 1e-12;
|
||||
|
||||
/* Diode model initialization code - this is only called once at the start
|
||||
of a simulation.
|
||||
*/
|
||||
|
||||
if(INIT) {
|
||||
Vd0 = 0.0;
|
||||
|
||||
PEG = PARAM(eg);
|
||||
PIS = PARAM(is);
|
||||
PN = PARAM(n);
|
||||
PAREA = PARAM(area);
|
||||
PXTI = PARAM(xti);
|
||||
PTT = PARAM(tt);
|
||||
PCJ0 = PARAM(cj0);
|
||||
PVJ = PARAM(vj);
|
||||
PFC = PARAM(fc);
|
||||
PM = PARAM(m);
|
||||
PBV = PARAM(bv);
|
||||
PIBV = PARAM(ibv);
|
||||
|
||||
cap = 1e-16;
|
||||
derive = 1e-20;
|
||||
Id = 0.0;
|
||||
|
||||
F2 = exp( (1+PM)*log(1-PFC) );
|
||||
F3 = 1-PFC*(1+PM);
|
||||
P3 = -5*PN;
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* Code common to all forms of simulation. */
|
||||
|
||||
PTNOM = PARAM(tnom)+273.15;
|
||||
PTEMP = TEMPERATURE+273.15;
|
||||
Vt_temp = 8.65387195e-5*PTEMP;
|
||||
P1 = 1/(PN*Vt_temp);
|
||||
Tr = PTEMP/PTNOM;
|
||||
Is_temp = PAREA*PIS*Xpow(PXTI/PN, Tr)*exp((-PEG*P1)*(1.0-PTEMP/PTNOM));
|
||||
P3 = -5*PN;
|
||||
P4 = Is_temp*exp80;
|
||||
P5 = PAREA*P1*P4;
|
||||
P6 = PAREA*Is_temp;
|
||||
|
||||
Eg_temp = PEG-A*PTEMP*PTEMP/(B+PTEMP);
|
||||
Eg_tnom = PEG-A*PTNOM*PTNOM/(B+PTNOM);
|
||||
Vj_temp = Tr*PVJ-(2*Vt_temp)*Xpow(1.5,Tr)-(Tr*Eg_tnom-Eg_temp);
|
||||
Cj0_temp = PCJ0*(1+PM*(400e-6*(PTEMP-PTNOM)-(Vj_temp-PVJ)/PVJ));
|
||||
|
||||
if( PIBV < Is_temp) {
|
||||
PIBV = (Is_temp*PBV)/Vt_temp;
|
||||
BVeff = PBV;
|
||||
}
|
||||
else {
|
||||
BVeff = PBV -Vt_temp*log(PIBV/Is_temp);
|
||||
}
|
||||
|
||||
/* DC simulation code - called at each DC analysis iteration during the solution
|
||||
of non-linear circuit equations. Note: Diffusion (cdiff) and depletion (cdep)
|
||||
capacitor values are also estimated and stored in static double variables for
|
||||
possible future use in AC small signal simulation.
|
||||
*/
|
||||
|
||||
if (ANALYSIS == DC) {
|
||||
Vd = INPUT(diode);
|
||||
|
||||
if ( Vd >= P3*Vt_temp) { /* Forward bias model code */
|
||||
Id = P6*(Xlimexp(P1*Vd)-1.0) + GMIN*Vd;
|
||||
if ( P1*Vd <= 80.0) {
|
||||
derive = P6*P1*exp(P1*Vd)+GMIN;
|
||||
}
|
||||
else {
|
||||
derive = P5+GMIN;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ( (-PBV < Vd) && (Vd < P3*Vt_temp)) { /* Reverse bias model code */
|
||||
Id = -P6+GMIN*Vd;
|
||||
derive = -Is_temp/Vd;
|
||||
}
|
||||
|
||||
if (Vd < -PBV) { /* Reverse breakdowm zener like model code */
|
||||
|
||||
Id = -P6*(exp(-(BVeff+Vd)/Vt_temp)-1+BVeff/Vt_temp);
|
||||
derive = (Is_temp/Vt_temp)*exp(-(BVeff+Vd)/Vt_temp);
|
||||
}
|
||||
|
||||
OUTPUT(diode) = Id;
|
||||
PARTIAL(diode, diode) = derive;
|
||||
|
||||
if ( Vd < PFC*PVJ ) { /* Capacitance cap = cdep+cdiff model code */
|
||||
cdep = Cj0_temp/exp(PM*log(1.0 - (Vd/Vj_temp)) );
|
||||
}
|
||||
else {
|
||||
cdep = (Cj0_temp/F2)*(F3+(PM*Vd/Vj_temp));
|
||||
}
|
||||
|
||||
cap = PTT*Id/Vt_temp + cdep;
|
||||
}
|
||||
|
||||
/* Transient simulation code - called at each time step during a transient analysis
|
||||
sequence.
|
||||
*/
|
||||
|
||||
if (ANALYSIS == TRANSIENT) {
|
||||
Vd = INPUT(diode);
|
||||
|
||||
if ( Vd >= P3*Vt_temp) { /* Forward bias model code */
|
||||
Id = P6*(Xlimexp(P1*Vd)-1.0) + GMIN*Vd;
|
||||
if ( P1*Vd <= 80.0) {
|
||||
derive = P6*P1*exp(P1*Vd)+GMIN;
|
||||
}
|
||||
else {
|
||||
derive = P5+GMIN;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ( (-PBV < Vd) && (Vd < P3*Vt_temp)) { /* Reverse bias model code */
|
||||
Id = -P6+GMIN*Vd;
|
||||
derive = -Is_temp/Vd;
|
||||
}
|
||||
|
||||
if (Vd < -PBV) { /* Reverse breakdowm zener like model code */
|
||||
|
||||
Id = -P6*(exp(-(BVeff+Vd)/Vt_temp)-1+BVeff/Vt_temp);
|
||||
derive = (Is_temp/Vt_temp)*exp(-(BVeff+Vd)/Vt_temp);
|
||||
}
|
||||
|
||||
|
||||
if ( Vd < PFC*PVJ ) { /* Capacitance cap = cdep+cdiff model code */
|
||||
cdep = PCJ0/exp(PM*log(1.0 - (Vd/PVJ)) );
|
||||
}
|
||||
else {
|
||||
cdep = (PCJ0/F2)*(F3+(PM*Vd/PVJ));
|
||||
}
|
||||
|
||||
cap = PTT*Id/Vt_temp + cdep;
|
||||
|
||||
|
||||
if (Vd < -PBV) { /* Reverse breakdowm zener like model code */
|
||||
|
||||
Id = -Is_temp*(exp(-(BVeff+Vd)/Vt_temp)-1+BVeff/Vt_temp);
|
||||
OUTPUT(diode) = Id;
|
||||
derive = (Is_temp/Vt_temp)*exp(-(BVeff+Vd)/Vt_temp);
|
||||
PARTIAL(diode, diode) = derive;
|
||||
}
|
||||
|
||||
/* Diode output current at terminal gd0+ = f(Vd,Id) = Id(DC) + d/dt(Qd),
|
||||
where cap = dQd/dVd = dQd/dt*dt/dVd or dQd/dt = cap*dVd/dt = Id(cap).
|
||||
*/
|
||||
|
||||
if (TIME > 0.0) {
|
||||
cap = PTT*Id/Vt_temp;
|
||||
OUTPUT(diode) = Id+cap*(Vd0-Vd)/(T(0)-T(1));
|
||||
}
|
||||
else {
|
||||
OUTPUT(diode) = Id;
|
||||
}
|
||||
cm_analog_auto_partial(); /* Auto calculate derivative dId/dVd */
|
||||
Vd0 = Vd;
|
||||
}
|
||||
|
||||
/* AC simulation code - called at each analysis frequency.
|
||||
Non-linear components are linearized at their bias point to yield
|
||||
the real and imaginary components of the model AC_GAIN: in this
|
||||
diode model the AC output current is given by I(f) = Y(f)*V(f),
|
||||
where f is the analysis frequency in Hz. Hence, ac_gain.real = gd
|
||||
and ac_gain.imag = j*2*pi*f*cap.
|
||||
*/
|
||||
if (ANALYSIS == AC) {
|
||||
ac_gain.real = derive;
|
||||
ac_gain.imag = RAD_FREQ*cap;
|
||||
AC_GAIN(diode, diode) = ac_gain;
|
||||
|
||||
}
|
||||
|
||||
}
|
53
examples/ngspice/XSPICE_CM/testRFind.sch
Normal file
53
examples/ngspice/XSPICE_CM/testRFind.sch
Normal file
@ -0,0 +1,53 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=-56,6,1607,1192,1,111,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=testlspice2g6AC.dat>
|
||||
<DataDisplay=testlspice2g6AC.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=testlspice2g6AC.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<IProbe Pr1 1 440 180 -26 16 0 0>
|
||||
<GND * 1 560 330 0 0 0 0>
|
||||
<.AC AC1 1 640 180 0 40 0 0 "log" 1 "1 Hz" 1 "100GHz" 1 "141" 1 "no" 0>
|
||||
<.FOURIER FOUR1 1 980 180 0 65 0 0 "TR1" 1 "10" 1 "100kHz" 1 "i(vpr1) v(nl)" 1>
|
||||
<.DC DC1 1 260 200 0 40 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
<GND * 1 190 240 0 0 0 0>
|
||||
<NutmegEq NutmegEq1 1 330 340 66 -9 0 0 "ac" 1 "zin=v(nl)/i(vpr1)" 1>
|
||||
<Sub SUB1 1 590 270 555 -115 0 1 "lspice2g6.sch" 0 "370u" 1 "0.0" 1 "0.0" 1 "0.0" 1 "0.0" 1 "0.0" 1 "26.85" 1 "2" 1 "6.02e-12" 1 "363k" 1>
|
||||
<S4Q_V V1 1 190 210 -25 60 0 1 "dc 1 ac 1 sin(1 5 100k 0 0)" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<.TR TR1 1 820 180 0 65 0 0 "lin" 1 "0" 1 "500us" 1 "30001" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 1 "0" 1>
|
||||
</Components>
|
||||
<Wires>
|
||||
<470 180 560 180 "" 0 0 0 "">
|
||||
<190 180 410 180 "" 0 0 0 "">
|
||||
<560 180 560 180 "nl" 480 190 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 240 637 1055 210 3 #c0c0c0 1 11 1 1 1 1e+11 1 -6145.15 20000 67598.5 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.zin" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 560 873 738 176 3 #c0c0c0 1 00 1 0 0.0001 0.0015 1 -0.2 1 2.2 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.v(nl)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 250 860 240 160 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.i(pr1)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 810 1110 457 162 3 #c0c0c0 1 00 1 0 100000 900000 1 -0.1 0.5 1.1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/magnitude(v(nl))" #ff0000 2 3 0 6 0>
|
||||
</Rect>
|
||||
<Rect 310 1110 377 162 3 #c0c0c0 1 00 1 0 200000 900000 1 -0.1 0.5 1.1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/magnitude(i(vpr1))" #ff0000 2 3 0 6 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
</Paintings>
|
227
examples/ngspice/audio_amp.sch
Normal file
227
examples/ngspice/audio_amp.sch
Normal file
@ -0,0 +1,227 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=66,-5,1348,1031,1,0,120>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=audio_amp.dat>
|
||||
<DataDisplay=audio_amp.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=audio_amp.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<_BJT KT3102A_1 1 360 320 8 -26 0 0 "npn" 0 "5.258f" 0 "1" 0 "1" 0 "0.4922" 0 "0.25" 0 "86" 0 "25" 0 "28.21n" 0 "7.428" 0 "21.2p" 0 "2" 0 "185.1" 0 "2.713" 0 "0" 0 "0" 0 "1.65" 0 "0" 0 "52" 0 "11.3p" 0 "0.69" 0 "0.33" 0 "9.921p" 0 "0.65" 0 "0.33" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "611.5p" 0 "2" 0 "80" 0 "0.52" 0 "57.71n" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
|
||||
<_BJT KT3102A_2 1 910 280 8 -26 0 0 "npn" 0 "5.258f" 0 "1" 0 "1" 0 "0.4922" 0 "0.25" 0 "86" 0 "25" 0 "28.21n" 0 "7.428" 0 "21.2p" 0 "2" 0 "185.1" 0 "2.713" 0 "0" 0 "0" 0 "1.65" 0 "0" 0 "52" 0 "11.3p" 0 "0.69" 0 "0.33" 0 "9.921p" 0 "0.65" 0 "0.33" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "611.5p" 0 "2" 0 "80" 0 "0.52" 0 "57.71n" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
|
||||
<_BJT KT815B_1 1 990 640 8 -26 0 0 "npn" 0 "10.2f" 0 "1" 0 "1" 0 "0.3983" 0 "0.3633" 0 "87" 0 "0" 0 "573.7f" 0 "1.453" 0 "231.6f" 0 "1.44" 0 "159.4" 0 "1.576" 0 "0" 0 "0" 0 "0.2936" 0 "0" 0 "5" 0 "71.14p" 0 "0.75" 0 "0.3333" 0 "88.73p" 0 "0.75" 0 "0.3333" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "24.32n" 0 "2" 0 "10" 0 "1" 0 "2.046u" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
|
||||
<R R1 1 360 220 15 -26 0 1 "1k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R2 1 360 710 15 -26 0 1 "1k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<_BJT KT815A_1 1 700 590 8 -26 0 0 "npn" 0 "10.2f" 0 "1" 0 "1" 0 "0.4139" 0 "0.5592" 0 "70" 0 "0" 0 "349.5f" 0 "1.422" 0 "706.1f" 0 "1.473" 0 "191.7" 0 "1.683" 0 "0" 0 "0" 0 "0.203" 0 "0" 0 "5" 0 "71.14p" 0 "0.75" 0 "0.3333" 0 "88.73p" 0 "0.75" 0 "0.3333" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "24.32n" 0 "2" 0 "10" 0 "1" 0 "2.046u" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
|
||||
<R R3 1 260 420 -26 -43 0 2 "1k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R4 1 370 420 -26 -43 0 2 "27k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<_BJT KT814B_1 1 1020 230 8 -26 1 0 "pnp" 0 "11.45f" 0 "1" 0 "1" 0 "0.2157" 0 "0.5927" 0 "72.62" 0 "0" 0 "97.57f" 0 "1.421" 0 "637.6f" 0 "1.41" 0 "128.7" 0 "1.928" 0 "0" 0 "0" 0 "0.2979" 0 "0" 0 "4" 0 "71.14p" 0 "0.75" 0 "0.3333" 0 "88.73p" 0 "0.75" 0 "0.3333" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "26.36n" 0 "5" 0 "10" 0 "3" 0 "2.046u" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
|
||||
<_BJT KT3107A_1 1 360 620 8 -26 1 0 "pnp" 0 "6.545f" 0 "1" 0 "1" 0 "0.1862" 0 "12m" 0 "86.5" 0 "32" 0 "7.735n" 0 "8.56" 0 "3.35p" 0 "2" 0 "105.5" 0 "1.62" 0 "0" 0 "0" 0 "0.71" 0 "0" 0 "39.1" 0 "12.59p" 0 "0.69" 0 "0.35" 0 "12.83p" 0 "0.65" 0 "0.33" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "477.5p" 0 "2" 0 "35" 0 "56m" 0 "30.5n" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
|
||||
<R R30 1 850 560 -26 15 0 0 "120" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R29 1 850 280 -26 15 0 0 "120" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R18 1 910 340 15 -26 0 1 "68" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R20 1 1020 360 15 -26 1 3 "0.39" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<C C4 1 820 150 17 -26 0 1 "500u" 1 "" 0 "neutral" 0>
|
||||
<R R19 1 990 310 -26 -43 0 2 "120" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R22 1 960 530 -26 15 0 0 "120" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R23 1 990 480 15 -26 0 1 "0.39" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R16 1 870 100 -26 -43 1 0 "330" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 400 420 0 0 0 1>
|
||||
<GND * 1 400 480 0 0 0 1>
|
||||
<R R5 1 440 220 15 -26 0 1 "15k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<C C8 1 200 420 -26 17 0 0 "10u" 1 "" 0 "neutral" 0>
|
||||
<_BJT KT814A_1 1 690 240 8 -26 1 0 "pnp" 0 "11.45f" 0 "1" 0 "1" 0 "0.3656" 0 "1.275" 0 "62.37" 0 "0" 0 "88.24f" 0 "1.411" 0 "269.4f" 0 "1.51" 0 "176.8" 0 "1.238" 0 "0" 0 "0" 0 "0.1654" 0 "0" 0 "4" 0 "71.14p" 0 "0.75" 0 "0.33" 0 "88.73p" 0 "0.75" 0 "0.3333" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "26.36n" 0 "5" 0 "10" 0 "3" 0 "2.046u" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
|
||||
<R R13 1 690 140 15 -26 0 1 "120" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R11 1 600 190 15 -26 0 1 "39" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<C C3 1 600 130 17 -26 0 1 "22n" 1 "" 0 "neutral" 0>
|
||||
<GND * 1 820 180 0 0 0 0>
|
||||
<R R12 1 600 640 15 -26 0 1 "39" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<C C2 1 600 700 17 -26 0 1 "22n" 1 "" 0 "neutral" 0>
|
||||
<R R14 1 700 680 15 -26 0 1 "120" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<C C5 1 820 740 17 -26 0 1 "500u" 1 "" 0 "neutral" 0>
|
||||
<GND * 1 820 710 0 0 0 2>
|
||||
<GND * 1 910 370 0 0 0 0>
|
||||
<GND * 1 910 470 0 0 0 2>
|
||||
<_BJT KT819A_1 1 1140 670 8 -26 0 0 "npn" 0 "114.5f" 0 "1" 0 "1" 0 "3.193" 0 "0.4086" 0 "80" 0 "0" 0 "1.231p" 0 "1.371" 0 "1.185p" 0 "1.533" 0 "176.5" 0 "1" 0 "0" 0 "0" 0 "36.34m" 0 "0" 0 "2" 0 "1.635n" 0 "0.75" 0 "0.3333" 0 "1.183n" 0 "0.75" 0 "0.3333" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "14.69n" 0 "0.4251" 0 "10" 0 "1.387" 0 "2.955u" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
|
||||
<_BJT KT818A_1 1 1150 190 8 -26 1 0 "pnp" 0 "150.1f" 0 "1" 0 "1" 0 "6.563" 0 "0.24" 0 "70" 0 "0" 0 "2.436p" 0 "1.37" 0 "2.847p" 0 "1.564" 0 "135.8" 0 "1.6" 0 "0" 0 "0" 0 "74m" 0 "0" 0 "1" 0 "1.635n" 0 "0.75" 0 "0.3333" 0 "1.183n" 0 "0.75" 0 "0.3333" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "20.02n" 0 "0.8299" 0 "10" 0 "0.3063" 0 "2.65u" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
|
||||
<R R28 1 1090 190 -26 -43 0 2 "2" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R32 1 1110 420 -26 15 0 0 "8" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 1140 420 0 0 0 0>
|
||||
<GND * 1 120 520 0 0 0 0>
|
||||
<Vdc V2 1 1250 750 18 -26 0 1 "25" 1>
|
||||
<Vdc V3 1 1260 180 18 -26 0 1 "25" 1>
|
||||
<GND * 1 1260 210 0 0 0 0>
|
||||
<GND * 1 1250 720 0 0 0 2>
|
||||
<R R24 1 910 670 15 -26 0 1 "1k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R31 1 910 170 15 -26 0 1 "1k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R26 1 1020 130 15 -26 0 1 "68" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R27 1 1080 670 -26 -43 0 2 "2" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R25 1 990 730 15 -26 0 1 "68" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R17 1 870 780 -26 15 0 0 "330" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<_BJT KT3107A_2 1 910 560 8 -26 1 0 "pnp" 0 "6.545f" 0 "1" 0 "1" 0 "0.1862" 0 "12m" 0 "86.5" 0 "32" 0 "7.735n" 0 "8.56" 0 "3.35p" 0 "2" 0 "105.5" 0 "1.62" 0 "0" 0 "0" 0 "0.71" 0 "0" 0 "39.1" 0 "12.59p" 0 "0.69" 0 "0.35" 0 "12.83p" 0 "0.65" 0 "0.33" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "477.5p" 0 "2" 0 "35" 0 "56m" 0 "30.5n" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.5" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
|
||||
<R R7 1 550 450 -26 -43 1 0 "68" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R9 1 640 390 15 -26 0 1 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 520 450 0 0 0 3>
|
||||
<R R6 1 480 720 15 -26 0 1 "15k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<Vac V1 1 120 490 18 -26 0 1 "1 V" 1 "10 kHz" 0 "0" 0 "0" 0>
|
||||
<R R33 1 760 530 15 -26 0 1 "15" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<Diode D2D212A_1 1 760 470 13 -26 0 1 "36.89f" 0 "1" 0 "21p" 0 "0.3333" 0 "0.75" 0 "0.5" 0 "0" 0 "0" 0 "2" 0 "0" 0 "150n" 0 "0" 0 "0" 0 "1" 0 "1" 0 "200" 0 "50u" 0 "26.85" 0 "3" 0 "1.11" 0 "0" 0 "0" 0 "0" 0 "0" 0 "0" 0 "0" 0 "26.85" 0 "1" 0 "normal" 0>
|
||||
<R R21 1 910 500 -75 -26 0 3 "68" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 250 220 0 0 0 0>
|
||||
<Diode D814D_1 1 240 750 -59 -26 0 3 "5.235e-13" 0 "1.17" 0 "29.15p" 0 "0.41" 0 "0.71" 0 "0.5" 0 "0" 0 "0" 0 "2" 0 "3.8" 0 "59.96n" 0 "0" 0 "0" 0 "1" 0 "1" 0 "13" 0 "1u" 0 "26.85" 0 "3" 0 "1.11" 0 "0" 0 "0" 0 "0" 0 "0" 0 "0" 0 "0" 0 "26.85" 0 "1" 0 "normal" 0>
|
||||
<Diode D814D_4 1 250 130 -59 -26 0 3 "5.235e-13" 0 "1.17" 0 "29.15p" 0 "0.41" 0 "0.71" 0 "0.5" 0 "0" 0 "0" 0 "2" 0 "3.8" 0 "59.96n" 0 "0" 0 "0" 0 "1" 0 "1" 0 "13" 0 "1u" 0 "26.85" 0 "3" 0 "1.11" 0 "0" 0 "0" 0 "0" 0 "0" 0 "0" 0 "0" 0 "26.85" 0 "1" 0 "normal" 0>
|
||||
<GND * 1 240 660 0 0 0 2>
|
||||
<Diode KS139A_1 1 250 190 -64 -26 0 3 "4e-13" 0 "1.35" 0 "85p" 0 "0.45" 0 "0.8" 0 "0.5" 0 "0" 0 "0" 0 "2" 0 "30" 0 "72n" 0 "0" 0 "0" 0 "1" 0 "1" 0 "3.9" 0 "5u" 0 "26.85" 0 "3" 0 "1.11" 0 "0" 0 "0" 0 "0" 0 "0" 0 "0" 0 "0" 0 "26.85" 0 "1" 0 "normal" 0>
|
||||
<Diode KS139A_2 1 240 690 -64 -26 0 3 "4e-13" 0 "1.35" 0 "85p" 0 "0.45" 0 "0.8" 0 "0.5" 0 "0" 0 "0" 0 "2" 0 "30" 0 "72n" 0 "0" 0 "0" 0 "1" 0 "1" 0 "3.9" 0 "5u" 0 "26.85" 0 "3" 0 "1.11" 0 "0" 0 "0" 0 "0" 0 "0" 0 "0" 0 "0" 0 "26.85" 0 "1" 0 "normal" 0>
|
||||
<GND * 1 710 300 0 0 0 3>
|
||||
<R R34 1 710 390 15 -26 0 1 "10" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<C C1 1 370 480 -26 17 0 0 "1000p" 1 "" 0 "neutral" 0>
|
||||
<C C12 1 1140 810 17 -26 0 1 "33n" 1 "" 0 "neutral" 0>
|
||||
<GND * 1 1140 840 0 0 0 0>
|
||||
<GND * 1 1020 40 0 0 0 2>
|
||||
<C C11 1 1020 70 17 -26 0 1 "33n" 1 "" 0 "neutral" 0>
|
||||
<C C9 1 710 330 -54 -26 1 1 "68n" 1 "" 0 "neutral" 0>
|
||||
<C C6 1 580 380 -57 -26 1 1 "500u" 1 "" 0 "neutral" 0>
|
||||
<C C7 1 580 510 -57 -26 1 1 "500u" 1 "" 0 "neutral" 0>
|
||||
<R R8 1 610 450 -26 -43 1 0 "1k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<C C10 1 800 380 17 -26 0 1 "33n" 1 "" 0 "neutral" 0>
|
||||
<Diode D2D212A_2 1 760 350 13 -26 0 1 "36.89f" 0 "1" 0 "21p" 0 "0.3333" 0 "0.75" 0 "0.5" 0 "0" 0 "0" 0 "2" 0 "0" 0 "150n" 0 "0" 0 "0" 0 "1" 0 "1" 0 "200" 0 "50u" 0 "26.85" 0 "3" 0 "1.11" 0 "0" 0 "0" 0 "0" 0 "0" 0 "0" 0 "0" 0 "26.85" 0 "1" 0 "normal" 0>
|
||||
<R R10 1 640 530 15 -26 0 1 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<C C13 1 710 440 -26 17 0 0 "1000p" 1 "" 0 "neutral" 0>
|
||||
<.DC DC1 1 760 860 0 43 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
<.TR TR1 1 950 860 0 71 0 0 "lin" 1 "0" 1 "1 ms" 1 "500" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
|
||||
<.AC AC1 1 560 860 0 43 0 0 "lin" 1 "1 Hz" 1 "1 MHz" 1 "200" 1 "no" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<1020 160 1020 190 "" 0 0 0 "">
|
||||
<1020 190 1020 200 "" 0 0 0 "">
|
||||
<910 200 910 230 "" 0 0 0 "">
|
||||
<910 230 910 250 "" 0 0 0 "">
|
||||
<910 230 990 230 "" 0 0 0 "">
|
||||
<910 310 960 310 "" 0 0 0 "">
|
||||
<1020 260 1020 310 "" 0 0 0 "">
|
||||
<1020 310 1020 330 "" 0 0 0 "">
|
||||
<360 100 360 190 "" 0 0 0 "">
|
||||
<360 100 440 100 "" 0 0 0 "">
|
||||
<820 100 840 100 "" 0 0 0 "">
|
||||
<820 100 820 120 "" 0 0 0 "">
|
||||
<600 100 690 100 "" 0 0 0 "">
|
||||
<690 100 820 100 "" 0 0 0 "">
|
||||
<290 320 290 420 "" 0 0 0 "">
|
||||
<290 320 330 320 "" 0 0 0 "">
|
||||
<290 620 330 620 "" 0 0 0 "">
|
||||
<290 420 290 480 "" 0 0 0 "">
|
||||
<290 420 340 420 "" 0 0 0 "">
|
||||
<290 480 290 620 "" 0 0 0 "">
|
||||
<290 480 340 480 "" 0 0 0 "">
|
||||
<360 570 360 590 "" 0 0 0 "">
|
||||
<360 570 440 570 "" 0 0 0 "">
|
||||
<440 100 600 100 "" 0 0 0 "">
|
||||
<440 100 440 190 "" 0 0 0 "">
|
||||
<440 250 440 570 "" 0 0 0 "">
|
||||
<360 250 360 280 "" 0 0 0 "">
|
||||
<360 650 360 680 "" 0 0 0 "">
|
||||
<360 350 480 350 "" 0 0 0 "">
|
||||
<360 280 360 290 "" 0 0 0 "">
|
||||
<600 240 600 280 "" 0 0 0 "">
|
||||
<360 280 600 280 "" 0 0 0 "">
|
||||
<690 100 690 110 "" 0 0 0 "">
|
||||
<690 170 690 210 "" 0 0 0 "">
|
||||
<600 240 660 240 "" 0 0 0 "">
|
||||
<600 220 600 240 "" 0 0 0 "">
|
||||
<690 280 760 280 "" 0 0 0 "">
|
||||
<690 270 690 280 "" 0 0 0 "">
|
||||
<600 590 600 610 "" 0 0 0 "">
|
||||
<600 590 670 590 "" 0 0 0 "">
|
||||
<360 740 360 780 "" 0 0 0 "">
|
||||
<360 780 480 780 "" 0 0 0 "">
|
||||
<820 780 840 780 "" 0 0 0 "">
|
||||
<820 770 820 780 "" 0 0 0 "">
|
||||
<700 780 820 780 "" 0 0 0 "">
|
||||
<700 710 700 780 "" 0 0 0 "">
|
||||
<700 620 700 650 "" 0 0 0 "">
|
||||
<600 780 700 780 "" 0 0 0 "">
|
||||
<600 730 600 780 "" 0 0 0 "">
|
||||
<480 780 600 780 "" 0 0 0 "">
|
||||
<700 560 760 560 "" 0 0 0 "">
|
||||
<660 420 710 420 "" 0 0 0 "">
|
||||
<1020 390 1020 420 "" 0 0 0 "">
|
||||
<990 420 1020 420 "" 0 0 0 "">
|
||||
<990 420 990 450 "" 0 0 0 "">
|
||||
<910 530 930 530 "" 0 0 0 "">
|
||||
<990 530 990 610 "" 0 0 0 "">
|
||||
<990 510 990 530 "" 0 0 0 "">
|
||||
<910 590 910 640 "" 0 0 0 "">
|
||||
<910 640 960 640 "" 0 0 0 "">
|
||||
<910 700 910 780 "" 0 0 0 "">
|
||||
<900 780 910 780 "" 0 0 0 "">
|
||||
<990 670 1050 670 "" 0 0 0 "">
|
||||
<990 670 990 700 "" 0 0 0 "">
|
||||
<900 100 910 100 "" 0 0 0 "">
|
||||
<910 100 1020 100 "" 0 0 0 "">
|
||||
<910 100 910 140 "" 0 0 0 "">
|
||||
<910 780 990 780 "" 0 0 0 "">
|
||||
<990 760 990 780 "" 0 0 0 "">
|
||||
<1020 190 1060 190 "" 0 0 0 "">
|
||||
<1150 100 1150 160 "" 0 0 0 "">
|
||||
<1150 220 1150 310 "" 0 0 0 "">
|
||||
<1020 310 1150 310 "" 0 0 0 "">
|
||||
<1140 530 1140 640 "" 0 0 0 "">
|
||||
<990 530 1140 530 "" 0 0 0 "">
|
||||
<1140 700 1140 780 "" 0 0 0 "">
|
||||
<990 780 1140 780 "" 0 0 0 "">
|
||||
<1020 420 1080 420 "out" 1070 390 20 "">
|
||||
<120 420 120 460 "" 0 0 0 "">
|
||||
<120 420 170 420 "" 0 0 0 "">
|
||||
<1150 100 1260 100 "" 0 0 0 "">
|
||||
<1260 100 1260 150 "" 0 0 0 "">
|
||||
<1140 780 1250 780 "" 0 0 0 "">
|
||||
<1020 100 1150 100 "" 0 0 0 "">
|
||||
<660 420 660 450 "" 0 0 0 "">
|
||||
<640 450 660 450 "" 0 0 0 "">
|
||||
<640 350 640 360 "" 0 0 0 "">
|
||||
<640 450 640 500 "" 0 0 0 "">
|
||||
<640 420 640 450 "" 0 0 0 "">
|
||||
<580 450 580 480 "" 0 0 0 "">
|
||||
<580 410 580 450 "" 0 0 0 "">
|
||||
<440 570 580 570 "" 0 0 0 "">
|
||||
<580 540 580 570 "" 0 0 0 "">
|
||||
<480 350 580 350 "" 0 0 0 "">
|
||||
<480 350 480 690 "" 0 0 0 "">
|
||||
<480 750 480 780 "" 0 0 0 "">
|
||||
<520 610 600 610 "" 0 0 0 "">
|
||||
<520 610 520 650 "" 0 0 0 "">
|
||||
<360 650 520 650 "" 0 0 0 "">
|
||||
<240 780 360 780 "" 0 0 0 "">
|
||||
<760 560 800 560 "" 0 0 0 "">
|
||||
<760 280 800 280 "" 0 0 0 "">
|
||||
<250 100 360 100 "" 0 0 0 "">
|
||||
<710 420 990 420 "" 0 0 0 "">
|
||||
<800 280 820 280 "" 0 0 0 "">
|
||||
<800 560 820 560 "" 0 0 0 "">
|
||||
<580 350 640 350 "" 0 0 0 "">
|
||||
<800 280 800 350 "" 0 0 0 "">
|
||||
<800 410 800 560 "" 0 0 0 "">
|
||||
<760 280 760 320 "" 0 0 0 "">
|
||||
<760 380 760 440 "" 0 0 0 "">
|
||||
<580 570 640 570 "" 0 0 0 "">
|
||||
<640 560 640 570 "" 0 0 0 "">
|
||||
<580 480 670 480 "" 0 0 0 "">
|
||||
<740 440 760 440 "" 0 0 0 "">
|
||||
<670 440 670 480 "" 0 0 0 "">
|
||||
<670 440 680 440 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 140 860 12 #000000 0 "It is an example of Hi-Fi audio amplifier. It uses USSR\nsemiconductor devices. It illustrates how realistic \ncircuits could be simulated with Ngspice and Xyce. \nYou can perform AC and TRAN simulations and plot \noutout voltage in time- and frequency domain.\nNOTE: Example could be run only with Ngspice/Xyce">
|
||||
</Paintings>
|
40
examples/ngspice/diode.sch
Normal file
40
examples/ngspice/diode.sch
Normal file
@ -0,0 +1,40 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,0,924,800,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=diode.dat>
|
||||
<DataDisplay=diode.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=diode.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<Diode D_1N4148_1 1 200 140 -26 -73 0 2 "222p" 1 "1.65" 1 "4p" 0 "0.333" 0 "0.7" 0 "0.5" 0 "0" 0 "0" 0 "2" 0 "68.6m" 0 "5.76n" 0 "0" 0 "0" 0 "1" 0 "1" 0 "75" 0 "1u" 0 "26.85" 0 "3.0" 0 "1.11" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "26.85" 0 "1.0" 0 "normal" 0>
|
||||
<Vdc V1 1 100 200 18 -26 0 1 "1 V" 1>
|
||||
<IProbe Pr1 1 140 140 -26 16 0 0>
|
||||
<GND * 1 250 180 0 0 0 0>
|
||||
<GND * 1 100 230 0 0 0 0>
|
||||
<.SW SW1 1 290 110 0 71 0 0 "DC1" 1 "lin" 1 "V1" 1 "0" 1 "2" 1 "200" 1>
|
||||
<.DC DC1 1 110 270 0 43 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<100 140 100 170 "" 0 0 0 "">
|
||||
<100 140 110 140 "" 0 0 0 "">
|
||||
<230 140 250 140 "" 0 0 0 "">
|
||||
<250 140 250 180 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 490 330 351 240 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/i(pr1)" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 120 370 12 #000000 0 "This is DC-sweep usage example. Refer to Chapter 2 of\nspice4qucs project documentation. Run simulation\nand obtain IV-chart of diode.\n\nNOTE: This Example could be run only with Ngspice/Xyce">
|
||||
</Paintings>
|
59
examples/ngspice/irfz44_switch.sch
Normal file
59
examples/ngspice/irfz44_switch.sch
Normal file
@ -0,0 +1,59 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,-137,1087,721,1,0,120>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=irfz44_switch.dat>
|
||||
<DataDisplay=irfz44_switch.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=irfz44_test.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 1 100 310 0 0 0 0>
|
||||
<Vrect V2 1 100 280 -96 -26 1 1 "12 V" 1 "0.2 ms" 1 "0.2 ms" 1 "1 ns" 0 "1 ns" 0 "0 ns" 0>
|
||||
<R R2 1 150 310 15 -26 0 1 "47k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 200 260 0 0 0 0>
|
||||
<GND * 1 150 340 0 0 0 0>
|
||||
<.TR TR1 1 250 280 0 71 0 0 "lin" 1 "0" 1 "1 ms" 1 "1000" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
|
||||
<Lib T1 1 200 230 8 -26 0 0 "MOSFETs" 1 "IRFZ44N" 1>
|
||||
<R R1 1 230 30 -26 15 0 0 "50 Ohm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<L L1 1 290 30 -26 -50 1 0 "1mH" 1 "" 0>
|
||||
<C C1 1 240 -60 -26 -57 1 0 "1000 pF" 1 "" 0 "neutral" 0>
|
||||
<Vdc V1 1 360 60 18 -26 0 1 "12V" 1>
|
||||
<GND * 1 360 90 0 0 0 0>
|
||||
<IProbe Pr1 1 200 130 -41 -26 0 3>
|
||||
</Components>
|
||||
<Wires>
|
||||
<100 230 100 250 "" 0 0 0 "">
|
||||
<100 230 150 230 "gate" 113 160 37 "">
|
||||
<150 230 170 230 "" 0 0 0 "">
|
||||
<150 230 150 280 "" 0 0 0 "">
|
||||
<200 30 200 100 "" 0 0 0 "">
|
||||
<200 -60 200 30 "" 0 0 0 "">
|
||||
<200 -60 210 -60 "" 0 0 0 "">
|
||||
<320 30 360 30 "" 0 0 0 "">
|
||||
<270 -60 360 -60 "" 0 0 0 "">
|
||||
<360 -60 360 30 "" 0 0 0 "">
|
||||
<200 160 200 200 "" 0 0 0 "">
|
||||
<200 200 200 200 "drain" 270 160 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 525 184 500 257 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.v(drain)" #0000ff 0 3 0 0 0>
|
||||
<"ngspice/tran.v(gate)" #ff0000 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 532 623 487 348 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"xyce/tran.V(DRAIN)" #0000ff 0 3 0 0 0>
|
||||
<"xyce/tran.V(GATE)" #ff0000 0 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 40 470 12 #000000 0 "This example shows how realistic switching circuits \ncould be simulated with Ngspice and Xyce. This \napproach can be used for simulation of power electronics \nin time domain. Also this illustrates usage of library \ncomponents with Ngspice and Xyce.\n\nNOTE: This Example could be run only with Ngspice/Xyce">
|
||||
</Paintings>
|
49
examples/ngspice/par_sweep_test.sch
Normal file
49
examples/ngspice/par_sweep_test.sch
Normal file
@ -0,0 +1,49 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=-51,-120,1185,1026,1,51,180>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=par_sweep_test.dat>
|
||||
<DataDisplay=par_sweep_test.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=par_sweep_test.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 1 110 230 0 0 0 0>
|
||||
<Vac V1 1 110 200 18 -26 0 1 "0.6 V" 1 "7.5 MHz" 0 "0" 0 "0" 0>
|
||||
<IProbe Pr1 1 140 120 -26 16 0 0>
|
||||
<L L1 1 250 120 -26 10 0 0 "10u" 1 "" 0>
|
||||
<C C1 1 310 120 -26 17 0 0 "40p" 1 "" 0 "neutral" 0>
|
||||
<R R1 1 360 190 15 -26 0 1 "30" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 360 220 0 0 0 0>
|
||||
<.SW SW1 1 270 290 0 71 0 0 "AC1" 1 "lin" 1 "R1" 1 "5 Ohm" 1 "50 Ohm" 1 "5" 1>
|
||||
<.AC AC1 1 100 290 0 43 0 0 "lin" 1 "1 MHz" 1 "10 MHz" 1 "200" 1 "no" 0>
|
||||
<.TR TR1 1 90 470 0 71 0 0 "lin" 1 "0" 1 "1 us" 1 "200" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<110 120 110 170 "" 0 0 0 "">
|
||||
<170 120 220 120 "vIn" 210 60 15 "">
|
||||
<340 120 360 120 "vR" 330 70 20 "">
|
||||
<360 120 360 160 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 460 640 402 190 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.v(vr)" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 467 372 377 272 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"xyce/ac.V(VR)" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 90 948 370 260 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/tran.v(vr)" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 180 -100 12 #000000 0 "This examples shows how to use \nparameter sweep with passive circuit and AC and TRAN\nsimulations. For Ngspice both AC and TRAN are \nsupporrted. For Xyce there is no warranty of proper \nTRAN+ParSweep operation.\n\nNOTE: This Example could be run only with Ngspice/Xyce">
|
||||
</Paintings>
|
55
examples/ngspice/quarz.sch
Normal file
55
examples/ngspice/quarz.sch
Normal file
@ -0,0 +1,55 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,-13,800,569,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=quarz.dat>
|
||||
<DataDisplay=quarz.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=quarz.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Название>
|
||||
<FrameText1=Чертил:>
|
||||
<FrameText2=Дата:>
|
||||
<FrameText3=Версия:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
<Line 10 0 30 0 #000000 0 1>
|
||||
<Line -40 0 30 0 #000000 0 1>
|
||||
<.PortSym -40 0 1 0>
|
||||
<.PortSym 40 0 2 180>
|
||||
<Line -10 -20 0 40 #000000 0 1>
|
||||
<Line 10 -20 0 40 #000000 0 1>
|
||||
<Rectangle -5 -30 10 60 #000000 0 1 #c0c0c0 1 0>
|
||||
<.ID -40 34 ZQ "1=f=8863k=Crystal Frequency=" "1=Lq=0.01406=Crystal Inductance=" "1=Cs=6.5p=Crystal Capacitance=">
|
||||
</Symbol>
|
||||
<Components>
|
||||
<R R1 1 320 280 -26 15 0 0 "50 MOhm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<Port P1 1 170 140 -23 12 0 0 "1" 1 "analog" 0>
|
||||
<Port P2 1 510 140 4 12 1 2 "2" 1 "analog" 0>
|
||||
<C C2 1 310 190 -26 17 0 0 "Cs" 1 "" 0 "neutral" 0>
|
||||
<R R2 1 380 90 -26 15 0 0 "2 Ohm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<L L1 1 320 90 -26 -52 1 0 "Lq" 1 "" 0>
|
||||
<Eqn Eqn1 1 150 340 -38 17 0 0 "Cq=1/(4*pi^2*f^2*Lq)" 1 "yes" 0>
|
||||
<C C1 1 260 90 -26 17 0 0 "Cq" 1 "" 0 "neutral" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<210 190 280 190 "" 0 0 0 "">
|
||||
<210 90 230 90 "" 0 0 0 "">
|
||||
<410 90 450 90 "" 0 0 0 "">
|
||||
<340 190 450 190 "" 0 0 0 "">
|
||||
<210 280 290 280 "" 0 0 0 "">
|
||||
<210 190 210 280 "" 0 0 0 "">
|
||||
<350 280 450 280 "" 0 0 0 "">
|
||||
<450 190 450 280 "" 0 0 0 "">
|
||||
<210 90 210 140 "" 0 0 0 "">
|
||||
<210 140 210 190 "" 0 0 0 "">
|
||||
<170 140 210 140 "" 0 0 0 "">
|
||||
<450 90 450 140 "" 0 0 0 "">
|
||||
<450 140 450 190 "" 0 0 0 "">
|
||||
<450 140 510 140 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
</Paintings>
|
1
examples/ngspice/quarz_test.dat.ngspice
Normal file
1
examples/ngspice/quarz_test.dat.ngspice
Normal file
@ -0,0 +1 @@
|
||||
<Qucs Dataset 0.0.19>
|
1207
examples/ngspice/quarz_test.dat.xyce
Normal file
1207
examples/ngspice/quarz_test.dat.xyce
Normal file
File diff suppressed because it is too large
Load Diff
28
examples/ngspice/quarz_test.dpl
Normal file
28
examples/ngspice/quarz_test.dpl
Normal file
@ -0,0 +1,28 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,0,800,800,1,0,0>
|
||||
<Grid=10,10,0>
|
||||
<DataSet=quarz_test.dat>
|
||||
<DataDisplay=quarz_test.sch>
|
||||
<OpenDisplay=1>
|
||||
<Script=quarz_test.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
</Components>
|
||||
<Wires>
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 150 473 461 263 3 #c0c0c0 1 00 1 8.8e+06 50000 9e+06 1 -123.795 50 -20.4358 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"spopus/ac.k" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
</Paintings>
|
44
examples/ngspice/quarz_test.sch
Normal file
44
examples/ngspice/quarz_test.sch
Normal file
@ -0,0 +1,44 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,-40,1049,749,1,0,180>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=quarz_test.dat>
|
||||
<DataDisplay=quarz_test.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=quarz_test.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Название>
|
||||
<FrameText1=Чертил:>
|
||||
<FrameText2=Дата:>
|
||||
<FrameText3=Версия:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 1 450 190 0 0 0 0>
|
||||
<R R1 1 360 160 -26 15 0 0 "1 Ohm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<GND * 1 120 280 0 0 0 0>
|
||||
<Vac V1 1 120 250 18 -26 0 1 "1 V" 1 "1 GHz" 0 "0" 0 "0" 0>
|
||||
<R R2 1 120 190 15 -26 0 1 "50 Ohm" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<Sub SUB1 1 250 160 -26 38 0 0 "/home/vvk/qucs/examples/ngspice/quarz.sch" 1 "8863k" 1 "0.01406" 1 "6.5p" 1>
|
||||
<.AC AC1 1 120 330 0 43 0 0 "lin" 1 "8800 kHz" 1 "9000 kHz" 1 "400" 1 "no" 0>
|
||||
<Eqn Eqn1 1 350 340 -30 15 0 0 "K=dB(out.v/in.v)" 1 "yes" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<390 160 450 160 "" 0 0 0 "">
|
||||
<450 160 450 190 "" 0 0 0 "">
|
||||
<290 160 330 160 "out" 330 100 21 "">
|
||||
<120 160 210 160 "in" 190 100 49 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 508 475 264 215 3 #c0c0c0 1 01 1 -1 0.5 1 1 0 1 0 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"xyce/ac.V(OUT)" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 114 671 301 191 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.k" #0000ff 0 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 190 -20 12 #000000 0 "This example illustrates how to use subcircuits with Ngspice and Xyce.\nYou need to specify absolute location of subcircuit "quarz.sch".\nThis subcircuit is in the same directory where is this example.\n\nNOTE: This Example could be run with Qucs and Ngspice/Xyce">
|
||||
</Paintings>
|
102
examples/ngspice/single_phase_transformer.sch
Normal file
102
examples/ngspice/single_phase_transformer.sch
Normal file
@ -0,0 +1,102 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,0,800,800,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=single_phase_transformer.dat>
|
||||
<DataDisplay=single_phase_transformer.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=single_phase_transformer.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
<Line 60 -60 0 0 #000000 0 1>
|
||||
<Line 60 -10 0 0 #000000 0 1>
|
||||
<Line 80 40 -40 0 #00007f 2 1>
|
||||
<.PortSym 80 40 5 180>
|
||||
<Line 40 -30 10 0 #ff0000 3 1>
|
||||
<Line 50 -30 0 10 #ff0000 3 1>
|
||||
<Line 50 -20 -10 0 #ff0000 3 1>
|
||||
<Line 40 -20 0 10 #ff0000 3 1>
|
||||
<Line 40 -10 10 0 #ff0000 3 1>
|
||||
<Line 50 -10 0 10 #ff0000 3 1>
|
||||
<Line 50 0 -10 0 #ff0000 3 1>
|
||||
<Line 40 0 0 10 #ff0000 3 1>
|
||||
<Line 40 10 10 0 #ff0000 3 1>
|
||||
<Line 50 10 0 10 #ff0000 3 1>
|
||||
<Line 50 20 -10 0 #ff0000 3 1>
|
||||
<Line 60 70 0 0 #000000 0 1>
|
||||
<Line 60 120 0 0 #000000 0 1>
|
||||
<Line 40 70 10 0 #ff0000 3 1>
|
||||
<Line 50 70 0 10 #ff0000 3 1>
|
||||
<Line 50 80 -10 0 #ff0000 3 1>
|
||||
<Line 40 80 0 10 #ff0000 3 1>
|
||||
<Line 40 90 10 0 #ff0000 3 1>
|
||||
<Line 50 90 0 10 #ff0000 3 1>
|
||||
<Line 50 100 -10 0 #ff0000 3 1>
|
||||
<Line 40 100 0 10 #ff0000 3 1>
|
||||
<Line 40 110 10 0 #ff0000 3 1>
|
||||
<Line 50 110 0 10 #ff0000 3 1>
|
||||
<Line 50 120 -10 0 #ff0000 3 1>
|
||||
<Line 40 70 0 -10 #ff0000 3 1>
|
||||
<Line 40 20 0 40 #ff0000 3 1>
|
||||
<Line 40 -30 0 -20 #ff0000 3 1>
|
||||
<Line 40 -50 40 0 #000080 2 1>
|
||||
<.PortSym 80 -50 3 180>
|
||||
<Line 40 120 0 20 #ff0000 3 1>
|
||||
<Line 40 140 40 0 #000080 2 1>
|
||||
<.PortSym 80 140 4 180>
|
||||
<Line 30 -30 0 150 #000000 2 1>
|
||||
<Line 24 -30 0 150 #000000 2 1>
|
||||
<Line 18 -30 0 150 #000000 2 1>
|
||||
<.PortSym -50 140 2 0>
|
||||
<Line 20 10 0 0 #000000 0 1>
|
||||
<Line 20 60 0 0 #000000 0 1>
|
||||
<Line 0 10 10 0 #ff0000 3 1>
|
||||
<Line 10 10 0 10 #ff0000 3 1>
|
||||
<Line 10 20 -10 0 #ff0000 3 1>
|
||||
<Line 0 20 0 10 #ff0000 3 1>
|
||||
<Line 0 30 10 0 #ff0000 3 1>
|
||||
<Line 10 30 0 10 #ff0000 3 1>
|
||||
<Line 10 40 -10 0 #ff0000 3 1>
|
||||
<Line 0 40 0 10 #ff0000 3 1>
|
||||
<Line 0 50 10 0 #ff0000 3 1>
|
||||
<Line 10 50 0 10 #ff0000 3 1>
|
||||
<Line 10 60 -10 0 #ff0000 3 1>
|
||||
<Line 0 10 0 -60 #ff0000 3 1>
|
||||
<Line 0 60 0 80 #ff0000 3 1>
|
||||
<Line -50 140 50 0 #000080 2 1>
|
||||
<Ellipse 4 -2 8 8 #ff0000 1 1 #ff0000 1 1>
|
||||
<Ellipse 44 -42 8 8 #ff0000 1 1 #ff0000 1 1>
|
||||
<Ellipse 44 58 8 8 #ff0000 1 1 #ff0000 1 1>
|
||||
<.ID -28 152 TRAN "1=L1=1m==" "1=L2=1m==" "1=L3=1m==" "1=K12=0.999==" "1=K13=0.999==" "1=K23=0.999==">
|
||||
<Line -40 -50 40 0 #000080 2 1>
|
||||
<.PortSym -40 -50 1 0>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<Port P3 1 440 140 -10 -53 0 3 "3" 0 "analog" 0>
|
||||
<Port P5 1 440 230 4 -29 0 2 "5" 0 "analog" 0>
|
||||
<Port P4 1 440 320 -10 35 0 1 "4" 0 "analog" 0>
|
||||
<Port P2 1 390 320 -11 33 0 1 "2" 0 "analog" 0>
|
||||
<Port P1 1 390 140 -10 -51 0 3 "1" 0 "analog" 0>
|
||||
<L_SPICE L1 1 390 230 -118 -22 1 3 "L1=L1" 1 "=" 0 "=" 0 "=" 0 "=" 0>
|
||||
<L_SPICE L2 1 440 170 10 -26 1 3 "L2=L2" 1 "=" 0 "=" 0 "=" 0 "=" 0>
|
||||
<L_SPICE L3 1 440 290 10 -26 1 3 "L3=L3" 1 "=" 0 "=" 0 "=" 0 "=" 0>
|
||||
<K_SPICE K13 1 410 400 -26 17 0 0 "L1=L1" 1 "L3=L3" 1 "K13" 1>
|
||||
<K_SPICE K12 1 330 400 -26 17 0 0 "L1=L1" 1 "L2=L2" 1 "K12" 1>
|
||||
<K_SPICE K23 1 480 400 -26 17 0 0 "L2=L2" 1 "L3=L3" 1 "K23" 1>
|
||||
</Components>
|
||||
<Wires>
|
||||
<440 200 440 230 "" 0 0 0 "">
|
||||
<440 230 440 260 "" 0 0 0 "">
|
||||
<390 260 390 320 "" 0 0 0 "">
|
||||
<390 140 390 200 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
</Paintings>
|
67
examples/ngspice/spice4qucs-help/Chapter13/S11_Probe.sch
Normal file
67
examples/ngspice/spice4qucs-help/Chapter13/S11_Probe.sch
Normal file
@ -0,0 +1,67 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,0,800,800,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=S11_Probe.dat>
|
||||
<DataDisplay=S11_Probe.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=S11_Probe.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
<Rectangle -40 -40 80 70 #aa5500 3 1 #c0c0c0 1 0>
|
||||
<Line -60 20 20 0 #000080 2 1>
|
||||
<Line 40 20 20 0 #000080 2 1>
|
||||
<Line -40 10 80 0 #000000 3 1>
|
||||
<Line 32 -16 4 2 #000000 2 1>
|
||||
<Line -36 -16 4 -2 #000000 2 1>
|
||||
<Line -32 -18 6 -2 #000000 2 1>
|
||||
<Line -26 -20 8 -2 #000000 2 1>
|
||||
<Line -18 -22 6 -2 #000000 2 1>
|
||||
<Line -12 -24 8 -1 #000000 2 1>
|
||||
<Line 8 -24 8 2 #000000 2 1>
|
||||
<Line 16 -22 6 2 #000000 2 1>
|
||||
<Line 22 -20 6 2 #000000 2 1>
|
||||
<Line 28 -18 4 2 #000000 2 1>
|
||||
<Line 36 -14 0 0 #000000 0 1>
|
||||
<Line 36 -14 4 2 #000000 2 1>
|
||||
<Line 0 -25 -4 0 #000000 2 1>
|
||||
<Line -1 -25 9 1 #000000 2 1>
|
||||
<Line -36 -16 -4 2 #000000 2 1>
|
||||
<Ellipse 0 10 0 0 #000000 0 1 #c0c0c0 1 1>
|
||||
<Ellipse -1 9 2 2 #000000 0 1 #000000 1 1>
|
||||
<Line 0 10 -14 -37 #ff0000 3 1>
|
||||
<Text -37 7 12 #aa5500 0 "In">
|
||||
<Text 11 8 12 #aa5500 0 "S11">
|
||||
<Text -37 -35 10 #000000 0 "0">
|
||||
<Text 31 -34 10 #000000 0 "1">
|
||||
<.PortSym -60 20 1 0>
|
||||
<.PortSym 60 20 2 180>
|
||||
<.ID -40 34 S11_Probe "1=Z0=50==">
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 1 610 310 0 0 0 0>
|
||||
<GND * 1 500 310 0 0 0 0>
|
||||
<GND * 1 440 310 0 0 0 0>
|
||||
<VCVS SRC1 1 470 280 -21 51 0 0 "2" 1 "0" 0>
|
||||
<Port nS11 1 700 250 4 -35 0 2 "2" 0 "analog" 0>
|
||||
<S4Q_V V1 1 550 250 -26 -64 0 2 "DC 0 AC 1" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<Port nP 1 400 250 -23 12 0 0 "1" 0 "analog" 0>
|
||||
<R R1 1 610 280 15 -26 0 1 "{Z0}" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<400 250 440 250 "" 0 0 0 "">
|
||||
<580 250 610 250 "" 0 0 0 "">
|
||||
<500 250 520 250 "" 0 0 0 "">
|
||||
<610 250 700 250 "nS11" 640 200 57 "">
|
||||
<400 250 400 250 "nP" 390 200 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
</Paintings>
|
66
examples/ngspice/spice4qucs-help/Chapter13/S12_Probe.sch
Normal file
66
examples/ngspice/spice4qucs-help/Chapter13/S12_Probe.sch
Normal file
@ -0,0 +1,66 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,0,800,800,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=S12_Probe.dat>
|
||||
<DataDisplay=S12_Probe.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=S12_Probe.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
<Rectangle -40 -40 80 70 #aa5500 3 1 #c0c0c0 1 0>
|
||||
<Line -60 20 20 0 #000080 2 1>
|
||||
<Line -40 10 80 0 #000000 3 1>
|
||||
<Line 32 -16 4 2 #000000 2 1>
|
||||
<Line -36 -16 4 -2 #000000 2 1>
|
||||
<Line -32 -18 6 -2 #000000 2 1>
|
||||
<Line -26 -20 8 -2 #000000 2 1>
|
||||
<Line -18 -22 6 -2 #000000 2 1>
|
||||
<Line -12 -24 8 -1 #000000 2 1>
|
||||
<Line 8 -24 8 2 #000000 2 1>
|
||||
<Line 16 -22 6 2 #000000 2 1>
|
||||
<Line 22 -20 6 2 #000000 2 1>
|
||||
<Line 28 -18 4 2 #000000 2 1>
|
||||
<Line 36 -14 0 0 #000000 0 1>
|
||||
<Line 36 -14 4 2 #000000 2 1>
|
||||
<Line 0 -25 -4 0 #000000 2 1>
|
||||
<Line -1 -25 9 1 #000000 2 1>
|
||||
<Line -36 -16 -4 2 #000000 2 1>
|
||||
<Ellipse 0 10 0 0 #000000 0 1 #c0c0c0 1 1>
|
||||
<Ellipse -1 9 2 2 #000000 0 1 #000000 1 1>
|
||||
<Line 0 10 -14 -37 #ff0000 3 1>
|
||||
<Text -37 7 12 #aa5500 0 "In">
|
||||
<Text 11 8 12 #aa5500 0 "S12">
|
||||
<Text -37 -35 10 #000000 0 "0">
|
||||
<Text 31 -34 10 #000000 0 "1">
|
||||
<Line 40 20 20 0 #000080 2 1>
|
||||
<.PortSym -60 20 1 0>
|
||||
<.PortSym 60 20 2 180>
|
||||
<.ID -40 34 S12_Probe "1=Z0=50==">
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 1 570 380 0 0 1 2>
|
||||
<GND * 1 630 380 0 0 1 2>
|
||||
<VCVS SRC1 1 600 350 -23 69 1 2 "2" 1 "0" 0>
|
||||
<GND * 1 530 380 0 0 1 2>
|
||||
<Port nP 1 660 320 4 -34 0 2 "1" 0 "analog" 0>
|
||||
<Port nS12 1 480 320 -23 12 0 0 "2" 0 "analog" 0>
|
||||
<R R1 1 530 350 -68 11 0 1 "{Z0}" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<630 320 660 320 "" 0 0 0 "">
|
||||
<480 320 530 320 "" 0 0 0 "">
|
||||
<530 320 570 320 "" 0 0 0 "">
|
||||
<630 320 630 320 "nP" 620 270 0 "">
|
||||
<480 320 480 320 "nS12" 480 270 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
</Paintings>
|
66
examples/ngspice/spice4qucs-help/Chapter13/S21_Probe.sch
Normal file
66
examples/ngspice/spice4qucs-help/Chapter13/S21_Probe.sch
Normal file
@ -0,0 +1,66 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,0,800,800,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=S21_Probe.dat>
|
||||
<DataDisplay=S21_Probe.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=S21_Probe.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
<Rectangle -60 -140 80 70 #aa5500 3 1 #c0c0c0 1 0>
|
||||
<Line -80 -80 20 0 #000080 2 1>
|
||||
<Line -60 -90 80 0 #000000 3 1>
|
||||
<Line 12 -116 4 2 #000000 2 1>
|
||||
<Line -56 -116 4 -2 #000000 2 1>
|
||||
<Line -52 -118 6 -2 #000000 2 1>
|
||||
<Line -46 -120 8 -2 #000000 2 1>
|
||||
<Line -38 -122 6 -2 #000000 2 1>
|
||||
<Line -32 -124 8 -1 #000000 2 1>
|
||||
<Line -12 -124 8 2 #000000 2 1>
|
||||
<Line -4 -122 6 2 #000000 2 1>
|
||||
<Line 2 -120 6 2 #000000 2 1>
|
||||
<Line 8 -118 4 2 #000000 2 1>
|
||||
<Line 16 -114 0 0 #000000 0 1>
|
||||
<Line 16 -114 4 2 #000000 2 1>
|
||||
<Line -20 -125 -4 0 #000000 2 1>
|
||||
<Line -21 -125 9 1 #000000 2 1>
|
||||
<Line -56 -116 -4 2 #000000 2 1>
|
||||
<Ellipse -20 -90 0 0 #000000 0 1 #c0c0c0 1 1>
|
||||
<Ellipse -21 -91 2 2 #000000 0 1 #000000 1 1>
|
||||
<Line -20 -90 -14 -37 #ff0000 3 1>
|
||||
<Text -57 -93 12 #aa5500 0 "In">
|
||||
<Text -9 -92 12 #aa5500 0 "S21">
|
||||
<Text -57 -135 10 #000000 0 "0">
|
||||
<Text 11 -134 10 #000000 0 "1">
|
||||
<.PortSym -80 -80 1 0>
|
||||
<Line 20 -80 20 0 #000080 2 1>
|
||||
<.PortSym 40 -80 2 180>
|
||||
<.ID -60 -66 S21_Probe "1=Z0=50==">
|
||||
</Symbol>
|
||||
<Components>
|
||||
<VCVS SRC1 1 550 290 -20 58 0 0 "2" 1 "0" 0>
|
||||
<GND * 1 610 320 0 0 0 0>
|
||||
<GND * 1 580 320 0 0 0 0>
|
||||
<GND * 1 520 320 0 0 0 0>
|
||||
<Port nP 1 470 260 -23 12 0 0 "1" 0 "analog" 0>
|
||||
<Port nS21 1 670 260 4 12 1 2 "2" 0 "analog" 0>
|
||||
<R R1 1 610 290 15 -26 0 1 "{Z0}" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<580 260 610 260 "" 0 0 0 "">
|
||||
<470 260 520 260 "" 0 0 0 "">
|
||||
<610 260 670 260 "" 0 0 0 "">
|
||||
<470 260 470 260 "nP" 470 220 0 "">
|
||||
<670 260 670 260 "nS21" 630 220 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
</Paintings>
|
65
examples/ngspice/spice4qucs-help/Chapter13/S22_Probe.sch
Normal file
65
examples/ngspice/spice4qucs-help/Chapter13/S22_Probe.sch
Normal file
@ -0,0 +1,65 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=513,16,1093,949,1,0,60>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=S22_Probe.dat>
|
||||
<DataDisplay=S22_Probe.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=S22_Probe.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
<Rectangle -20 -40 80 70 #aa0000 3 1 #c0c0c0 1 0>
|
||||
<Line -40 20 20 0 #000080 2 1>
|
||||
<Line 60 20 20 0 #000080 2 1>
|
||||
<Line -20 10 80 0 #000000 3 1>
|
||||
<Line 52 -16 4 2 #000000 2 1>
|
||||
<Line -16 -16 4 -2 #000000 2 1>
|
||||
<Line -12 -18 6 -2 #000000 2 1>
|
||||
<Line -6 -20 8 -2 #000000 2 1>
|
||||
<Line 2 -22 6 -2 #000000 2 1>
|
||||
<Line 8 -24 8 -1 #000000 2 1>
|
||||
<Line 28 -24 8 2 #000000 2 1>
|
||||
<Line 36 -22 6 2 #000000 2 1>
|
||||
<Line 42 -20 6 2 #000000 2 1>
|
||||
<Line 48 -18 4 2 #000000 2 1>
|
||||
<Line 56 -14 0 0 #000000 0 1>
|
||||
<Line 56 -14 4 2 #000000 2 1>
|
||||
<Line 20 -25 -4 0 #000000 2 1>
|
||||
<Line 19 -25 9 1 #000000 2 1>
|
||||
<Line -16 -16 -4 2 #000000 2 1>
|
||||
<Ellipse 20 10 0 0 #000000 0 1 #c0c0c0 1 1>
|
||||
<Ellipse 19 9 2 2 #000000 0 1 #000000 1 1>
|
||||
<Line 20 10 -14 -37 #ff0000 3 1>
|
||||
<Text -17 7 12 #aa0000 0 "In">
|
||||
<Text 31 8 12 #aa0000 0 "S22">
|
||||
<Text -17 -35 10 #000000 0 "0">
|
||||
<Text 51 -34 10 #000000 0 "1">
|
||||
<.PortSym -40 20 1 0>
|
||||
<.PortSym 80 20 2 180>
|
||||
<.ID -20 44 S22_Probe "1=Z0=50==">
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 1 640 360 0 0 0 0>
|
||||
<GND * 1 580 360 0 0 0 0>
|
||||
<VCVS SRC1 1 610 330 -16 53 0 0 "2" 1 "0" 0>
|
||||
<Port nP 1 580 300 -23 12 0 0 "1" 0 "analog" 0>
|
||||
<GND * 1 780 360 0 0 0 0>
|
||||
<Port nS22 1 810 300 4 -34 0 2 "2" 0 "analog" 0>
|
||||
<R R1 1 780 330 15 -26 0 1 "{Z0}" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<S4Q_V V1 1 670 300 -26 -64 0 2 "dc 0 ac 1" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<700 300 780 300 "" 0 0 0 "">
|
||||
<780 300 810 300 "nS22" 770 240 17 "">
|
||||
<580 300 580 300 "nP" 570 250 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
</Paintings>
|
74
examples/ngspice/spice4qucs-help/Chapter13/STestBench.sch
Normal file
74
examples/ngspice/spice4qucs-help/Chapter13/STestBench.sch
Normal file
@ -0,0 +1,74 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=-333,441,1660,1360,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=Test_StoY_SPICEOPUS.dat>
|
||||
<DataDisplay=Test_StoY_SPICEOPUS.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=Test_StoY_SPICEOPUS.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<Sub S11_Probe1 1 270 530 -20 43 0 0 "S11_Probe.sch" 0 "50" 1>
|
||||
<Sub S21_Probe1 1 790 630 -60 -66 0 0 "S21_Probe.sch" 0 "50" 1>
|
||||
<GND * 1 760 740 0 0 0 0>
|
||||
<S4Q_V V1 1 140 690 18 -26 0 1 "dc 0 ac 1" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<GND * 1 140 720 0 0 0 0>
|
||||
<R_SPICE R4 1 760 1100 -34 18 1 0 "50" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<Vac U1 1 790 1160 31 -40 1 1 "1 V" 1 "1 kHz" 1 "0" 0 "0" 0>
|
||||
<GND * 1 790 1190 0 0 1 2>
|
||||
<Sub S22_Probe1 1 770 980 -20 44 0 0 "S22_Probe.sch" 0 "50" 1>
|
||||
<.DC DC1 1 -140 470 0 46 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
<.AC AC1 1 -140 570 0 46 0 0 "log" 1 "1" 1 "1e6" 1 "121" 1 "no" 0>
|
||||
<Sub S12_Probe1 1 330 930 -40 34 0 0 "S12_Probe.sch" 0 "50" 1>
|
||||
<GND * 1 270 1170 0 0 1 2>
|
||||
<R_SPICE R1 1 180 650 -24 -66 0 2 "50" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<R_SPICE R2 1 760 700 15 -26 0 1 "50" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<R_SPICE R3 1 270 1140 26 -26 1 1 "50" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<210 550 210 650 "" 0 0 0 "">
|
||||
<710 550 710 650 "" 0 0 0 "">
|
||||
<710 650 760 650 "" 0 0 0 "">
|
||||
<760 650 760 670 "" 0 0 0 "">
|
||||
<760 730 760 740 "" 0 0 0 "">
|
||||
<140 650 150 650 "" 0 0 0 "">
|
||||
<140 650 140 660 "" 0 0 0 "">
|
||||
<210 650 380 650 "" 0 0 0 "">
|
||||
<670 650 710 650 "" 0 0 0 "">
|
||||
<790 1100 790 1130 "" 0 0 0 "">
|
||||
<720 1000 730 1000 "" 0 0 0 "">
|
||||
<720 1100 730 1100 "" 0 0 0 "">
|
||||
<720 1000 720 1100 "" 0 0 0 "">
|
||||
<660 1100 720 1100 "" 0 0 0 "">
|
||||
<270 1100 400 1100 "" 0 0 0 "">
|
||||
<270 1100 270 1110 "" 0 0 0 "">
|
||||
<270 950 270 1100 "" 0 0 0 "">
|
||||
<330 550 330 550 "nS11" 340 520 0 "">
|
||||
<830 550 830 550 "nS21" 830 510 0 "">
|
||||
<850 1000 850 1000 "nS22" 850 960 0 "">
|
||||
<390 950 390 950 "nS12" 400 910 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Rectangle 370 570 310 270 #ff0000 2 1 #c0c0c0 1 0>
|
||||
<Rectangle 380 1000 310 270 #ff0000 2 1 #c0c0c0 1 0>
|
||||
<Text 490 570 20 #000000 0 "DUT">
|
||||
<Text 380 580 12 #ff0000 0 "IN">
|
||||
<Text 640 580 12 #ff0000 0 "OUT">
|
||||
<Text 640 1010 12 #ff0000 0 "OUT">
|
||||
<Text 400 1010 12 #ff0000 0 "IN">
|
||||
<Text 440 850 12 #000000 0 "S11 and S21 Test bench">
|
||||
<Text 470 1290 12 #000000 0 "S12 and S22 Test bench">
|
||||
<Text 490 1000 20 #000000 0 "DUT">
|
||||
<Rectangle -290 750 540 590 #000000 4 1 #c0c0c0 1 0>
|
||||
<Text -280 760 12 #000000 0 " A test bench for simulating circuit two port small signal parameters\n as a function of frequency.\n###########################################################\nCopy the four S parameter probes to your current project directory.\nCopy the test bench circuit onto an empty Qucs-S schematic sheet in \nyour current project directory.\n\nPlace copies of the circuit under test in the box marked DUT.\nMake sure that the test circuit input and output terminals are\nconnected to the test bench IN and OUT terminals. Note both\ncopies of the circuit under test must be in the same orientation. \n\nSelect one of the Ngspice, Xyce or SPICE OPUS circuit simulators.\nSet the value of Z0 and resistors R1, R2, R3 and R4 to the required\ncharacteristic impedance (default 50 Ohm).\nSet the AC simulation frequency range to the required value (default log,\nfrom 1Hz to 1Meg Hz with 20 points per decade). \nSimulate the DUT by pressing key F2. \n\nThe S parameters of the circuit under test are the voltages \noutput at circuit nodes nS11, nS12, nS21 and nS22, respectively.\n\nPLEASE NOTE this test bench works with SPICE circuit simulators,\nand is designed for AC simulation ONLY.">
|
||||
</Paintings>
|
114
examples/ngspice/spice4qucs-help/Chapter13/TestLPF.sch
Normal file
114
examples/ngspice/spice4qucs-help/Chapter13/TestLPF.sch
Normal file
@ -0,0 +1,114 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,26,1506,1000,1,0,60>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=TestLPF.dat>
|
||||
<DataDisplay=TestLPF.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=TestLPF.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<Sub S11_Probe1 1 860 90 -20 43 0 0 "S11_Probe.sch" 0 "50" 1>
|
||||
<Sub S21_Probe1 1 1380 190 -60 -66 0 0 "S21_Probe.sch" 0 "50" 1>
|
||||
<GND * 1 1350 300 0 0 0 0>
|
||||
<S4Q_V V1 1 730 250 18 -26 0 1 "dc 0 ac 1" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<GND * 1 730 280 0 0 0 0>
|
||||
<R_SPICE R1 1 1350 660 -34 18 1 0 "50" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<Vac U1 1 1380 720 31 -40 1 1 "1 V" 1 "1 kHz" 1 "0" 0 "0" 0>
|
||||
<GND * 1 1380 750 0 0 1 2>
|
||||
<Sub S22_Probe1 1 1360 540 -20 44 0 0 "S22_Probe.sch" 0 "50" 1>
|
||||
<Sub S12_Probe1 1 920 490 -40 34 0 0 "S12_Probe.sch" 0 "50" 1>
|
||||
<GND * 1 860 730 0 0 1 2>
|
||||
<R_SPICE R2 1 770 210 -24 -66 0 2 "50" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<R_SPICE R3 1 1350 260 15 -26 0 1 "50" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<R_SPICE R4 1 860 700 26 -26 1 1 "50" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<C C1 1 1050 290 -33 58 0 1 "318.3nF" 1 "" 0 "neutral" 0>
|
||||
<GND * 1 1050 320 0 0 0 0>
|
||||
<L L1 1 1120 210 -26 10 0 0 "1.592mH" 1 "" 0>
|
||||
<C C2 1 1190 290 -25 56 0 1 "318.3nF" 1 "" 0 "neutral" 0>
|
||||
<GND * 1 1190 320 0 0 0 0>
|
||||
<C C3 1 1060 740 -31 44 0 1 "318.3nF" 1 "" 0 "neutral" 0>
|
||||
<GND * 1 1060 770 0 0 0 0>
|
||||
<L L2 1 1130 660 -26 10 0 0 "1.592mH" 1 "" 0>
|
||||
<C C4 1 1200 740 -32 47 0 1 "318.3nF" 1 "" 0 "neutral" 0>
|
||||
<GND * 1 1200 770 0 0 0 0>
|
||||
<.AC AC1 1 760 330 0 46 0 0 "log" 1 "1" 1 "1e6" 1 "121" 1 "no" 0>
|
||||
<.DC DC1 1 800 890 0 46 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<800 110 800 210 "" 0 0 0 "">
|
||||
<1300 110 1300 210 "" 0 0 0 "">
|
||||
<1300 210 1350 210 "" 0 0 0 "">
|
||||
<1350 210 1350 230 "" 0 0 0 "">
|
||||
<1350 290 1350 300 "" 0 0 0 "">
|
||||
<730 210 740 210 "" 0 0 0 "">
|
||||
<730 210 730 220 "" 0 0 0 "">
|
||||
<1380 660 1380 690 "" 0 0 0 "">
|
||||
<1310 560 1320 560 "" 0 0 0 "">
|
||||
<1310 660 1320 660 "" 0 0 0 "">
|
||||
<1310 560 1310 660 "" 0 0 0 "">
|
||||
<860 660 860 670 "" 0 0 0 "">
|
||||
<860 510 860 660 "" 0 0 0 "">
|
||||
<1050 210 1050 260 "" 0 0 0 "">
|
||||
<1190 210 1190 260 "" 0 0 0 "">
|
||||
<1050 210 1090 210 "" 0 0 0 "">
|
||||
<1150 210 1190 210 "" 0 0 0 "">
|
||||
<1060 660 1060 710 "" 0 0 0 "">
|
||||
<1200 660 1200 710 "" 0 0 0 "">
|
||||
<1060 660 1100 660 "" 0 0 0 "">
|
||||
<1160 660 1200 660 "" 0 0 0 "">
|
||||
<800 210 1050 210 "" 0 0 0 "">
|
||||
<1190 210 1300 210 "" 0 0 0 "">
|
||||
<860 660 1060 660 "" 0 0 0 "">
|
||||
<1200 660 1310 660 "" 0 0 0 "">
|
||||
<920 110 920 110 "nS11" 930 80 0 "">
|
||||
<1420 110 1420 110 "nS21" 1420 70 0 "">
|
||||
<1440 560 1440 560 "nS22" 1440 520 0 "">
|
||||
<980 510 980 510 "nS12" 990 470 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Smith 500 250 200 200 3 #000000 1 00 1 0 1 1 1 0 4 1 1 0 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.v(ns11)" #0000ff 2 3 0 0 0>
|
||||
</Smith>
|
||||
<Rect 220 235 241 175 2 #c0c0c0 1 11 1 1 1 1e+06 1 3e-08 1 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.v(ns11)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Polar 500 490 200 200 3 #000000 1 00 1 0 1 1 1 0 0.5 1.5 1 0 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.v(ns12)" #0000ff 2 3 0 0 0>
|
||||
</Polar>
|
||||
<Rect 220 470 240 160 2 #c0c0c0 1 11 1 1 1 1e+06 1 3e-07 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.v(ns12)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Polar 520 740 200 200 3 #000000 1 00 1 0 1 1 1 0 0.5 1.5 1 0 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.v(ns21)" #0000ff 2 3 0 0 0>
|
||||
</Polar>
|
||||
<Rect 220 720 240 160 2 #c0c0c0 1 11 1 1 1 1e+06 1 3e-07 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.v(ns21)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 220 950 240 160 2 #c0c0c0 1 11 1 1 1 1e+06 1 3e-08 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.v(ns22)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Smith 540 980 200 200 3 #000000 1 00 1 0 1 1 1 0 4 1 1 0 1 1 315 0 225 "" "" "">
|
||||
<"ngspice/ac.v(ns22)" #0000ff 2 3 0 0 0>
|
||||
</Smith>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Rectangle 960 130 310 270 #ff0000 2 1 #c0c0c0 1 0>
|
||||
<Rectangle 970 560 310 270 #ff0000 2 1 #c0c0c0 1 0>
|
||||
<Text 1080 130 20 #000000 0 "DUT">
|
||||
<Text 970 140 12 #ff0000 0 "IN">
|
||||
<Text 1230 140 12 #ff0000 0 "OUT">
|
||||
<Text 1230 570 12 #ff0000 0 "OUT">
|
||||
<Text 990 570 12 #ff0000 0 "IN">
|
||||
<Text 1030 410 12 #000000 0 "S11 and S21 Test bench">
|
||||
<Text 1060 850 12 #000000 0 "S12 and S22 Test bench">
|
||||
<Text 1080 560 20 #000000 0 "DUT">
|
||||
</Paintings>
|
@ -0,0 +1,29 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,0,1401,800,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=TwoPortConversion_scripys.dat>
|
||||
<DataDisplay=TwoPortConversion_scripys.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=TwoPortConversion_scripys.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<NutmegEq StoY_Conversion_Template1 1 160 170 -27 19 0 0 "ac" 1 "StoY_Z0=50.0" 1 "StoY_DelSxZ0=( (1+V(nS11))*(1+V(nS22))-V(nS12)*V(nS21) )*StoY_Z0" 1 "Y11=( (1+V(nS22))*(1-V(nS11))+V(nS12)*V(nS21) )/StoY_DelSxZ0" 1 "Y12=-2*V(nS12)/StoY_DelSxZ0" 1 "Y21=-2*V(nS21)/StoY_DelSxZ0" 1 "Y22=((1+V(nS11))*(1-V(nS22))+V(nS12)*V(nS21))/StoY_DelSxZ0" 1>
|
||||
<NutmegEq StoZ_Conversion_Template1 1 150 450 -27 19 0 0 "ac" 1 "StoZ_Z0=50.0" 1 "StoZ_DelSxZ0=( (1-V(nS11))*(1-V(nS22))-V(nS12)*V(nS21) )/StoZ_Z0" 1 "Z11=( (1+V(nS11))*(1-V(nS22))+V(nS12)*V(nS21) )/StoZ_DelSxZ0" 1 "Z12=2*V(nS12)/StoZ_DelSxZ0" 1 "Z21=2*V(nS21)/StoZ_DelSxZ0" 1 "Z22=((1-V(nS11))*(1+V(nS22))+V(nS12)*V(nS21))/StoZ_DelSxZ0" 1>
|
||||
</Components>
|
||||
<Wires>
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Rectangle 110 140 560 250 #aa5500 4 1 #c0c0c0 1 0>
|
||||
<Rectangle 110 430 550 240 #aa5500 4 1 #c0c0c0 1 0>
|
||||
</Paintings>
|
49
examples/ngspice/spice4qucs-help/Chapter13/Xyce2ToneTest.sch
Normal file
49
examples/ngspice/spice4qucs-help/Chapter13/Xyce2ToneTest.sch
Normal file
@ -0,0 +1,49 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,-1,1420,872,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=Xyce2ToneTest.dat>
|
||||
<DataDisplay=Xyce2ToneTest.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=Xyce2ToneTest.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 1 640 100 0 0 0 0>
|
||||
<VProbe Pr1 1 660 90 -16 28 0 3>
|
||||
<GND * 1 160 220 0 0 0 0>
|
||||
<GND * 1 560 240 0 0 0 0>
|
||||
<IProbe Pr2 1 560 200 -41 -26 0 3>
|
||||
<R_SPICE R1 1 400 80 -26 -61 0 2 "0.1" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<DIODE_SPICE D1 1 560 120 43 72 0 3 "DMOD" 1 ".model DMOD D(is=1e-15 n=1 cj0=1p rs=0.1 bv=0.7)" 1 "" 0 "" 0 "" 0>
|
||||
<S4Q_V V1 1 160 130 18 -26 0 1 "dc 0 ac 0 sin(0 0.8 0.95e6 0 0)" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<S4Q_V V2 1 160 190 18 -26 0 1 "dc 0 ac 0 sin(0 0.8 1.05e6 0 0)" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<.HB HB1 1 860 80 0 77 0 0 "0.95e6 1.05e6" 1 "3,3" 1 "1 pA" 0 "1 uV" 0 "0.001" 0 "150" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<560 80 640 80 "" 0 0 0 "">
|
||||
<560 80 560 90 "" 0 0 0 "">
|
||||
<560 230 560 240 "" 0 0 0 "">
|
||||
<560 150 560 170 "" 0 0 0 "">
|
||||
<160 80 160 100 "" 0 0 0 "">
|
||||
<160 80 370 80 "n1" 230 100 39 "">
|
||||
<430 80 560 80 "" 0 0 0 "">
|
||||
<560 80 560 80 "nd" 490 100 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 160 473 871 166 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
|
||||
<"xyce/PR1.Vb" #0000ff 2 3 0 6 0>
|
||||
</Rect>
|
||||
<Rect 160 731 867 181 3 #c0c0c0 1 00 1 -3.15e+06 2e+06 3.15e+06 1 -0.0742266 0.2 0.458508 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"xyce/PR2.Ib" #0000ff 2 3 0 6 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
</Paintings>
|
@ -0,0 +1,88 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=-140,370,4665,1250,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=ngspiceCustom1.dat>
|
||||
<DataDisplay=ngspiceCustom1.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=ngspiceCustom1.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<Vac U1 1 880 1040 27 -34 1 1 "1 V" 1 "1 kHz" 1 "0" 0 "0" 0>
|
||||
<GND * 1 880 1070 0 0 1 2>
|
||||
<R_SPICE R4 1 840 980 -18 18 1 0 "50" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<GND * 1 860 740 0 0 0 0>
|
||||
<R_SPICE R3 1 860 710 15 -26 0 1 "50" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<R_SPICE R2 1 450 660 -26 -61 0 2 "50" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<Vac U0 1 420 700 21 -24 0 1 "1 V" 1 "1 kHz" 1 "0" 0 "0" 0>
|
||||
<GND * 1 420 730 0 0 0 0>
|
||||
<Sub S11_Probe1 1 540 480 -40 34 0 0 "S11_Probe.sch" 0 "50" 1>
|
||||
<GND * 1 540 770 0 0 0 0>
|
||||
<GND * 1 700 760 0 0 0 0>
|
||||
<L_SPICE L10 1 620 660 -26 10 0 0 "1.592m" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<C_SPICE C15 1 700 730 17 -26 0 1 "318.3n" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<C_SPICE C14 1 540 740 17 -26 0 1 "318.3n" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<GND * 1 550 1090 0 0 0 0>
|
||||
<L_SPICE L11 1 630 980 -26 10 0 0 "1.592m" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<C_SPICE C17 1 550 1060 17 -26 0 1 "318.3n" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<GND * 1 710 1090 0 0 0 0>
|
||||
<C_SPICE C16 1 710 1060 17 -26 0 1 "318.3n" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<Sub S12_Probe1 1 880 490 -40 34 0 0 "S12_Probe.sch" 0 "50" 1>
|
||||
<Sub S22_Probe1 1 850 860 -20 44 0 0 "S22_Probe.sch" 0 "50" 1>
|
||||
<Sub S21_Probe1 1 420 960 -60 -66 0 0 "S21_Probe.sch" 0 "50" 1>
|
||||
<R_SPICE R5 1 330 1020 28 13 1 1 "50" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<GND * 1 330 1050 0 0 1 2>
|
||||
<.CUSTOMSIM CUSTOM1 1 -70 430 0 77 0 0 "\n* AC small signal simulation.\n* \nac dec 121 1 1e6\n*\nlet Z0 = 50.0\n*\n* Find two port S parameters from test circuit.\n*\nlet S11 = V(nS11)\nlet S12 = V(nS12)\nlet S21 = V(nS21)\nlet S22 = V(nS22)\n*\n* Extract Y paramerters.\n*\nlet StoYDelS = ( (1+S11)*(1+S22)-S12*S21 )*Z0\nlet Y11 = ( (1+S22)*(1-S11)+S12*S21 )/StoYDelS\nlet Y12 = -2*S12/StoYDelS\nlet Y21 = -2*S21/StoYDelS\nlet Y22 = ( (1+S11)*(1-S22)+S12*S21 )/StoYDelS\n*\n* Extract Z parameters\n*\nlet StoZDelS = ( (1-S11)*(1-S22)-S12*S21 )/Z0\nlet Z11 = ( (1+S11)*(1-S22)+S12*S21 )/StoZDelS\nlet Z12 = 2*S12/StoZDelS\nlet Z21 = 2*S21/StoZDelS\nlet Z22 = ( (1-S11)*(1+S22)+S12*S21 )/StoZDelS\n" 1 "S11; S12; S21; S22; Y11; Y12; Y21; Y22; Z11; Z12; Z21; Z22" 0 "" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<870 980 880 980 "" 0 0 0 "">
|
||||
<880 980 880 1010 "" 0 0 0 "">
|
||||
<420 660 420 670 "" 0 0 0 "">
|
||||
<480 500 480 660 "" 0 0 0 "">
|
||||
<860 660 860 680 "" 0 0 0 "">
|
||||
<650 660 700 660 "" 0 0 0 "">
|
||||
<480 660 540 660 "" 0 0 0 "">
|
||||
<540 660 590 660 "" 0 0 0 "">
|
||||
<540 660 540 710 "" 0 0 0 "">
|
||||
<700 660 820 660 "" 0 0 0 "">
|
||||
<700 660 700 700 "" 0 0 0 "">
|
||||
<660 980 710 980 "" 0 0 0 "">
|
||||
<550 980 600 980 "" 0 0 0 "">
|
||||
<550 980 550 1030 "" 0 0 0 "">
|
||||
<710 980 800 980 "" 0 0 0 "">
|
||||
<710 980 710 1030 "" 0 0 0 "">
|
||||
<820 660 860 660 "" 0 0 0 "">
|
||||
<820 510 820 660 "" 0 0 0 "">
|
||||
<800 880 810 880 "" 0 0 0 "">
|
||||
<800 980 810 980 "" 0 0 0 "">
|
||||
<800 880 800 980 "" 0 0 0 "">
|
||||
<330 980 550 980 "" 0 0 0 "">
|
||||
<330 980 330 990 "" 0 0 0 "">
|
||||
<330 880 340 880 "" 0 0 0 "">
|
||||
<330 880 330 980 "" 0 0 0 "">
|
||||
<600 500 600 500 "nS11" 630 470 0 "">
|
||||
<940 510 940 510 "nS12" 970 480 0 "">
|
||||
<930 880 930 880 "nS22" 960 850 0 "">
|
||||
<460 880 460 880 "nS21" 490 850 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Rectangle 480 900 310 270 #ff0000 2 1 #c0c0c0 1 0>
|
||||
<Rectangle 490 580 300 270 #ff0000 2 1 #c0c0c0 1 0>
|
||||
<Text 750 620 12 #ff0000 0 "OUT">
|
||||
<Text 500 610 12 #ff0000 0 "IN">
|
||||
<Text 620 580 20 #000000 0 "DUT">
|
||||
<Text 590 900 20 #000000 0 "DUT">
|
||||
<Text 490 940 12 #ff0000 0 "IN">
|
||||
<Text 740 940 12 #ff0000 0 "OUT">
|
||||
<Rectangle -100 410 390 800 #ff0000 3 1 #c0c0c0 1 0>
|
||||
</Paintings>
|
35
examples/ngspice/spice4qucs-help/Chapter13/testDiodeSM.sch
Normal file
35
examples/ngspice/spice4qucs-help/Chapter13/testDiodeSM.sch
Normal file
@ -0,0 +1,35 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,-69,5151,924,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=testDiodeSM.dat>
|
||||
<DataDisplay=testDiodeSM.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=testDiodeSM.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 1 140 190 0 0 0 0>
|
||||
<S4Q_V V1 1 140 160 -88 29 0 1 "dc 0 ac 0 sin(0.4 0.2 1e3 0 0)" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<GND * 1 350 250 0 0 0 0>
|
||||
<R R1 1 350 220 15 -26 0 1 "0.1" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<DIODE_SPICE D1 1 350 160 -297 81 0 3 "dmod" 1 ".model dmod d(is=1e-15 n=1 cj0=1p bv=20 rs=0)" 1 "" 0 "" 0 "" 0>
|
||||
<.CUSTOMSIM CUSTOM1 1 500 -30 0 51 0 0 "\n\ntran 1e-7 10m\nlet Id = v(ncur)/0.1\nwrite testDiodeSMtran1.txt v(ns) Id\ndisplay\n\nset nfrequs = 10\nfourier 1k v(ns) v(ncur) \nspec 0 10e3 1e3 v(ns) v(ncur) \nlet Idf = v(ncur)/0.1\nwrite testDiodeSMfourier2.txt v(ns) Idf\ndisplay\n\n\nssse v(ncur) 0 1e-6 1e-3 20\ndisplay\n\nspec 0 20e3 1e3 v(ncur) \nlet k = abs(v(ncur)/0.1)\nwrite testDiodeSMsp1.txt k \ndisplay" 1 "V(ns);V(ncur);Id;Idf;k" 0 "testDiodeSMtran1.txt;testDiodeSMfourier2.txt;testDiodeSMsp1.txt" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<140 130 350 130 "" 0 0 0 "">
|
||||
<140 130 140 130 "ns" 160 90 0 "">
|
||||
<350 190 350 190 "ncur" 380 160 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Rectangle 480 -50 300 610 #ff0000 3 1 #c0c0c0 1 0>
|
||||
</Paintings>
|
92
examples/xyce/XyceDigital/testCombLogic1.sch
Normal file
92
examples/xyce/XyceDigital/testCombLogic1.sch
Normal file
@ -0,0 +1,92 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=-336,-430,1160,1500,1,0,900>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=testCombLogic1.dat>
|
||||
<DataDisplay=testCombLogic1.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=testCombLogic1.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<SpLib X1 1 440 180 -64 -212 0 0 "/home/mike/S4QC30SEPT2016/work/share/qucs/library/XyceDigital.lib" 0 "AND4" 1 "auto" 1 "ScaleFactor=5" 1>
|
||||
<SpLib X2 1 440 310 -52 66 0 0 "/home/mike/S4QC30SEPT2016/work/share/qucs/library/XyceDigital.lib" 0 "AND4" 1 "auto" 1 "ScaleFactor=5" 1>
|
||||
<SpLib X5 1 260 200 -59 -213 0 0 "/home/mike/S4QC30SEPT2016/work/share/qucs/library/XyceDigital.lib" 0 "D2ABRIDGEX4" 1 "auto" 1 "ScaleFactor=5" 1>
|
||||
<SpLib X6 1 260 330 -74 35 0 0 "/home/mike/S4QC30SEPT2016/work/share/qucs/library/XyceDigital.lib" 0 "D2ABRIDGEX4" 1 "auto" 1 "ScaleFactor=5" 1>
|
||||
<SpLib X3 1 590 260 -29 -164 0 0 "/home/mike/S4QC30SEPT2016/work/share/qucs/library/XyceDigital.lib" 0 "OR2" 1 "auto" 1 "ScaleFactor=5" 1>
|
||||
<SpLib X4 1 730 290 -72 49 0 0 "/home/mike/S4QC30SEPT2016/work/share/qucs/library/XyceDigital.lib" 0 "D2ABRIDGE" 1 "auto" 1 "ScaleFactor=5" 1>
|
||||
<GND * 1 790 290 0 0 0 0>
|
||||
<R_SPICE R1 1 790 260 15 -26 0 1 "47k" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<SpLib X7 1 0 180 -186 -35 0 0 "/home/mike/S4QC30SEPT2016/work/share/qucs/library/XyceDigital.lib" 0 "LOGIC1" 1 "auto" 1 "ScaleFactor=5" 1>
|
||||
<SpLib X9 1 100 140 -286 -113 0 0 "/home/mike/S4QC30SEPT2016/work/share/qucs/library/XyceDigital.lib" 0 "PATGENX4" 1 "auto" 1 "PulseFreq=1000 ScaleFactor=5" 1>
|
||||
<SpLib X8 1 0 310 -187 -35 0 0 "/home/mike/S4QC30SEPT2016/work/share/qucs/library/XyceDigital.lib" 0 "LOGIC1" 1 "auto" 1 "ScaleFactor=5" 1>
|
||||
<SpLib X10 1 100 270 -289 105 0 0 "/home/mike/S4QC30SEPT2016/work/share/qucs/library/XyceDigital.lib" 0 "PATGENX4" 1 "auto" 1 "PulseFreq=5000 ScaleFactor=5" 1>
|
||||
<SpiceModel SpiceModel1 1 -130 -160 -29 17 0 0 ".model DMOD DIG ( RLOAD=1000 CLOAD=1e-12 DELAY=20e-9 CLO=1e-12 CHI=1e-12" 1 "+ S0RLO=5 S0RHI=5 S0TSW=5e-9 S0VLO=-1 S0VHI=0.16 S1RLO=200 S1RHI=5 S1TSW=5e-9 " 1 "+ S1VLO=0.52 S1VHI=1 )" 1 "" 0 "Line_5=" 0>
|
||||
<.TR TR1 1 700 -70 0 84 0 0 "lin" 1 "0" 1 "1 ms" 1 "101" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<320 200 380 200 "nD3" 320 180 25 "">
|
||||
<320 180 380 180 "nD2" 320 160 21 "">
|
||||
<320 160 380 160 "nD1" 320 140 20 "">
|
||||
<320 140 380 140 "nD0" 320 120 21 "">
|
||||
<320 330 380 330 "nD7" 330 310 38 "">
|
||||
<320 310 380 310 "nD6" 330 290 35 "">
|
||||
<320 290 380 290 "nD5" 330 270 32 "">
|
||||
<320 270 380 270 "nD4" 330 250 33 "">
|
||||
<630 230 670 230 "" 0 0 0 "">
|
||||
<500 240 500 300 "" 0 0 0 "">
|
||||
<500 240 550 240 "" 0 0 0 "">
|
||||
<500 170 500 220 "" 0 0 0 "">
|
||||
<500 220 550 220 "" 0 0 0 "">
|
||||
<40 200 200 200 "" 0 0 0 "">
|
||||
<140 180 200 180 "" 0 0 0 "">
|
||||
<140 160 200 160 "" 0 0 0 "">
|
||||
<140 140 200 140 "" 0 0 0 "">
|
||||
<40 330 200 330 "nA7" 170 310 133 "">
|
||||
<140 310 200 310 "nA6" 170 290 34 "">
|
||||
<140 290 200 290 "nA5" 170 270 33 "">
|
||||
<140 270 200 270 "nA4" 170 250 35 "">
|
||||
<500 170 500 170 "nDI1" 490 120 0 "">
|
||||
<500 300 500 300 "nDI2" 510 310 0 "">
|
||||
<200 140 200 140 "nA0" 160 120 0 "">
|
||||
<200 160 200 160 "nA1" 160 140 0 "">
|
||||
<200 180 200 180 "nA2" 160 160 0 "">
|
||||
<200 200 200 200 "nA3" 160 180 0 "">
|
||||
<630 230 630 230 "nDout" 630 190 0 "">
|
||||
<790 230 790 230 "nAout" 780 190 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Time -190 839 1248 350 3 #c0c0c0 1 00 1 1678 1 11 1 0 1 1 1 0 1 2006 315 0 225 "" "" "">
|
||||
<"xyce/tran.V(NA0)" #0000ff 0 3 0 0 0>
|
||||
<"xyce/tran.V(NA1)" #ff0000 0 3 0 0 0>
|
||||
<"xyce/tran.V(NA2)" #ff00ff 0 3 0 0 0>
|
||||
<"xyce/tran.V(NA3)" #00ff00 0 3 0 0 0>
|
||||
<"xyce/tran.V(NA4)" #00ffff 0 3 0 0 0>
|
||||
<"xyce/tran.V(NA5)" #ffff00 0 3 0 0 0>
|
||||
<"xyce/tran.V(NA6)" #777777 0 3 0 0 0>
|
||||
<"xyce/tran.V(NA7)" #000000 0 3 0 0 0>
|
||||
<"xyce/tran.V(NDI1)" #0000ff 0 3 0 0 0>
|
||||
<"xyce/tran.V(NDI2)" #ff0000 0 3 0 0 0>
|
||||
<"xyce/tran.V(NDOUT)" #ff00ff 0 3 0 0 0>
|
||||
<"xyce/tran.V(NAOUT)" #00ff00 0 3 0 0 0>
|
||||
</Time>
|
||||
<Rect -200 982 1248 82 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
|
||||
<"xyce/tran.V(NDOUT)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect -200 1146 1249 86 3 #c0c0c0 1 00 1 0 0.0002 0.001 1 -0.522068 2 5.23788 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"xyce/tran.V(NAOUT)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Line 1120 590 0 250 #000000 3 1>
|
||||
<Line 215 -285 250 0 #000000 3 1>
|
||||
<Line 285 1355 250 0 #000000 3 1>
|
||||
<Line -330 650 0 250 #000000 3 1>
|
||||
</Paintings>
|
61
examples/xyce/XyceDigital/testCombLogic2.sch
Normal file
61
examples/xyce/XyceDigital/testCombLogic2.sch
Normal file
@ -0,0 +1,61 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=15,-50,1520,1663,1,0,840>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=testCombLogic2.dat>
|
||||
<DataDisplay=testCombLogic2.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=testCombLogic2.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<SpLib X28 1 1130 410 -109 57 0 0 "/home/mike/S4QC30SEPT2016/work/share/qucs/library/XyceDigital.lib" 0 "D2ABRIDGE" 1 "auto" 1 "ScaleFactor=5" 1>
|
||||
<GND * 1 1190 410 0 0 0 0>
|
||||
<R_SPICE R1 1 1190 380 15 -26 0 1 "47k" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<SpLib X27 1 990 330 -162 135 0 0 "/home/mike/S4QC30SEPT2016/work/share/qucs/library/XyceDigital.lib" 0 "MUX4TO1" 1 "auto" 1 "ScaleFactor=5" 1>
|
||||
<SpLib X31 1 820 270 -383 -81 0 0 "/home/mike/S4QC30SEPT2016/work/share/qucs/library/XyceDigital.lib" 0 "LOGIC0" 1 "auto" 1 "" 1>
|
||||
<SpLib X33 1 580 310 -356 -58 0 0 "/home/mike/S4QC30SEPT2016/work/share/qucs/library/XyceDigital.lib" 0 "PATGENX2" 1 "auto" 1 "PulseFreq=25k ScaleFactor=5" 1>
|
||||
<SpLib X29 1 850 360 -231 108 0 0 "/home/mike/S4QC30SEPT2016/work/share/qucs/library/XyceDigital.lib" 0 "A2DBRIDGEX4" 1 "auto" 1 "ScaleFactor=5" 1>
|
||||
<SpLib X30 1 850 320 -227 -128 0 0 "/home/mike/S4QC30SEPT2016/work/share/qucs/library/XyceDigital.lib" 0 "A2DBRIDGEX2" 1 "auto" 1 "ScaleFactor=5" 1>
|
||||
<SpLib X32 1 580 350 -353 -1 0 0 "/home/mike/S4QC30SEPT2016/work/share/qucs/library/XyceDigital.lib" 0 "PATGENX8" 1 "auto" 1 "PulseFreq=250k ScaleFactor=5" 1>
|
||||
<SpiceModel SpiceModel1 1 270 540 -29 17 0 0 ".model DMOD DIG ( RLOAD=1000 CLOAD=1e-12 DELAY=20e-9 CLO=1e-12 CHI=1e-12" 1 "+ S0RLO=5 S0RHI=5 S0TSW=5e-9 S0VLO=-1 S0VHI=0.16 S1RLO=200 S1RHI=5 S1TSW=5e-9 " 1 "+ S1VLO=0.52 S1VHI=1 )" 1 "" 0 "Line_5=" 0>
|
||||
<.TR TR1 1 1230 470 0 77 0 0 "lin" 1 "0" 1 "55us" 1 "101" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<860 290 910 290 "" 0 0 0 "">
|
||||
<620 410 790 410 "" 0 0 0 "">
|
||||
<620 390 790 390 "" 0 0 0 "">
|
||||
<620 370 790 370 "" 0 0 0 "">
|
||||
<620 350 790 350 "" 0 0 0 "">
|
||||
<620 330 790 330 "nAG1" 640 310 28 "">
|
||||
<620 310 790 310 "nAG0" 640 290 28 "">
|
||||
<1070 350 1070 350 "nDZ" 1080 290 0 "">
|
||||
<1190 350 1190 350 "nAZ" 1190 300 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 130 740 1262 61 3 #c0c0c0 1 00 1 0 0.0001 0.0006 1 -0.5 5 5.5 1 -1 2 1 315 0 225 "" "V(nAG0)" "">
|
||||
<"xyce/tran.V(NAG0)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 130 845 1267 49 3 #c0c0c0 1 00 1 0 0.0001 0.0006 1 -0.5 5 5.5 1 -1 2 1 315 0 225 "" "V(nAG1)" "">
|
||||
<"xyce/tran.V(NAG1)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 130 1280 1270 161 3 #c0c0c0 1 00 1 0 0.0001 0.0006 1 -0.495288 2 6 1 -1 1 1 315 0 225 "" "V(nAZ)" "">
|
||||
<"xyce/tran.V(NAZ)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 120 1050 1283 149 3 #c0c0c0 1 00 1 0 0.0001 0.0006 1 -0.0990787 0.5 1.08911 1 -1 1 1 315 0 225 "" "V(nDZ)" "">
|
||||
<"xyce/tran.V(NDZ)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Line 40 780 0 190 #000000 3 1>
|
||||
<Line 1480 790 0 190 #000000 3 1>
|
||||
<Line 575 65 190 0 #000000 3 1>
|
||||
<Line 665 1435 190 0 #000000 3 1>
|
||||
</Paintings>
|
72
examples/xyce/XyceDigital/testNAND2.sch
Normal file
72
examples/xyce/XyceDigital/testNAND2.sch
Normal file
@ -0,0 +1,72 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=25,-410,1580,1715,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=testNAND2.dat>
|
||||
<DataDisplay=testNAND2.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=testNAND2.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 1 740 280 0 0 0 0>
|
||||
<SpiceModel SpiceModel1 1 220 290 -29 17 0 0 ".model DMOD DIG ( RLOAD=1000 CLOAD=1e-12 DELAY=20e-9 CLO=1e-12 CHI=1e-12" 1 "+ S0RLO=5 S0RHI=5 S0TSW=5e-9 S0VLO=-1 S0VHI=0.16 S1RLO=200 S1RHI=5 S1TSW=5e-9 " 1 "+ S1VLO=0.52 S1VHI=1 )" 1 "" 0 "Line_5=" 0>
|
||||
<SpLib X6 1 390 220 105 -145 0 0 "/home/mike/S4QC30SEPT2016/work/share/qucs/library/XyceDigital.lib" 0 "A2DBRIDGEX2" 1 "auto" 1 "ScaleFactor=5" 1>
|
||||
<SpLib X5 1 520 220 192 -139 0 0 "/home/mike/S4QC30SEPT2016/work/share/qucs/library/XyceDigital.lib" 0 "NAND2" 1 "auto" 1 "ScaleFactor=5" 1>
|
||||
<SpLib X8 1 680 280 243 -193 0 0 "/home/mike/S4QC30SEPT2016/work/share/qucs/library/XyceDigital.lib" 0 "D2ABRIDGE" 1 "auto" 1 "ScaleFactor=5" 1>
|
||||
<SpLib X7 1 230 210 -59 -134 0 0 "/home/mike/S4QC30SEPT2016/work/share/qucs/library/XyceDigital.lib" 0 "PATGENX2" 1 "auto" 1 "PulseFreq=1e4 ScaleFactor=5" 1>
|
||||
<R_SPICE R1 1 740 250 15 -26 0 1 "47k" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<.TR TR1 1 1230 110 0 79 0 0 "lin" 1 "0" 1 "0.2 ms" 1 "101" 1 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<580 220 620 220 "" 0 0 0 "">
|
||||
<450 230 480 230 "" 0 0 0 "">
|
||||
<270 230 330 230 "nA1" 290 240 21 "">
|
||||
<450 210 480 210 "" 0 0 0 "">
|
||||
<270 210 330 210 "nA0" 290 170 22 "">
|
||||
<480 210 480 210 "nD0" 428 170 0 "">
|
||||
<480 230 480 230 "nD1" 438 240 0 "">
|
||||
<580 220 580 220 "nDout" 560 240 0 "">
|
||||
<740 220 740 220 "nAout" 660 270 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Time 200 658 1191 218 3 #c0c0c0 1 00 1 458 1 10 1 0 1 1 1 0 1 468 315 0 225 "" "" "">
|
||||
<"xyce/tran.V(NA0)" #0000ff 0 3 0 0 0>
|
||||
<"xyce/tran.V(NA1)" #ff0000 0 3 0 0 0>
|
||||
<"xyce/tran.V(ND0)" #ff00ff 0 3 0 0 0>
|
||||
<"xyce/tran.V(ND1)" #00ff00 0 3 0 0 0>
|
||||
<"xyce/tran.V(NDOUT)" #00ffff 0 3 0 0 0>
|
||||
<"xyce/tran.V(NAOUT)" #ffff00 0 3 0 0 0>
|
||||
</Time>
|
||||
<Rect 200 764 1192 51 3 #c0c0c0 1 00 1 0 5e-06 5e-05 1 -2 5 7 1 -1 2 1 315 0 225 "" "" "">
|
||||
<"xyce/tran.V(NA0)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 210 890 1181 63 3 #c0c0c0 1 00 1 0 2e-06 5e-05 1 -5e+07 2e+08 6e+08 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"xyce/tran.V(NA1)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 210 1029 1186 79 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
|
||||
<"xyce/tran.V(ND0)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 210 1173 1185 93 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
|
||||
<"xyce/tran.V(ND1)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 210 1340 1189 110 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
|
||||
<"xyce/tran.V(NDOUT)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 210 1511 1189 101 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
|
||||
<"xyce/tran.V(NAOUT)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Line 40 240 0 330 #000000 3 1>
|
||||
<Line 1540 280 0 330 #000000 3 1>
|
||||
<Line 615 1695 330 0 #000000 3 1>
|
||||
<Line 575 -55 330 0 #000000 3 1>
|
||||
</Paintings>
|
50
examples/xyce/XyceDigital/testPATGENX1.sch
Normal file
50
examples/xyce/XyceDigital/testPATGENX1.sch
Normal file
@ -0,0 +1,50 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=-40,-390,1866,1040,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=testPATGENX1.dat>
|
||||
<DataDisplay=testPATGENX1.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=testPATGENX1.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 1 550 270 0 0 0 0>
|
||||
<R_SPICE R1 1 550 230 15 -26 0 1 "4.7k" 1 "" 0 "" 0 "" 0 "" 0>
|
||||
<.TR TR1 1 750 100 0 77 0 0 "lin" 1 "0" 1 "5 ms" 1 "101" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
|
||||
<SpLib X5 1 210 260 -61 -31 0 0 "/home/mike/S4QC27SEPT2016/share/qucs/library/XyceDigital.lib" 0 "A2DBRIDGE" 1 "auto" 1 "ScaleFactor=5" 1>
|
||||
<SpLib X4 1 80 200 -29 -164 0 0 "/home/mike/S4QC27SEPT2016/share/qucs/library/XyceDigital.lib" 0 "PATGENX1" 1 "auto" 1 "PulseFreq=1k ScaleFactor=5" 1>
|
||||
<SpLib X6 1 420 260 -29 -164 0 0 "/home/mike/S4QC27SEPT2016/share/qucs/library/XyceDigital.lib" 0 "D2ABRIDGE" 1 "auto" 1 "ScaleFactor=5" 1>
|
||||
</Components>
|
||||
<Wires>
|
||||
<270 200 360 200 "" 0 0 0 "">
|
||||
<480 200 550 200 "" 0 0 0 "">
|
||||
<550 260 550 270 "" 0 0 0 "">
|
||||
<120 200 150 200 "nApulseIN" 110 150 14 "">
|
||||
<550 200 550 200 "nApulseOUT" 580 170 0 "">
|
||||
<270 200 270 200 "nDpulse" 300 150 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 160 449 766 79 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"xyce/tran.V(NAPULSEIN)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 160 619 764 89 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
|
||||
<"xyce/tran.V(NDPULSE)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 150 821 768 88 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
|
||||
<"xyce/tran.V(NAPULSEOUT)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Line -20 330 0 340 #000000 3 1>
|
||||
<Line 1110 290 0 340 #000000 3 1>
|
||||
<Line 380 1020 340 0 #000000 3 1>
|
||||
<Line 360 -90 340 0 #000000 3 1>
|
||||
</Paintings>
|
64
examples/xyce/XyceDigital/testPATGENX4.sch
Normal file
64
examples/xyce/XyceDigital/testPATGENX4.sch
Normal file
@ -0,0 +1,64 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=-40,10,1480,1380,1,0,120>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=testPATGENX4.dat>
|
||||
<DataDisplay=testPATGENX4.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=testPATGENX4.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Title>
|
||||
<FrameText1=Drawn By:>
|
||||
<FrameText2=Date:>
|
||||
<FrameText3=Revision:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<SpLib X4 1 640 210 -52 84 0 0 "/home/mike/S4QC30SEPT2016/work/share/qucs/library/XyceDigital.lib" 0 "A2DBRIDGEX4" 1 "auto" 1 "ScaleFactor=5" 1>
|
||||
<SpLib X3 1 440 200 -169 87 0 0 "/home/mike/S4QC30SEPT2016/work/share/qucs/library/XyceDigital.lib" 0 "PATGENX8" 1 "auto" 1 "PulseFreq=10000.0 ScaleFactor=5" 1>
|
||||
<.TR TR1 1 840 180 0 77 0 0 "lin" 1 "0" 1 "0.2m" 1 "101" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<480 260 580 260 "" 0 0 0 "">
|
||||
<480 240 580 240 "nA2" 530 220 36 "">
|
||||
<480 220 580 220 "nA1" 530 200 20 "">
|
||||
<480 200 580 200 "" 0 0 0 "">
|
||||
<700 200 700 200 "nD0" 730 170 0 "">
|
||||
<700 220 700 220 "nD1" 730 190 0 "">
|
||||
<700 240 700 240 "nD2" 730 210 0 "">
|
||||
<700 260 700 260 "nD3" 730 230 0 "">
|
||||
<480 200 480 200 "nA0" 510 180 0 "">
|
||||
<480 260 480 260 "nA3" 510 240 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 130 472 1108 60 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
|
||||
<"xyce/tran.V(ND0)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 130 579 1109 59 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
|
||||
<"xyce/tran.V(ND1)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Time 130 1173 1130 265 3 #c0c0c0 1 00 1 477 1 10 1 0 1 1 1 0 1 950 315 0 225 "" "" "">
|
||||
<"xyce/tran.V(NA0)" #0000ff 0 3 0 0 0>
|
||||
<"xyce/tran.V(NA1)" #ff0000 0 3 0 0 0>
|
||||
<"xyce/tran.V(NA2)" #ff00ff 0 3 0 0 0>
|
||||
<"xyce/tran.V(NA3)" #00ff00 0 3 0 0 0>
|
||||
<"xyce/tran.V(ND0)" #00ffff 0 3 0 0 0>
|
||||
<"xyce/tran.V(ND1)" #ffff00 0 3 0 0 0>
|
||||
<"xyce/tran.V(ND2)" #777777 0 3 0 0 0>
|
||||
<"xyce/tran.V(ND3)" #000000 0 3 0 0 0>
|
||||
</Time>
|
||||
<Rect 130 719 1118 60 3 #c0c0c0 1 00 1 0 5e-05 0.001 0 0 1 1 1 -1 2 1 315 0 225 "" "" "">
|
||||
<"xyce/tran.V(ND2)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
<Rect 130 848 1124 68 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
|
||||
<"xyce/tran.V(ND3)" #0000ff 2 3 0 0 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Line 0 490 0 360 #000000 3 1>
|
||||
<Line 1440 510 0 360 #000000 3 1>
|
||||
<Line 440 30 360 0 #000000 3 1>
|
||||
<Line 520 1360 360 0 #000000 3 1>
|
||||
</Paintings>
|
65
examples/xyce/hb-test.sch
Normal file
65
examples/xyce/hb-test.sch
Normal file
@ -0,0 +1,65 @@
|
||||
<Qucs Schematic 0.0.19>
|
||||
<Properties>
|
||||
<View=0,-310,1093,770,1,0,0>
|
||||
<Grid=10,10,1>
|
||||
<DataSet=hb-test.dat>
|
||||
<DataDisplay=hb-test.dpl>
|
||||
<OpenDisplay=1>
|
||||
<Script=hb-test.m>
|
||||
<RunScript=0>
|
||||
<showFrame=0>
|
||||
<FrameText0=Название>
|
||||
<FrameText1=Чертил:>
|
||||
<FrameText2=Дата:>
|
||||
<FrameText3=Версия:>
|
||||
</Properties>
|
||||
<Symbol>
|
||||
</Symbol>
|
||||
<Components>
|
||||
<GND * 1 80 390 0 0 0 0>
|
||||
<Diode D1 1 450 340 13 -26 0 1 "1e-15 A" 1 "1" 1 "0 fF" 1 "0.5" 0 "0.7 V" 0 "0.5" 0 "0.0 fF" 1 "0.0" 0 "2.0" 0 "0.0 Ohm" 1 "0.0 ps" 0 "0" 0 "0.0" 0 "1.0" 0 "1.0" 0 "0.7" 1 "1 mA" 0 "26.85" 0 "3.0" 0 "1.11" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "26.85" 0 "1.0" 0 "normal" 0>
|
||||
<R R1 1 140 300 -26 15 0 0 "100" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<R R3 0 350 350 15 -26 0 1 "100k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<C C1 0 190 350 17 -26 0 1 "1 pF" 1 "" 0 "neutral" 0>
|
||||
<.HB HB1 1 40 10 0 71 0 0 "1 MHz" 1 "17" 1 "1 pA" 1 "1 uV" 1 "0.001" 1 "150" 0>
|
||||
<R R2 1 320 300 -26 15 0 0 "100" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
|
||||
<IProbe Pr2 1 240 300 -26 16 0 0>
|
||||
<VProbe Pr1 1 490 250 28 -31 0 0>
|
||||
<GND * 1 500 270 0 0 0 0>
|
||||
<Vac V1 1 80 350 -70 -26 1 1 "4V" 1 "1 MHz" 1 "0" 0 "0" 0>
|
||||
</Components>
|
||||
<Wires>
|
||||
<80 380 80 390 "" 0 0 0 "">
|
||||
<80 300 110 300 "Node1" 110 250 7 "">
|
||||
<80 300 80 320 "" 0 0 0 "">
|
||||
<170 300 190 300 "" 0 0 0 "">
|
||||
<450 300 450 310 "" 0 0 0 "">
|
||||
<450 370 450 390 "" 0 0 0 "">
|
||||
<80 390 190 390 "" 0 0 0 "">
|
||||
<350 380 350 390 "" 0 0 0 "">
|
||||
<350 300 350 320 "" 0 0 0 "">
|
||||
<350 300 450 300 "Node3" 400 260 25 "">
|
||||
<350 390 450 390 "" 0 0 0 "">
|
||||
<190 300 190 320 "" 0 0 0 "">
|
||||
<190 390 350 390 "" 0 0 0 "">
|
||||
<190 380 190 390 "" 0 0 0 "">
|
||||
<190 300 210 300 "" 0 0 0 "">
|
||||
<270 300 290 300 "" 0 0 0 "">
|
||||
<450 270 480 270 "" 0 0 0 "">
|
||||
<450 270 450 300 "" 0 0 0 "">
|
||||
</Wires>
|
||||
<Diagrams>
|
||||
<Rect 343 133 452 173 3 #c0c0c0 1 00 1 -8e+06 2e+06 8e+06 1 -0.237875 1 2.20344 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"xyce/NODE1.Vb" #0000ff 0 3 0 6 0>
|
||||
<"xyce/NODE3.Vb" #ff0000 0 3 0 6 0>
|
||||
</Rect>
|
||||
<Rect 99 692 581 232 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
|
||||
<"xyce/VPR2.Vb" #0000ff 0 3 0 6 0>
|
||||
</Rect>
|
||||
<Rect 630 410 240 160 3 #c0c0c0 1 00 1 -1 0.5 1 1 -1 1 1 1 -1 1 1 315 0 225 "" "" "">
|
||||
<"xyce/PR1.Vb" #0000ff 0 3 0 6 0>
|
||||
</Rect>
|
||||
</Diagrams>
|
||||
<Paintings>
|
||||
<Text 60 -160 12 #000000 0 "This example shows how to use Harmonic balance \n(HB) simulation with Qucs and Xyce. You can compare\nHB simulation results from Qucs and Xyce. \n\nNOTE: This example could be run only with Xyce and Qucs">
|
||||
</Paintings>
|
Loading…
x
Reference in New Issue
Block a user