Si7li/ltspice-spice-circuits huggingface dataset:
* Z:\tmp\asc_dec_bjh7r6w2\00a7a0fa317c_Ad534_Opamp_dec1.asc
* Generated by LTspice 26.0.1 for Windows.
R1B N001 0 10K tol=1
Cx1 N005 N006 20pF
Vin N002 0 SINE(0 5.39 100k) AC 1 0
Rc1 N004 N002 100K tol=1
XU7 Vdet N001 V+ V- Vamp level2 Avol=1Meg 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
V4 V+ 0 12
* Library below included based on ModelFile attribute of instance XU7 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\UniversalOpAmp2.asy)
.lib UniversalOpAmp2.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 776
WIRE -416 -224 -464 -224
WIRE -336 -160 -368 -160
WIRE -224 -160 -256 -160
WIRE -176 -160 -224 -160
WIRE -48 -160 -96 -160
WIRE -416 -144 -416 -224
WIRE -416 -144 -464 -144
WIRE -368 -96 -368 -160
WIRE -224 -48 -224 -160
WIRE -176 -48 -224 -48
WIRE -688 -32 -1104 -32
WIRE -48 -32 -48 -160
WIRE -48 -32 -112 -32
WIRE -16 -32 -48 -32
WIRE 0 -32 -16 -32
WIRE -416 -16 -416 -144
WIRE -416 -16 -480 -16
WIRE -320 -16 -416 -16
WIRE -176 -16 -320 -16
WIRE -544 0 -560 0
WIRE -16 0 -16 -32
WIRE 112 0 -16 0
WIRE -1104 32 -1104 -32
WIRE -976 32 -1104 32
WIRE -880 32 -896 32
WIRE -848 32 -880 32
WIRE -736 32 -768 32
WIRE -560 48 -560 0
WIRE 112 64 48 64
WIRE 48 96 48 64
WIRE -1328 112 -1328 80
WIRE -1232 112 -1232 80
WIRE -1104 112 -1104 32
WIRE -880 144 -880 32
WIRE -848 144 -880 144
WIRE -736 160 -736 32
WIRE -736 160 -784 160
WIRE -688 160 -736 160
WIRE -592 160 -592 -32
WIRE -592 160 -624 160
WIRE 0 160 -48 160
WIRE -848 176 -880 176
WIRE -560 176 -560 128
WIRE -48 208 -48 160
WIRE -1328 224 -1328 192
WIRE -1280 224 -1328 224
WIRE -1232 224 -1232 192
WIRE -1232 224 -1280 224
WIRE -736 256 -736 160
WIRE 112 256 -736 256
WIRE -1280 272 -1280 224
WIRE -1104 288 -1104 192
WIRE -880 288 -880 256
WIRE -880 288 -1104 288
WIRE -880 320 -880 288
SYMBOL res -240 -176 R90
WINDOW 0 0 43 VBottom 0
WINDOW 3 32 45 VTop 0
SYMATTR InstName R1B
SYMATTR Value 10K
SYMATTR SpiceLine tol=1
SYMBOL cap -688 176 R270
WINDOW 0 32 32 VTop 0
WINDOW 3 0 32 VBottom 0
SYMATTR InstName Cx1
SYMATTR Value 20pF
SYMBOL voltage -1104 96 R0
WINDOW 3 0 -238 Left 0
WINDOW 123 20 -269 Left 0
WINDOW 39 0 0 Left 0
SYMATTR Value SINE(0 5.39 100k)
SYMATTR Value2 AC 1 0
SYMATTR InstName Vin
SYMBOL res -880 16 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName Rc1
SYMATTR Value 100K
SYMATTR SpiceLine tol=1
SYMBOL Opamps\\UniversalOpamp2 -144 -32 R0
SYMATTR InstName U7
SYMBOL voltage -1232 96 R0
WINDOW 0 25 4 Left 0
WINDOW 3 30 97 Left 0
SYMATTR InstName V4
SYMATTR Value 12
FLAG -1232 80 V+
FLAG -816 192 V-
FLAG -816 128 V+
FLAG -880 320 0
FLAG -512 16 V-
FLAG -560 176 0
FLAG -1280 272 0
FLAG -1328 80 V-
FLAG -320 -16 Vdet
FLAG -144 -64 V+
FLAG -144 0 V-
FLAG -368 -96 0
FLAG 0 -32 Vamp
FLAG 48 96 0
* Z:\tmp\asc_dec_bjh7r6w2\0a3c4258feab_FiltroAntiAlias_dec0.asc
* Generated by LTspice 26.0.1 for Windows.
C1 N003 0 10n
R2 Vo N001 3k3
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE 256 0 128 0
WIRE 128 48 128 0
WIRE 160 48 128 48
WIRE 256 64 256 0
WIRE 256 64 224 64
WIRE 16 80 -32 80
WIRE 128 80 96 80
WIRE 160 80 128 80
WIRE 256 80 256 64
WIRE 272 80 256 80
WIRE 384 80 352 80
WIRE 416 80 384 80
WIRE -32 112 -32 80
WIRE 128 112 128 80
WIRE 384 112 384 80
WIRE -32 224 -32 192
WIRE 128 224 128 176
WIRE 384 224 384 176
SYMBOL cap 112 112 R0
SYMATTR InstName C1
SYMATTR Value 10n
SYMBOL res 368 64 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 3k3
FLAG 128 224 0
FLAG 384 224 0
FLAG 416 80 Vo
FLAG -32 224 0
* Z:\home\khalils\Downloads\files\data\raw_asc\03a2106b1c8a_1739.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\SpecialFunctions\LT1739.asy)
V2 -V 0 -5
XU1 N003 N001 +V -V N002 +V 0 LT1739 ;pnba In+)In-)V+)V-)OUT)S)SR
R1 N002 N001 10K
V3 N003 0 sine(0 .1 1Meg)
V1 +V 0 5
R2 N001 0 1K
.tran 3u
.lib LT1739.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 2336 1256
WIRE 1296 -176 1280 -176
WIRE 1392 -176 1376 -176
WIRE 1408 -176 1392 -176
WIRE 1520 -176 1488 -176
WIRE 1392 -48 1392 -176
WIRE 1408 -48 1392 -48
WIRE 1520 -32 1520 -176
WIRE 1520 -32 1488 -32
WIRE 1408 -16 1136 -16
WIRE 1136 0 1136 -16
WIRE 816 16 816 0
WIRE 928 16 928 0
WIRE 1424 32 1424 16
WIRE 1424 32 1392 32
WIRE 1440 32 1440 16
WIRE 1456 32 1456 16
WIRE 1488 32 1456 32
WIRE 1488 64 1488 32
WIRE 1392 80 1392 32
WIRE 1136 96 1136 80
WIRE 816 112 816 96
WIRE 928 112 928 96
SYMBOL res 1392 -192 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 1K
SYMBOL voltage 928 0 R0
SYMATTR InstName V2
SYMATTR Value -5
SYMBOL voltage 816 0 R0
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL voltage 1136 -16 R0
SYMATTR InstName V3
SYMATTR Value sine(0 .1 1Meg)
SYMBOL SpecialFunctions\\LT1739 1440 -32 R0
SYMATTR InstName U1
SYMBOL res 1504 -192 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 10K
FLAG 816 112 0
FLAG 928 112 0
FLAG 1440 -80 +V
FLAG 816 0 +V
FLAG 928 0 -V
FLAG 1440 32 -V
FLAG 1280 -176 0
FLAG 1136 96 0
FLAG 1488 64 0
FLAG 1392 80 +V
TEXT 1416 160 Left 2 !.tran 3u
* Z:\home\khalils\Downloads\files\data\raw_asc\146930fe736d_Level_shift.asc
* Generated by LTspice 26.0.1 for Windows.
V1 V+ 0 15V
V2 input 0 SINE(0 1.25 1)
V4 V- 0 -15V
XU2 N003 N001 N002 V+ V- LT1678 ;pnba IN+)IN-)OUT)VCC)VEE
V3 Vref 0 2.5V
R3 N003 0 10K
R4 N004 N003 10K
R1 N001 input 10K
R2 N002 N001 10K
XU3 N005 N004 N004 V+ V- LT1678 ;pnba IN+)IN-)OUT)VCC)VEE
R5 0 N005 100K
R8 N005 Vref 100K
R6 0 output 100K
R7 output N002 100K
.tran 1
* Library below included based on ModelFile attribute of instance XU2, XU3 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\LT1678.asy)
.lib LTC2.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 2216 948
WIRE 528 48 448 48
WIRE 640 48 608 48
WIRE 688 48 640 48
WIRE 816 48 768 48
WIRE 928 48 816 48
WIRE 448 80 448 48
WIRE 928 144 928 128
WIRE 992 144 928 144
WIRE 640 160 640 48
WIRE 656 160 640 160
WIRE 928 160 928 144
WIRE 816 176 816 48
WIRE 816 176 720 176
WIRE 656 192 640 192
WIRE 448 224 448 160
WIRE 928 256 928 240
WIRE 528 288 496 288
WIRE 640 288 640 192
WIRE 640 288 608 288
WIRE 688 288 640 288
WIRE 928 288 768 288
WIRE 1072 288 928 288
WIRE 496 352 496 288
WIRE 928 416 928 288
WIRE 960 416 928 416
WIRE 1072 432 1072 288
WIRE 1072 432 1024 432
WIRE 848 448 848 432
WIRE 960 448 848 448
WIRE 848 464 848 448
WIRE 848 560 848 544
FLAG 512 -64 0
FLAG 512 -144 V+
FLAG 656 -64 0
FLAG 656 -144 V-
FLAG 816 -64 0
FLAG 816 -144 Vref
FLAG 448 224 0
FLAG 496 352 0
FLAG 848 352 Vref
FLAG 848 560 0
FLAG 448 48 input
FLAG 688 144 V+
FLAG 688 208 V-
FLAG 992 464 V-
FLAG 992 400 V+
FLAG 992 144 output
FLAG 928 256 0
SYMBOL voltage 512 -160 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V1
SYMATTR Value 15V
SYMBOL voltage 448 64 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V2
SYMATTR Value SINE(0 1.25 1)
SYMBOL voltage 656 -160 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V4
SYMATTR Value -15V
SYMBOL Opamps\\LT1678 688 176 R0
SYMATTR InstName U2
SYMBOL voltage 816 -160 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V3
SYMATTR Value 2.5V
SYMBOL res 624 272 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value 10K
SYMBOL res 784 272 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value 10K
SYMBOL res 624 32 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 10K
SYMBOL res 784 32 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 10K
SYMBOL Opamps\\LT1678 992 432 R0
SYMATTR InstName U3
SYMBOL res 864 560 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName R5
SYMATTR Value 100K
SYMBOL res 864 448 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName R8
SYMATTR Value 100K
SYMBOL res 944 256 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName R6
SYMATTR Value 100K
SYMBOL res 944 144 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName R7
SYMATTR Value 100K
TEXT 480 472 Left 2 !.tran 1
* Z:\home\khalils\Downloads\files\data\raw_asc\13c1a52b811d_Diode_Voltage_Limiting.asc
* Generated by LTspice 26.0.1 for Windows.
* Voltage Limiting using Diodes Simulation
V1 N001 0 PULSE(0 14 0 0 0 0.005m .01m)
R2 N004 N003 20
R1 N002 N001 20
D3 N002 10V VS-E5TH0812
D2 0 N004 VS-E5TH0812
V N003 0 PULSE(14 0 0 0 0 0.005m .01m)
D1 0 N002 VS-E5TH0812
D4 N004 10V VS-E5TH0812
V2 10V 0 10
L1 N002 N004 1m
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.tran 1m
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE -48 48 -192 48
WIRE 160 48 32 48
WIRE 464 48 160 48
WIRE 160 96 160 48
WIRE 464 128 464 48
WIRE 480 128 464 128
WIRE -64 320 -192 320
WIRE 160 320 16 320
WIRE 480 320 480 208
WIRE 480 320 160 320
SYMBOL voltage -192 304 R0
WINDOW 3 -115 -48 Left 2
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR Value PULSE(14 0 0 0 0 0.005m .01m)
SYMATTR InstName V
SYMBOL diode 176 320 R180
WINDOW 0 24 64 Left 2
WINDOW 3 -171 37 Left 2
SYMATTR InstName D4
SYMATTR Value VS-E5TH0812
SYMBOL ind 464 112 R0
SYMATTR InstName L1
SYMATTR Value 1m
SYMBOL diode 176 160 R180
WINDOW 0 24 64 Left 2
WINDOW 3 -181 33 Left 2
SYMATTR InstName D1
SYMATTR Value VS-E5TH0812
SYMBOL voltage -192 32 R0
WINDOW 3 -113 138 Left 2
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR Value PULSE(0 14 0 0 0 0.005m .01m)
SYMATTR InstName V1
SYMBOL res 32 304 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 20
SYMBOL voltage -432 160 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value 10
SYMBOL diode 176 384 R180
WINDOW 0 24 64 Left 2
WINDOW 3 -168 28 Left 2
SYMATTR InstName D2
SYMATTR Value VS-E5TH0812
SYMBOL res 48 32 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 20
SYMBOL diode 176 48 R180
WINDOW 0 24 64 Left 2
WINDOW 3 -173 34 Left 2
SYMATTR InstName D3
SYMATTR Value VS-E5TH0812
FLAG -192 128 0
FLAG -192 400 0
FLAG 160 384 0
FLAG 160 160 0
FLAG -432 256 0
FLAG -432 176 10V
FLAG 160 -16 10V
FLAG 160 256 10V
TEXT 344 -72 Left 2 !.tran 1m
TEXT -184 -112 Left 3 ;Voltage Limiting using Diodes Simulation
* Z:\home\khalils\Downloads\files\data\raw_asc\40d238cedb7c_FullDuplex.asc
* Generated by LTspice 26.0.1 for Windows.
V1 N001 N003 SINE(0 3 3k)
V2 N001 N002 SINE(0 3 1k)
D2 R1 N002 1N914
D4 R2 N001 1N914
D3 N003 R2 1N914
R2 N003 0 1K tol=1 pwr=0.1
R1 0 N002 1K tol=1 pwr=0.1
D1 N001 R1 1N914
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.tran 3m
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE -128 208 -128 80
WIRE -128 352 -128 288
WIRE -48 80 -128 80
WIRE -48 96 -48 80
WIRE -48 192 -48 160
WIRE -48 224 -48 192
WIRE -48 352 -128 352
WIRE -48 352 -48 288
WIRE -32 352 -48 352
WIRE -16 192 -48 192
WIRE 80 352 48 352
WIRE 80 368 80 352
WIRE 112 352 80 352
WIRE 224 80 -48 80
WIRE 224 96 224 80
WIRE 224 192 192 192
WIRE 224 192 224 160
WIRE 224 224 224 192
WIRE 224 352 192 352
WIRE 224 352 224 288
WIRE 336 80 224 80
WIRE 336 192 336 80
WIRE 336 352 224 352
WIRE 336 352 336 272
SYMBOL diode -64 96 R0
SYMATTR InstName D1
SYMATTR Value 1N914
SYMBOL voltage 336 176 R0
WINDOW 3 -60 -10 VRight 0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value SINE(0 3 3k)
SYMBOL diode -64 224 R0
SYMATTR InstName D2
SYMATTR Value 1N914
SYMBOL voltage -128 192 R0
WINDOW 3 -60 -10 VRight 0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value SINE(0 3 1k)
SYMBOL diode 240 160 R180
WINDOW 0 24 72 Left 0
WINDOW 3 24 0 Left 0
SYMATTR InstName D4
SYMATTR Value 1N914
SYMBOL diode 240 288 R180
WINDOW 0 24 72 Left 0
WINDOW 3 24 0 Left 0
SYMATTR InstName D3
SYMATTR Value 1N914
SYMBOL res 208 336 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R2
SYMATTR Value 1K
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL res 64 336 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R1
SYMATTR Value 1K
SYMATTR SpiceLine tol=1 pwr=0.1
FLAG 80 368 0
FLAG -16 192 R1
FLAG 192 192 R2
TEXT -132 42 Left 0 !.tran 3m
* Z:\home\khalils\Downloads\files\data\raw_asc\5b5b5f866690_Current-mirrors.asc
* Generated by LTspice 26.0.1 for Windows.
* Sizing:\n \n1) Set reference current -> 1 mA\n2) Iref = (Vcc-Vbe)/R1 -> R1 = (Vcc-Vbe)/R1 = (12-0.6)/1m =11.4k\n \nOutput resistance Rout = ?
* The following relation holds: Io/Iref = R3/R4\n \nSizing:\n1) Set Iref = I(R2) = 1mA\n2) Set V(R3) = 1 V -> R3 = 1k ohm\n3) If we want Io = 2 Iref -> R3/R4 = 2 -> R4 = 500 ohm\n4) R is given by R = (Vcc - Vbe - V(R3))/Iref = (12-0.6-1)/1m = 10.4 k ohm
* Io
* Iref
* Current mirrors
* DC sweep analysis
Q2 N001 N001 0 0 2N3904
Q1 VL N001 0 0 2N3904
R4 N004 0 500
Q4 N002 N002 N003 0 2N3904
V1 Vcc 0 12
R3 N003 0 1k
R1 Vcc N001 11.4k
Q3 VL N002 N004 0 2N3904
R2 Vcc N002 10.4k
V2 VL 0 1
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
.dc V2 0 10 0.1
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1348 1060
WIRE -144 -128 -144 -144
WIRE -32 -128 -32 -144
WIRE -144 -16 -144 -48
WIRE -32 -16 -32 -48
WIRE 112 160 112 128
WIRE 112 256 112 240
WIRE 192 256 112 256
WIRE 112 288 112 256
WIRE 304 288 304 128
WIRE 192 336 192 256
WIRE 192 336 176 336
WIRE 240 336 192 336
WIRE 112 416 112 384
WIRE 304 416 304 384
WIRE 112 624 112 592
WIRE 112 720 112 704
WIRE 192 720 112 720
WIRE 112 752 112 720
WIRE 304 752 304 592
WIRE 192 800 192 720
WIRE 192 800 176 800
WIRE 240 800 192 800
WIRE 112 896 112 848
WIRE 304 896 304 848
WIRE 112 1008 112 976
WIRE 304 1008 304 976
RECTANGLE Normal 1248 464 0 48 2
RECTANGLE Normal 1248 1056 0 464 2
SYMBOL npn 176 288 M0
SYMATTR InstName Q2
SYMATTR Value 2N3904
SYMBOL res 96 144 R0
SYMATTR InstName R1
SYMATTR Value 11.4k
SYMBOL voltage -32 -144 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value 1
SYMBOL npn 240 288 R0
SYMATTR InstName Q1
SYMATTR Value 2N3904
SYMBOL npn 176 752 M0
SYMATTR InstName Q4
SYMATTR Value 2N3904
SYMBOL voltage -144 -144 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 12
SYMBOL res 96 608 R0
SYMATTR InstName R2
SYMATTR Value 10.4k
SYMBOL res 96 880 R0
SYMATTR InstName R3
SYMATTR Value 1k
SYMBOL npn 240 752 R0
SYMATTR InstName Q3
SYMATTR Value 2N3904
SYMBOL res 288 880 R0
SYMATTR InstName R4
SYMATTR Value 500
FLAG 112 416 0
FLAG 304 416 0
FLAG -144 -16 0
FLAG -32 -16 0
FLAG 304 1008 0
FLAG 112 1008 0
FLAG -32 -144 VL
FLAG 304 128 VL
FLAG 304 592 VL
FLAG 112 592 Vcc
FLAG 112 128 Vcc
FLAG -144 -144 Vcc
TEXT 96 8 Left 2 !.dc V2 0 10 0.1
TEXT 472 88 Left 2 ;Sizing:\n \n1) Set reference current -> 1 mA\n2) Iref = (Vcc-Vbe)/R1 -> R1 = (Vcc-Vbe)/R1 = (12-0.6)/1m =11.4k\n \nOutput resistance Rout = ?
TEXT 464 584 Left 2 ;The following relation holds: Io/Iref = R3/R4\n \nSizing:\n1) Set Iref = I(R2) = 1mA\n2) Set V(R3) = 1 V -> R3 = 1k ohm\n3) If we want Io = 2 Iref -> R3/R4 = 2 -> R4 = 500 ohm\n4) R is given by R = (Vcc - Vbe - V(R3))/Iref = (12-0.6-1)/1m = 10.4 k ohm
TEXT 320 696 Left 2 ;Io
TEXT 48 656 Left 2 ;Iref
TEXT 448 -120 Left 4 ;Current mirrors
TEXT 104 -24 Left 2 ;DC sweep analysis
* Z:\home\khalils\Downloads\files\data\raw_asc\1065192f14ed_AND_SYM.asc
* Generated by LTspice 26.0.1 for Windows.
M6 Vout N001 Vneg Vneg NMOS
M2 N001 Vin2 Vpos Vpos PMOS
M1 N001 Vin1 Vpos Vpos PMOS
M5 Vout N001 Vpos Vpos PMOS
M3 N001 Vin1 N002 N002 NMOS
M4 N002 Vin2 Vneg Vneg NMOS
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE 272 -16 272 -48
WIRE 272 -16 176 -16
WIRE 416 -16 272 -16
WIRE 624 0 624 -32
WIRE 704 0 624 0
WIRE 576 16 544 16
WIRE 176 32 176 -16
WIRE 256 32 176 32
WIRE 416 32 416 -16
WIRE 496 32 416 32
WIRE 704 48 704 0
WIRE 704 48 624 48
WIRE 256 80 256 32
WIRE 256 80 176 80
WIRE 496 80 496 32
WIRE 496 80 416 80
WIRE 176 144 176 128
WIRE 272 144 176 144
WIRE 416 144 416 128
WIRE 416 144 272 144
WIRE 272 192 272 144
WIRE 544 192 544 16
WIRE 544 192 272 192
WIRE 624 192 624 96
WIRE 720 192 624 192
WIRE 272 224 272 192
WIRE 624 240 624 192
WIRE 352 272 272 272
WIRE 704 288 624 288
WIRE 352 320 352 272
WIRE 352 320 272 320
WIRE 544 320 544 192
WIRE 576 320 544 320
WIRE 704 336 704 288
WIRE 704 336 624 336
WIRE 272 352 272 320
WIRE 624 368 624 336
WIRE 352 400 272 400
WIRE 352 448 352 400
WIRE 352 448 272 448
WIRE 272 480 272 448
IOPIN 272 -48 In
IOPIN 128 48 In
IOPIN 224 304 In
IOPIN 224 432 In
IOPIN 720 192 Out
IOPIN 368 48 In
IOPIN 272 480 In
IOPIN 624 -32 In
IOPIN 624 368 In
SYMBOL pmos4 368 128 M180
SYMATTR InstName M2
SYMBOL nmos4 224 352 R0
SYMATTR InstName M4
SYMBOL nmos4 576 240 R0
SYMATTR InstName M6
SYMBOL pmos4 576 96 M180
SYMATTR InstName M5
SYMBOL nmos4 224 224 R0
SYMATTR InstName M3
SYMBOL pmos4 128 128 M180
SYMATTR InstName M1
FLAG 272 -48 Vpos
FLAG 128 48 Vin1
FLAG 224 304 Vin1
FLAG 224 432 Vin2
FLAG 720 192 Vout
FLAG 368 48 Vin2
FLAG 272 480 Vneg
FLAG 624 -32 Vpos
FLAG 624 368 Vneg
* Z:\home\khalils\Downloads\files\data\raw_asc\29b7378e4b74_1220.asc
* Generated by LTspice 26.0.1 for Windows.
* Two Op Amp Instrumentation Amplifier
* Library below included based on ModelFile attribute of instance XU1, XU2 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\LT1220.asy)
R4 OUT N002 10K
R5 N002 N001 220
XU2 IN+ N002 +V -V OUT LT1220 ;pnba In+)In-)V+)V-)OUT
R1 N003 N001 1K
R3 N002 N003 1K
V3 IN- IN+ SINE(0 10m 10K)
R2 N001 0 10K
V2 -V 0 -15
V4 IN+ 0 SINE(0 1 1K)
V1 +V 0 15
XU1 IN- N001 +V -V N003 LT1220 ;pnba In+)In-)V+)V-)OUT
.tran 3m
.lib LTC.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 896 680
WIRE 288 64 128 64
WIRE 432 64 368 64
WIRE 464 64 432 64
WIRE 592 64 544 64
WIRE 32 112 16 112
WIRE 128 112 128 64
WIRE 128 112 112 112
WIRE 176 112 128 112
WIRE 272 112 256 112
WIRE -224 144 -224 128
WIRE -96 144 -96 128
WIRE 192 208 192 192
WIRE 128 224 128 112
WIRE 160 224 128 224
WIRE 480 224 480 208
WIRE -224 240 -224 224
WIRE -96 240 -96 224
WIRE 272 240 272 112
WIRE 272 240 224 240
WIRE 336 240 272 240
WIRE 432 240 432 64
WIRE 432 240 416 240
WIRE 448 240 432 240
WIRE 128 256 0 256
WIRE 160 256 128 256
WIRE 592 256 592 64
WIRE 592 256 512 256
WIRE 624 256 592 256
WIRE 0 272 0 256
WIRE 448 272 416 272
WIRE 192 288 192 272
WIRE 480 304 480 288
WIRE 0 384 0 352
WIRE 304 384 0 384
WIRE 416 384 416 272
WIRE 416 384 304 384
WIRE 0 400 0 384
WIRE 0 496 0 480
SYMBOL voltage -224 128 R0
SYMATTR InstName V2
SYMATTR Value -15
SYMBOL voltage 0 256 R0
SYMATTR InstName V3
SYMATTR Value SINE(0 10m 10K)
SYMBOL opamps\\LT1220 480 192 R0
SYMATTR InstName U2
SYMBOL opamps\\LT1220 192 176 R0
SYMATTR InstName U1
SYMBOL voltage 0 384 R0
SYMATTR InstName V4
SYMATTR Value SINE(0 1 1K)
SYMBOL res 560 48 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value 10K
SYMBOL voltage -96 128 R0
SYMATTR InstName V1
SYMATTR Value 15
SYMBOL res 128 96 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 10K
SYMBOL res 384 48 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R5
SYMATTR Value 220
SYMBOL res 432 224 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value 1K
SYMBOL res 272 96 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 1K
FLAG -96 240 0
FLAG 192 192 +V
FLAG -96 128 +V
FLAG 192 288 -V
FLAG -224 240 0
FLAG -224 128 -V
FLAG 16 112 0
FLAG 0 496 0
FLAG 480 208 +V
FLAG 480 304 -V
FLAG 128 256 IN-
FLAG 304 384 IN+
FLAG 624 256 OUT
TEXT 512 384 Left 2 !.tran 3m
TEXT 296 16 Bottom 2 ;Two Op Amp Instrumentation Amplifier
* Z:\home\khalils\Downloads\files\data\raw_asc\1ee96e857147_AD711.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\AD711.asy)
R1 N001 0 10K
V2 -V 0 -15
Vin IN 0 SINE(0 1 10K)
XU1 IN N001 +V -V OUT AD712 ;pnba In+)In-)V+)V-)OUT
R2 OUT N001 10K
V1 +V 0 15
.tran 1m
.lib ADI1.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 688 -1104 640 -1104
WIRE 544 -1088 432 -1088
WIRE 432 -1072 432 -1088
WIRE 144 -1056 144 -1072
WIRE 256 -1056 256 -1072
WIRE 432 -976 432 -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\\AD711 576 -1168 R0
SYMATTR InstName U1
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 10K)
SYMBOL voltage 144 -1168 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V1
SYMATTR Value 15
SYMBOL voltage 256 -1168 R0
WINDOW 123 24 146 Left 2
WINDOW 39 24 125 Left 2
SYMATTR InstName V2
SYMATTR Value -15
SYMBOL res 640 -1232 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 10K
FLAG 144 -1168 +V
FLAG 144 -1056 0
FLAG 432 -976 0
FLAG 688 -1104 OUT
FLAG 432 -1088 IN
FLAG 576 -1136 +V
FLAG 256 -1168 -V
FLAG 576 -1072 -V
FLAG 416 -1216 0
FLAG 256 -1056 0
TEXT 776 -952 Left 2 !.tran 1m
* Z:\home\khalils\Downloads\files\data\raw_asc\292a30f8e35f_Differential-Amplifier.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\UniversalOpAmp.asy)
V3 Vin_1 0 5
XU1 N002 N001 Vp Vm Vout level1 Avol=1Meg GBW=10Meg Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
V1 Vp 0 5
V2 0 Vm -5
Rf Vout N001 10k
R2 N002 Vin_1 10k
V4 Vin_2 0 PULSE(0 5 0 1 0 0 1)
R1 N001 Vin_2 10k
R3 N002 0 10k
.tran 1
.lib UniversalOpAmp1.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 948 680
WIRE 528 0 240 0
WIRE 656 0 608 0
WIRE 704 0 656 0
WIRE 848 0 784 0
WIRE 112 16 112 -32
WIRE 656 112 656 0
WIRE 704 112 656 112
WIRE 848 128 848 0
WIRE 848 128 768 128
WIRE 864 128 848 128
WIRE 528 144 448 144
WIRE 656 144 608 144
WIRE 704 144 656 144
WIRE 112 160 112 96
WIRE 112 160 16 160
WIRE 16 192 16 160
WIRE 656 192 656 144
WIRE 112 208 112 160
WIRE 240 224 240 0
WIRE 448 224 448 144
WIRE 112 320 112 288
WIRE 240 384 240 304
WIRE 448 384 448 304
WIRE 448 384 240 384
WIRE 656 384 656 272
WIRE 656 384 448 384
WIRE 448 416 448 384
IOPIN 736 96 Out
IOPIN 736 160 Out
IOPIN 112 -32 Out
IOPIN 112 320 Out
SYMBOL voltage 112 192 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value -5
SYMBOL voltage 240 208 R0
WINDOW 3 -70 118 Left 2
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR Value PULSE(0 5 0 1 0 0 1)
SYMATTR InstName V4
SYMBOL OpAmps\\UniversalOpAmp 736 128 R0
SYMATTR InstName U1
SYMBOL res 640 176 R0
SYMATTR InstName R3
SYMATTR Value 10k
SYMBOL voltage 112 0 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL res 624 -16 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 10k
SYMBOL res 624 128 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 10k
SYMBOL voltage 448 208 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V3
SYMATTR Value 5
SYMBOL res 800 -16 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName Rf
SYMATTR Value 10k
FLAG 16 192 0
FLAG 736 96 Vp
FLAG 736 160 Vm
FLAG 112 -32 Vp
FLAG 112 320 Vm
FLAG 448 144 Vin_1
FLAG 240 0 Vin_2
FLAG 864 128 Vout
FLAG 448 416 0
TEXT 0 424 Left 2 !.tran 1