Si7li/ltspice-spice-circuits huggingface dataset:
* Z:\home\khalils\Downloads\files\data\raw_asc\8f89e744c3b9_OP-Amp_Inverting_Amplifier.asc
* Generated by LTspice 26.0.1 for Windows.
* Op_Amp_Non_Inverting_Amplifier
V-Vdd N003 0 -12V
V+Vss N002 0 12V
Ri Vn 0 1.1K
Rf N001 Vn 10K
Vin Vp 0 SINE(0 1 1K)
XU1 Vp Vn N002 N003 N001 LM741/NS ;pnba In+)In-)V+)V-)OUT
.tran 0 100ms 85ms 10ms
.include C:\Users\Vinod\Documents\LTspiceXVII\LM741.MOD
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE 176 0 144 0
WIRE 432 0 256 0
WIRE 544 96 224 96
WIRE 224 128 224 96
WIRE 16 144 -80 144
WIRE 144 144 144 0
WIRE 144 144 96 144
WIRE 160 144 144 144
WIRE 192 144 160 144
WIRE 432 160 432 0
WIRE 432 160 256 160
WIRE 480 160 432 160
WIRE 144 176 112 176
WIRE 192 176 144 176
WIRE 544 208 544 176
WIRE 656 208 544 208
WIRE -80 224 -80 144
WIRE 544 240 544 208
WIRE 656 240 656 208
WIRE 112 272 112 176
WIRE 224 336 224 192
WIRE 544 336 544 320
WIRE 544 336 224 336
WIRE 112 416 112 352
DATAFLAG 416 160 ""
DATAFLAG 416 160 ""
SYMBOL res 272 -16 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName Rf
SYMATTR Value 10K
SYMBOL Misc\\signal 112 256 R0
SYMATTR InstName Vin
SYMBOL voltage 544 80 R0
SYMATTR InstName +Vss
SYMATTR Value 12V
SYMBOL voltage 544 336 M180
WINDOW 0 24 96 Left 2
WINDOW 3 24 16 Left 2
SYMATTR InstName -Vdd
SYMATTR Value -12V
SYMBOL res 112 128 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName Ri
SYMATTR Value 1.1K
SYMBOL OpAmps\\opamp2 224 96 R0
SYMATTR InstName U1
SYMATTR Value LM741/NS
FLAG -80 224 0
FLAG 112 416 0
FLAG 656 240 0
FLAG 160 144 Vn
FLAG 144 176 Vp
FLAG 448 192 Vout
TEXT -104 440 Left 2 !.tran 0 100ms 85ms 10ms
TEXT -144 -80 Left 5 ;Op_Amp_Non_Inverting_Amplifier
TEXT -104 512 Left 2 !.include C:\\Users\\Vinod\\Documents\\LTspiceXVII\\LM741.MOD
* Z:\home\khalils\Downloads\files\data\raw_asc\LT3154.asc
* Generated by LTspice 26.0.1 for Windows.
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\PowerProducts\LT3154.asy)
C6 OUT 0 100 Rser=10m
XU1 0 N002 OUT IN IN N005 N003 0 N004 IN 0 OUT N001 IN LT3154 ;pnba PGND)SW2)PVout)EN)SS)Vc)FB)GND)Rt)Vin)Mode/Sync)Vout)SW1)PVin
R2 N003 0 100k
R4 N006 N005 60.4k
R3 N004 0 90.9k
V1 IN 0 5
Rload OUT 0 .6
R1 OUT N003 232k
C5 N006 0 820p
L1 N001 N002 1 Rser=80m
.tran 3m startup
.lib LT3154.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1736 680
WIRE 192 -128 160 -128
WIRE 288 -128 272 -128
WIRE 160 -80 160 -128
WIRE 288 -80 288 -128
WIRE 48 -16 -48 -16
WIRE 64 -16 48 -16
WIRE 400 -16 384 -16
WIRE 464 -16 400 -16
WIRE 640 -16 464 -16
WIRE 736 -16 640 -16
WIRE -48 0 -48 -16
WIRE 464 0 464 -16
WIRE 736 16 736 -16
WIRE 640 32 640 -16
WIRE 48 64 48 -16
WIRE 64 64 48 64
WIRE 400 64 400 -16
WIRE 400 64 384 64
WIRE -48 96 -48 80
WIRE 48 144 48 64
WIRE 64 144 48 144
WIRE 464 144 464 80
WIRE 464 144 384 144
WIRE 512 144 464 144
WIRE 640 144 640 96
WIRE 640 144 592 144
WIRE 736 144 736 96
WIRE 736 144 640 144
WIRE 736 160 736 144
WIRE 48 224 48 144
WIRE 64 224 48 224
WIRE 416 224 384 224
WIRE 512 224 496 224
WIRE 64 304 48 304
WIRE 416 304 384 304
WIRE 528 304 496 304
WIRE 608 304 592 304
WIRE 160 384 160 368
WIRE 288 384 288 368
SYMBOL res 400 240 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R3
SYMATTR Value 90.9k
SYMBOL LT3154 224 144 R0
SYMATTR InstName U1
SYMBOL ind 176 -112 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 5 56 VBottom 2
SYMATTR InstName L1
SYMATTR Value 1
SYMATTR SpiceLine Rser=80m
SYMBOL res 496 160 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R2
SYMATTR Value 100k
SYMBOL res 448 -16 R0
SYMATTR InstName R1
SYMATTR Value 232k
SYMBOL res 512 288 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value 60.4k
SYMBOL cap 528 320 R270
WINDOW 0 32 32 VTop 2
WINDOW 3 0 32 VBottom 2
WINDOW 39 -28 32 VBottom 2
SYMATTR InstName C5
SYMATTR Value 820p
SYMBOL res 720 0 R0
SYMATTR InstName Rload
SYMATTR Value .6
SYMBOL cap 624 32 R0
SYMATTR InstName C6
SYMATTR Value 100
SYMATTR SpiceLine Rser=10m
SYMBOL voltage -48 -16 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 5
FLAG 160 384 0
FLAG 288 384 0
FLAG -48 96 0
FLAG 48 304 0
FLAG 736 160 0
FLAG -48 -16 IN
FLAG 736 -16 OUT
FLAG 512 224 0
FLAG 608 304 0
TEXT 608 392 Left 2 !.tran 3m startup
* Z:\home\khalils\Downloads\files\data\raw_asc\OP492.asc
* Generated by LTspice 26.0.1 for Windows.
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\OP492.asy)
Vin IN 0 SINE(0 1 10K)
XU1 IN N001 +V -V OUT OP492 ;pnba In+)In-)V+)V-)OUT
R2 OUT N001 10K
V2 -V 0 -15
Rload OUT 0 10K
R1 N001 0 10K
V1 +V 0 15
.tran 1m
.lib ADI.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1240 700
WIRE 432 -1216 416 -1216
WIRE 528 -1216 512 -1216
WIRE 544 -1216 528 -1216
WIRE 640 -1216 624 -1216
WIRE 128 -1168 128 -1184
WIRE 240 -1168 240 -1184
WIRE 528 -1120 528 -1216
WIRE 544 -1120 528 -1120
WIRE 640 -1104 640 -1216
WIRE 640 -1104 608 -1104
WIRE 736 -1104 640 -1104
WIRE 544 -1088 384 -1088
WIRE 736 -1088 736 -1104
WIRE 128 -1072 128 -1088
WIRE 240 -1072 240 -1088
WIRE 384 -1072 384 -1088
WIRE 736 -992 736 -1008
WIRE 384 -976 384 -992
SYMBOL res 528 -1232 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 10K
SYMBOL Opamps\\OP492 576 -1168 R0
SYMATTR InstName U1
SYMBOL voltage 384 -1088 R0
WINDOW 123 24 146 Left 2
WINDOW 39 24 125 Left 2
SYMATTR InstName Vin
SYMATTR Value SINE(0 1 10K)
SYMBOL res 640 -1232 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 10K
SYMBOL voltage 240 -1184 R0
WINDOW 123 24 146 Left 2
WINDOW 39 24 125 Left 2
SYMATTR InstName V2
SYMATTR Value -15
SYMBOL res 720 -1104 R0
SYMATTR InstName Rload
SYMATTR Value 10K
SYMBOL voltage 128 -1184 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V1
SYMATTR Value 15
FLAG 128 -1184 +V
FLAG 128 -1072 0
FLAG 384 -976 0
FLAG 736 -1104 OUT
FLAG 384 -1088 IN
FLAG 576 -1136 +V
FLAG 240 -1184 -V
FLAG 576 -1072 -V
FLAG 416 -1216 0
FLAG 736 -992 0
FLAG 240 -1072 0
TEXT 784 -896 Left 2 !.tran 1m
* Z:\home\khalils\Downloads\files\data\raw_asc\LT1097.asc
* Generated by LTspice 26.0.1 for Windows.
V1 +V 0 15
V2 -V 0 -15
R1 OUT N001 50K
V3 IN- IN+ SINE(0 1 100)
XU1 N002 N001 +V -V OUT LT1097 ;pnba In+)In-)V+)V-)OUT
R3 N001 IN- 50K
R2 N002 IN+ 50K
R4 0 N002 50K
V4 IN+ 0 SINE(0 27 1K)
.tran 30m
* 27V Common Mode Range Difference Amplifier
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\LT1097.asy)
.lib LTC.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 896 680
WIRE -64 96 -144 96
WIRE -32 96 -64 96
WIRE 128 96 48 96
WIRE 144 96 128 96
WIRE 256 96 224 96
WIRE -384 160 -384 144
WIRE -288 160 -288 144
WIRE -144 176 -144 96
WIRE 192 208 192 192
WIRE 128 224 128 96
WIRE 160 224 128 224
WIRE 256 240 256 96
WIRE 256 240 224 240
WIRE 288 240 256 240
WIRE -384 256 -384 240
WIRE -288 256 -288 240
WIRE 160 256 128 256
WIRE 192 288 192 272
WIRE -144 368 -144 256
WIRE -64 368 -144 368
WIRE 0 368 -64 368
WIRE 128 368 128 256
WIRE 128 368 80 368
WIRE 144 368 128 368
WIRE 256 368 224 368
WIRE -144 384 -144 368
WIRE -144 480 -144 464
FLAG -288 256 0
FLAG 192 192 +V
FLAG -288 144 +V
FLAG 192 288 -V
FLAG -384 256 0
FLAG -384 144 -V
FLAG -144 480 0
FLAG 256 368 0
FLAG 288 240 OUT
FLAG -64 96 IN-
FLAG -64 368 IN+
SYMBOL voltage -288 144 R0
SYMATTR InstName V1
SYMATTR Value 15
SYMBOL voltage -384 144 R0
SYMATTR InstName V2
SYMATTR Value -15
SYMBOL res 240 80 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 50K
SYMBOL voltage -144 160 R0
SYMATTR InstName V3
SYMATTR Value SINE(0 1 100)
SYMBOL opamps\\LT1097 192 176 R0
SYMATTR InstName U1
SYMBOL res 64 80 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value 50K
SYMBOL res 96 352 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 50K
SYMBOL res 240 352 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value 50K
SYMBOL voltage -144 368 R0
SYMATTR InstName V4
SYMATTR Value SINE(0 27 1K)
TEXT 176 448 Left 2 !.tran 30m
TEXT 56 48 Bottom 2 ;27V Common Mode Range Difference Amplifier
* Z:\home\khalils\Downloads\files\data\raw_asc\ADA4661-2.asc
* Generated by LTspice 26.0.1 for Windows.
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\ADA4661-2.asy)
R1 N001 0 10K
V2 -V 0 -9
V1 +V 0 9
Vin IN 0 SINE(0 1 1K)
XU1 IN N001 +V -V OUT ADA4661-2 ;pnba In+)In-)V+)V-)OUT
R2 OUT N001 10K
Rload OUT 0 10K
.tran 10m
.lib ADA4661-2.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1240 700
WIRE 432 -1216 416 -1216
WIRE 528 -1216 512 -1216
WIRE 544 -1216 528 -1216
WIRE 640 -1216 624 -1216
WIRE 144 -1152 144 -1168
WIRE 256 -1152 256 -1168
WIRE 528 -1120 528 -1216
WIRE 544 -1120 528 -1120
WIRE 640 -1104 640 -1216
WIRE 640 -1104 608 -1104
WIRE 752 -1104 640 -1104
WIRE 544 -1088 432 -1088
WIRE 752 -1088 752 -1104
WIRE 432 -1072 432 -1088
WIRE 144 -1056 144 -1072
WIRE 256 -1056 256 -1072
WIRE 752 -992 752 -1008
WIRE 432 -976 432 -992
SYMBOL ADA4661-2 576 -1168 R0
SYMATTR InstName U1
SYMBOL voltage 144 -1168 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V1
SYMATTR Value 9
SYMBOL res 736 -1104 R0
SYMATTR InstName Rload
SYMATTR Value 10K
SYMBOL res 640 -1232 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 10K
SYMBOL voltage 432 -1088 R0
WINDOW 123 24 146 Left 2
WINDOW 39 24 125 Left 2
SYMATTR InstName Vin
SYMATTR Value SINE(0 1 1K)
SYMBOL voltage 256 -1168 R0
WINDOW 123 24 146 Left 2
WINDOW 39 24 125 Left 2
SYMATTR InstName V2
SYMATTR Value -9
SYMBOL res 528 -1232 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 10K
FLAG 144 -1168 +V
FLAG 144 -1056 0
FLAG 432 -976 0
FLAG 752 -1104 OUT
FLAG 432 -1088 IN
FLAG 576 -1136 +V
FLAG 256 -1168 -V
FLAG 576 -1072 -V
FLAG 416 -1216 0
FLAG 752 -992 0
FLAG 256 -1056 0
TEXT 704 -960 Left 2 !.tran 10m
* Z:\home\khalils\Downloads\files\data\raw_asc\0e9979d6cb0d_manual3b.asc
* Generated by LTspice 26.0.1 for Windows.
C1 N003 N004 70p
R3 N002 N006 50
Vz N004 o AC {0.5*z*(z-1)}
R2 o N007 2.7k
L1 N002 N003 150n
Ey y 0 N006 o 1
VP N001 0 5
VN 0 N007 5
V5 N005 N004 0
Vi N006 0 AC {1-z*z}
CL 0 o 250p
rm N003 N005 16
B8 N001 N003 I=I(V5)
.ac dec 100 10k 100G
.param z=0
.step param z list -1 0
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 804
WIRE 672 -96 272 -96
WIRE 272 -48 272 -96
WIRE 672 32 672 -96
WIRE -16 96 -96 96
WIRE 112 96 64 96
WIRE 272 96 272 32
WIRE 272 96 112 96
WIRE 272 128 272 96
WIRE 112 144 112 96
WIRE -96 160 -96 96
WIRE 112 272 112 208
WIRE 144 272 112 272
WIRE 176 272 144 272
WIRE 272 272 272 208
WIRE 272 272 256 272
WIRE 144 352 144 272
WIRE 672 432 672 112
WIRE 768 432 672 432
WIRE 768 464 768 432
WIRE 464 480 384 480
WIRE 544 480 464 480
WIRE 672 480 672 432
WIRE 672 480 608 480
WIRE -32 496 -64 496
WIRE 0 496 -32 496
WIRE 112 496 80 496
WIRE 112 512 112 496
WIRE -96 544 -96 240
WIRE 16 544 -96 544
WIRE 144 544 144 432
WIRE 144 544 64 544
WIRE 288 544 144 544
WIRE 384 544 384 480
WIRE 384 544 288 544
WIRE -96 592 -96 544
WIRE 672 592 672 480
WIRE 288 608 288 544
WIRE 288 752 288 688
WIRE 672 752 672 672
WIRE 672 752 288 752
WIRE -96 784 -96 672
SYMBOL bi 272 -48 R0
SYMATTR InstName B8
SYMATTR Value I=I(V5)
SYMBOL cap 608 464 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName CL
SYMATTR Value 250p
SYMBOL res -112 144 R0
SYMATTR InstName R3
SYMATTR Value 50
SYMBOL voltage 672 576 R0
SYMATTR InstName VN
SYMATTR Value 5
SYMBOL voltage 272 272 R90
WINDOW 0 -32 56 VBottom 2
WINDOW 3 -4 56 VBottom 2
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V5
SYMATTR Value 0
SYMBOL res 272 592 R0
SYMATTR InstName R2
SYMATTR Value 2.7k
SYMBOL voltage 144 336 M0
WINDOW 123 24 -12 Left 2
WINDOW 39 0 0 Left 2
SYMATTR Value2 AC {0.5*z*(z-1)}
SYMATTR InstName Vz
SYMATTR Value ""
SYMBOL res 256 112 R0
SYMATTR InstName rm
SYMATTR Value 16
SYMBOL e -16 496 R270
SYMATTR InstName Ey
SYMATTR Value 1
SYMBOL voltage -96 576 R0
WINDOW 123 24 132 Left 2
WINDOW 39 0 0 Left 2
SYMATTR Value2 AC {1-z*z}
SYMATTR InstName Vi
SYMATTR Value ""
SYMBOL ind -32 112 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 5 56 VBottom 2
SYMATTR InstName L1
SYMATTR Value 150n
SYMBOL cap 96 144 R0
SYMATTR InstName C1
SYMATTR Value 70p
SYMBOL voltage 672 16 R0
SYMATTR InstName VP
SYMATTR Value 5
FLAG -96 784 0
FLAG 112 512 0
FLAG -32 496 y
FLAG 464 480 o
FLAG 768 464 0
TEXT -496 296 Left 2 !.ac dec 100 10k 100G
TEXT -496 216 Left 2 !.param z=0
TEXT -496 256 Left 2 !.step param z list -1 0
* Z:\tmp\asc_dec_bjh7r6w2\03456b8ddb9b_rcosc_03_04_02_vin_pwm_vout_dec0.asc
* Generated by LTspice 26.0.1 for Windows.
XU1 N004 N001 +VCC -VCC N003 LM741 ;pnba In+)In-)V+)V-)OUT
V3 N006 0 SINE(0 1 10)
V2 0 -VCC 12
V1 +VCC 0 12
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1764 680
WIRE -256 -160 -256 -192
WIRE 16 -112 16 -240
WIRE 96 -112 16 -112
WIRE 352 -112 176 -112
WIRE -256 -48 -256 -80
WIRE -176 -48 -256 -48
WIRE -256 -16 -256 -48
WIRE -176 -16 -176 -48
WIRE 208 16 208 -16
WIRE 208 48 208 16
WIRE 16 64 16 -112
WIRE 80 64 16 64
WIRE 176 64 80 64
WIRE 496 80 496 -112
WIRE 496 80 240 80
WIRE 176 96 128 96
WIRE 496 96 496 80
WIRE -256 112 -256 64
WIRE 208 144 208 112
WIRE 16 176 16 64
WIRE 208 176 208 144
WIRE 832 176 832 160
WIRE 80 192 80 64
WIRE 800 192 80 192
WIRE 128 208 128 96
WIRE 496 208 496 176
WIRE 496 208 128 208
WIRE 960 208 864 208
WIRE 496 224 496 208
WIRE 800 224 672 224
WIRE 672 240 672 224
WIRE 832 272 832 240
WIRE 832 304 832 272
WIRE 496 336 496 304
WIRE 496 336 16 336
WIRE 672 336 672 320
WIRE 672 336 496 336
WIRE 1136 336 672 336
WIRE 496 368 496 336
SYMBOL Opamps\\opamp2 208 16 R0
SYMATTR InstName U1
SYMATTR Value LM741
SYMBOL voltage 672 224 R0
WINDOW 0 36 39 Left 2
WINDOW 3 36 95 Left 2
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V3
SYMATTR Value SINE(0 1 10)
SYMBOL Misc\\battery -256 -32 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V2
SYMATTR Value 12
SYMBOL Misc\\battery -256 -176 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V1
SYMATTR Value 12
FLAG -176 -16 0
FLAG -256 -192 +VCC
FLAG -256 112 -VCC
FLAG 208 16 +VCC
FLAG 208 144 -VCC
FLAG 496 368 0
FLAG 832 272 -VCC
FLAG 832 160 +VCC
* Z:\home\khalils\Downloads\files\data\raw_asc\3b826e4cc36f_TYPE2.asc
* Generated by LTspice 26.0.1 for Windows.
* Type 2 Compensator
* target gain at fz1\nzero frequency(Hz)\npole frequency(Hz)\nmax ouput voltage(V)\nmin output voltage(V)\nopen loop gain
* feedback
* reference
* 2024-12-29
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\UniversalOpAmp2.asy)
B1 N003 0 V=V(fb)
R2 N001 N003 {R2}
C1 ve N002 {C1}
XU1 ref N001 +V -V ve level2 Avol={avol} GBW=10Meg Slew=10Meg Ilimit=25m Rail=0 Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
C2 ve N001 {C2}
V3 -V 0 {vl}
R1 N002 N001 {R1}
V2 +V 0 {vh}
.lib opamp.sub
.param g=1
.param fz1=1k
.param fp1=20k
.param vh=5
.param vl=0
.param avol=100k
.param R1=({R2}*{g})
.param C1=1/(2*PI*{R1}*{fz1})
.param C2=1/(2*PI*{R1}*{fp1})
.param R2=100k
.ic V(ve)=0
.lib UniversalOpAmp2.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1008 680
WIRE 464 -144 464 -160
WIRE 576 -144 576 -160
WIRE 464 -48 464 -64
WIRE 576 -48 576 -64
WIRE 192 -32 96 -32
WIRE 368 -32 256 -32
WIRE 96 64 96 -32
WIRE 144 64 96 64
WIRE 256 64 224 64
WIRE 368 64 368 -32
WIRE 368 64 320 64
WIRE 240 128 240 112
WIRE -208 144 -272 144
WIRE -32 144 -144 144
WIRE 96 144 96 64
WIRE 96 144 48 144
WIRE 208 144 96 144
WIRE 368 160 368 64
WIRE 368 160 272 160
WIRE 880 160 368 160
WIRE -144 176 -144 144
WIRE 208 176 128 176
WIRE 240 208 240 192
WIRE -144 272 -144 256
WIRE 128 336 128 176
WIRE 128 336 -256 336
IOPIN -272 144 In
IOPIN -256 336 In
IOPIN 880 160 Out
SYMBOL bv -144 160 R0
SYMATTR InstName B1
SYMATTR Value V=V(fb)
SYMBOL cap 320 48 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C1
SYMATTR Value {C1}
SYMBOL voltage 464 -160 R0
SYMATTR InstName V2
SYMATTR Value {vh}
SYMBOL UniversalOpAmp2 240 160 R0
WINDOW 123 34 49 Left 2
WINDOW 39 36 78 Left 2
WINDOW 40 32 106 Left 2
SYMATTR Value2 Avol={avol} GBW=10Meg Slew=10Meg
SYMATTR InstName U1
SYMBOL res 240 48 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value {R1}
SYMBOL cap 256 -48 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C2
SYMATTR Value {C2}
SYMBOL voltage 576 -160 R0
SYMATTR InstName V3
SYMATTR Value {vl}
SYMBOL res 64 128 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value {R2}
FLAG -272 144 fb
FLAG -256 336 ref
FLAG -144 272 0
FLAG 880 160 ve
FLAG 576 -48 0
FLAG 464 -48 0
FLAG 464 -160 +V
FLAG 576 -160 -V
FLAG 240 112 +V
FLAG 240 208 -V
TEXT 272 184 Left 2 !.lib opamp.sub
TEXT -336 -224 Left 2 !.param g=1\n.param fz1=1k\n.param fp1=20k\n.param vh=5\n.param vl=0\n.param avol=100k
TEXT 416 72 Left 2 !.param R1=({R2}*{g})\n.param C1=1/(2*PI*{R1}*{fz1})\n.param C2=1/(2*PI*{R1}*{fp1})
TEXT -352 -288 Left 4 ;Type 2 Compensator
TEXT -80 208 Left 2 !.param R2=100k
TEXT -104 -224 Left 2 ;target gain at fz1\nzero frequency(Hz)\npole frequency(Hz)\nmax ouput voltage(V)\nmin output voltage(V)\nopen loop gain
TEXT -312 112 Left 2 ;feedback
TEXT -312 304 Left 2 ;reference
TEXT 656 176 Left 2 !.ic V(ve)=0
TEXT 448 -264 Left 2 ;2024-12-29
* Z:\home\khalils\Downloads\files\data\raw_asc\LTC3310.asc
* Generated by LTspice 26.0.1 for Windows.
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\PowerProducts\LTC3310.asy)
R3 OUT N001 500K
C5 OUT N004 15p
C1 OUT 0 47
R5 N007 0 274K
L1 N002 OUT 220n Rser=2m
C2 N003 0 4.7n
R2 N004 0 100K
XU1 IN IN N002 N004 0 0 N007 N001 IN N006 N003 LTC3310 ;pnba Vin)EN)SW)FB)Agnd)Pgnd)Rt)Pgood)Mode/Sync)Ith)SSTT
C3 N005 0 220p
R4 N006 N005 10K
V1 IN 0 5
R1 OUT N004 562K
Rload OUT 0 .5
.tran .4m startup
.lib LTC3310.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 2648 1864
WIRE 1536 1248 1376 1248
WIRE 1712 1248 1536 1248
WIRE 1376 1264 1376 1248
WIRE 1712 1280 1712 1248
WIRE 1536 1328 1536 1248
WIRE 1552 1328 1536 1328
WIRE 1904 1328 1872 1328
WIRE 2016 1328 1984 1328
WIRE 1376 1360 1376 1344
WIRE 1536 1424 1536 1328
WIRE 1552 1424 1536 1424
WIRE 1904 1424 1872 1424
WIRE 2016 1424 2016 1328
WIRE 2016 1424 1984 1424
WIRE 2144 1424 2016 1424
WIRE 2224 1424 2144 1424
WIRE 2304 1424 2224 1424
WIRE 2144 1440 2144 1424
WIRE 2224 1440 2224 1424
WIRE 2304 1440 2304 1424
WIRE 1472 1520 1456 1520
WIRE 1552 1520 1536 1520
WIRE 2016 1520 2016 1504
WIRE 2016 1520 1872 1520
WIRE 2144 1520 2144 1504
WIRE 2144 1520 2016 1520
WIRE 2016 1536 2016 1520
WIRE 2224 1536 2224 1504
WIRE 2304 1536 2304 1520
WIRE 1424 1616 1360 1616
WIRE 1552 1616 1504 1616
WIRE 1904 1616 1872 1616
WIRE 1360 1632 1360 1616
WIRE 1904 1632 1904 1616
WIRE 2016 1632 2016 1616
WIRE 1648 1680 1648 1664
WIRE 1776 1680 1776 1664
WIRE 1360 1712 1360 1696
WIRE 1904 1728 1904 1712
SYMBOL res 2288 1424 R0
SYMATTR InstName Rload
SYMATTR Value .5
SYMBOL ind 1888 1440 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 5 56 VBottom 2
SYMATTR InstName L1
SYMATTR Value 220n
SYMATTR SpiceLine Rser=2m
SYMBOL cap 1344 1632 R0
SYMATTR InstName C3
SYMATTR Value 220p
SYMBOL cap 2128 1440 R0
SYMATTR InstName C5
SYMATTR Value 15p
SYMBOL res 1888 1616 R0
SYMATTR InstName R5
SYMATTR Value 274K
SYMBOL cap 1536 1504 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C2
SYMATTR Value 4.7n
SYMBOL cap 2208 1440 R0
SYMATTR InstName C1
SYMATTR Value 47
SYMBOL RES 2000 1408 R0
SYMATTR InstName R1
SYMATTR Value 562K
SYMBOL res 1520 1600 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value 10K
SYMBOL VOLTAGE 1376 1248 R0
SYMATTR Value 5
SYMATTR InstName V1
SYMBOL res 2000 1312 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value 500K
SYMBOL LTC3310 1712 1472 R0
SYMATTR InstName U1
SYMBOL res 2000 1520 R0
SYMATTR InstName R2
SYMATTR Value 100K
FLAG 1776 1680 0
FLAG 1648 1680 0
FLAG 1376 1360 0
FLAG 2304 1536 0
FLAG 2016 1632 0
FLAG 1456 1520 0
FLAG 2304 1424 OUT
FLAG 1376 1248 IN
FLAG 1360 1712 0
FLAG 2224 1536 0
FLAG 1904 1728 0
TEXT 2152 1640 Left 2 !.tran .4m startup
* Z:\home\khalils\Downloads\files\data\raw_asc\12a60b300000_scheme2.asc
* Generated by LTspice 26.0.1 for Windows.
XVS1 N002 N001 N003 EC103D2 ;pnba A)G)K
XVS2 N005 N006 N003 EC103D2 ;pnba A)G)K
RH 0 N004 10
VG2 N006 N003 PULSE(0 5 {delay+T/2} 0 0 {width} {T})
VG1 N001 N003 PULSE(0 5 {delay} 0 0 {width} {T})
V1 N002 0 SINE(0 100 {f} 0)
V2 0 N005 SINE(0 100 {f} 0)
L1 N003 N004 20m
.inc "C:\Users\alexe\study\electronic-devices-labs\lib\Thyristor_SCR.lib"
.param f=50 T=1/f
.param delay=alpha*T/360
.param width=50u
.param alpha=150
.tran 0.1
.backanno
.end

* LTspice schematic (.asc):
Version 4.1
SHEET 1 1252 680
WIRE -80 -288 -224 -288
WIRE -80 -272 -80 -288
WIRE -224 -144 -224 -288
WIRE -288 -96 -432 -96
WIRE -80 -96 -80 -192
WIRE -80 -96 -224 -96
WIRE 224 -96 -80 -96
WIRE -432 80 -432 -96
WIRE -432 208 -432 160
WIRE -432 208 -512 208
WIRE -336 208 -432 208
WIRE -224 208 -256 208
WIRE -80 208 -80 -96
WIRE -80 208 -144 208
WIRE 224 208 224 -96
WIRE -432 224 -432 208
WIRE -432 320 -432 304
WIRE -176 320 -432 320
WIRE -80 320 -80 208
WIRE -80 320 -112 320
WIRE 224 368 224 288
WIRE 224 368 -112 368
FLAG -512 208 0
SYMBOL Misc\\SCR -288 -112 M90
SYMATTR InstName VS1
SYMATTR Value EC103D2
SYMBOL Misc\\SCR -176 336 R270
SYMATTR InstName VS2
SYMATTR Value EC103D2
SYMBOL res -352 192 M90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName RH
SYMATTR Value 10
SYMBOL voltage 224 304 M180
WINDOW 0 24 96 Left 2
WINDOW 3 24 16 Left 2
SYMATTR InstName G2
SYMATTR Value PULSE(0 5 {delay+T/2} 0 0 {width} {T})
SYMBOL voltage -80 -288 R0
SYMATTR InstName G1
SYMATTR Value PULSE(0 5 {delay} 0 0 {width} {T})
SYMBOL voltage -432 64 M0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value SINE(0 100 {f} 0)
SYMBOL voltage -432 208 M0
SYMATTR InstName V2
SYMATTR Value SINE(0 100 {f} 0)
SYMBOL ind -128 192 R90
WINDOW 0 5 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName L1
SYMATTR Value 20m
TEXT 320 88 Left 2 !.inc "C:\\Users\\alexe\\study\\electronic-devices-labs\\lib\\Thyristor_SCR.lib"
TEXT 320 112 Left 2 !.param f=50 T=1/f
TEXT 320 136 Left 2 !.param delay=alpha*T/360
TEXT 320 160 Left 2 !.param width=50u
TEXT 320 184 Left 2 !.param alpha=150
TEXT 320 208 Left 2 !.tran 0.1