Si7li/ltspice-spice-circuits huggingface dataset:
* Z:\home\khalils\Downloads\files\data\raw_asc\6fb5d8de2508_XOR_GATE.asc
* Generated by LTspice 26.0.1 for Windows.
M1 N006 BC 0 0 NMOS
M5 AC A 0 0 NMOS
M8 P001 BC Vout N001 PMOS
M9 P002 B Vout N001 PMOS
V2 B 0 PULSE(0 5 0 5n 5n 40m 80m)
V1 A 0 PULSE(0 5 0 5n 5n 20m 40m)
M7 BC B 0 0 NMOS
M3 N001 AC P002 N003 PMOS
V3 N001 0 5
M12 Vout AC N006 0 NMOS
M6 N001 B BC N005 PMOS
M11 Vout B N006 0 NMOS
M10 N006 A 0 0 NMOS
M4 N001 A AC N004 PMOS
M2 N001 A P001 N002 PMOS
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
.tran 100ms
.backanno
.end

* LTspice schematic (.asc):
Version 4.1
SHEET 1 880 680
WIRE -80 -144 -240 -144
WIRE -48 -144 -80 -144
WIRE 48 -144 -48 -144
WIRE 80 -144 48 -144
WIRE 352 -144 80 -144
WIRE 640 -144 352 -144
WIRE 352 -112 352 -144
WIRE -80 -96 -80 -128
WIRE 80 -96 80 -128
WIRE 640 -96 640 -144
WIRE 352 -64 352 -96
WIRE 640 -48 640 -80
WIRE 304 -32 288 -32
WIRE 448 -16 352 -16
WIRE 592 -16 576 -16
WIRE -48 0 -48 -144
WIRE -48 0 -80 0
WIRE 48 0 48 -144
WIRE 80 0 48 0
WIRE 720 0 640 0
WIRE 0 48 -80 48
WIRE 80 48 0 48
WIRE 0 64 0 48
WIRE 176 64 0 64
WIRE 288 64 288 -32
WIRE 304 64 288 64
WIRE 0 80 0 64
WIRE 0 80 -80 80
WIRE 80 80 0 80
WIRE 576 80 576 -16
WIRE 592 80 576 80
WIRE -80 96 -80 80
WIRE 80 96 80 80
WIRE 0 144 0 128
WIRE 0 144 -80 144
WIRE 80 144 0 144
WIRE 0 192 -80 192
WIRE 80 192 0 192
WIRE 0 224 0 192
WIRE 0 224 -80 224
WIRE 80 224 0 224
IOPIN 176 64 Out
IOPIN 352 160 In
IOPIN 544 160 In
IOPIN 576 -16 In
IOPIN 288 -32 In
IOPIN 448 -16 BiDir
IOPIN 720 0 BiDir
IOPIN -128 32 BiDir
IOPIN -128 304 BiDir
IOPIN -128 -64 In
IOPIN 128 304 In
IOPIN 128 -64 BiDir
IOPIN 128 176 BiDir
IOPIN -128 176 In
IOPIN 128 32 In
SYMBOL pmos4 -128 -48 R0
SYMATTR InstName M8
SYMBOL voltage -240 -160 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V3
SYMATTR Value 5
SYMBOL nmos 128 224 M0
SYMATTR InstName M10
SYMBOL nmos4 -128 96 R0
SYMATTR InstName M11
SYMBOL voltage 544 144 R0
WINDOW 3 -63 132 Left 0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR Value PULSE(0 5 0 5n 5n 40m 80m)
SYMATTR InstName V2
SYMBOL nmos 592 0 R0
SYMATTR InstName M7
SYMBOL nmos4 128 96 M0
SYMATTR InstName M12
SYMBOL nmos -128 224 R0
SYMATTR InstName M1
SYMBOL nmos 304 -16 R0
SYMATTR InstName M5
SYMBOL pmos4 128 -48 M0
SYMATTR InstName M9
SYMBOL pmos4 -128 -144 R0
SYMATTR InstName M2
SYMBOL pmos4 592 -96 R0
SYMATTR InstName M6
SYMBOL pmos4 304 -112 R0
SYMATTR InstName M4
SYMBOL pmos4 128 -144 M0
SYMATTR InstName M3
SYMBOL voltage 352 144 R0
WINDOW 3 -66 128 Left 0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR Value PULSE(0 5 0 5n 5n 20m 40m)
SYMATTR InstName V1
FLAG 544 240 0
FLAG 352 240 0
FLAG -240 -64 0
FLAG 176 64 Vout
FLAG -80 320 0
FLAG 352 80 0
FLAG 640 96 0
FLAG 80 320 0
FLAG 352 160 A
FLAG 544 160 B
FLAG 576 -16 B
FLAG 288 -32 A
FLAG 448 -16 AC
FLAG 720 0 BC
FLAG -128 32 BC
FLAG -128 304 BC
FLAG -128 -64 A
FLAG 128 304 A
FLAG 128 -64 AC
FLAG 128 176 AC
FLAG -128 176 B
FLAG 128 32 B
FLAG 0 128 0
TEXT 200 312 Left 2 !.tran 100ms
* Z:\home\khalils\Downloads\files\data\raw_asc\LTC2909-3.3.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\LTC2909-3.3.asy)
V3 N006 0 PWL(0 0 5010m 0 5011m 0.9 10010m 0.9 10011m 5)
R3 N003 0 10K
C1 0 N004 22n
R1 N005 N001 57.6K
V1 N002 0 PWL (0,0 10m,12)
C2 0 _RST 1000p
R4 N001 _RST 10K
I1 REF 0 PWL(0 0 1 0 1.001 1m 2 1m 2.001 -1m 3 -1m 4 -5m 4.001 -5m 5 5m)
XU1 0 REF N003 N005 N006 N004 N002 _RST LTC2909-3.3 ;pnba GND)REF)ADJ2)ADJ1)SEL)TMR)Vcc)_RST
V2 N001 0 PULSE(2.5 5 0 1000m 1000m 3000m 5000m)
R2 N005 N003 1.1K
.tran 15
.lib LTC2909-3.3.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1152 788
WIRE -176 80 -256 80
WIRE 272 80 -96 80
WIRE 304 80 272 80
WIRE 16 160 0 160
WIRE 304 160 304 80
WIRE 304 160 272 160
WIRE 320 160 304 160
WIRE 432 160 384 160
WIRE -736 224 -784 224
WIRE -16 224 -656 224
WIRE 16 224 -16 224
WIRE 496 224 272 224
WIRE 592 224 576 224
WIRE -192 288 -208 288
WIRE -96 288 -112 288
WIRE 16 288 -96 288
WIRE 304 288 272 288
WIRE 400 288 368 288
WIRE -96 304 -96 288
WIRE 16 352 0 352
WIRE 352 352 272 352
WIRE 352 368 352 352
WIRE -256 400 -256 80
WIRE -224 400 -256 400
WIRE -96 400 -96 384
WIRE -96 400 -144 400
WIRE 0 400 0 352
WIRE 0 400 -96 400
WIRE -256 464 -256 400
WIRE 352 464 352 448
WIRE -256 560 -256 544
SYMBOL res -128 384 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 57.6K
SYMBOL LTC2909-3.3 144 256 R0
SYMATTR InstName U1
SYMBOL voltage 352 352 R0
WINDOW 3 30 89 Left 2
SYMATTR Value PWL(0 0 5010m 0 5011m 0.9 10010m 0.9 10011m 5)
SYMATTR InstName V3
SYMBOL current -656 224 R90
WINDOW 0 -32 40 VBottom 2
WINDOW 3 32 40 VTop 2
SYMATTR InstName I1
SYMATTR Value PWL(0 0 1 0 1.001 1m 2 1m 2.001 -1m 3 -1m 4 -5m 4.001 -5m 5 5m)
SYMBOL cap 384 144 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C2
SYMATTR Value 1000p
SYMBOL voltage 480 224 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 -32 56 VBottom 2
SYMATTR InstName V1
SYMATTR Value PWL (0,0 10m,12)
SYMBOL voltage -256 448 R0
SYMATTR InstName V2
SYMATTR Value PULSE(2.5 5 0 1000m 1000m 3000m 5000m)
SYMBOL res -112 400 M180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName R2
SYMATTR Value 1.1K
SYMBOL cap 368 272 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C1
SYMATTR Value 22n
SYMBOL res -96 304 M270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R3
SYMATTR Value 10K
SYMBOL res -192 96 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R4
SYMATTR Value 10K
FLAG 0 160 0
FLAG 592 224 0
FLAG -256 560 0
FLAG -208 288 0
FLAG -784 224 0
FLAG 400 288 0
FLAG 432 160 0
FLAG 352 464 0
FLAG -16 224 REF
FLAG 272 80 _RST
TEXT 432 544 Left 2 !.tran 15
* Z:\home\khalils\Downloads\files\data\raw_asc\3aa40318d6a5_400_PushPull.asc
* Generated by LTspice 26.0.1 for Windows.
* RG based on requierd switching times\nRc based on maximum allowed Current through Transistor
;.step param Rc list 1e3 10e3 100e3
RG G N004 220
R3 N002 BTot {Rc}
V1 N005 0 PULSE(0 3 0 1e-9 1e-9 2e-6 4e-6)
V1 N002 0 12
Q2 0 BTot N004 0 BC327-25
V3 N001 0 30
R2 N001 N003 100
XM1 N003 G 0 IRF520 ;pnba D)G)S
R4 B N005 300
Q1 N001 BTot N004 0 BC337-25
Q3 BTot B 0 0 BC337-25
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
.tran 010e-6
.include irf520.lib
.param Rc=12/90e-3
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE -224 -160 -256 -160
WIRE 256 -160 -144 -160
WIRE -256 -32 -256 -160
WIRE -256 -32 -288 -32
WIRE -224 -32 -256 -32
WIRE 16 -32 -144 -32
WIRE 256 -32 256 -160
WIRE 512 -32 256 -32
WIRE 512 -16 512 -32
WIRE 16 16 16 -32
WIRE 256 64 256 -32
WIRE 512 96 512 64
WIRE 192 112 128 112
WIRE 16 144 16 96
WIRE 80 144 16 144
WIRE 128 144 128 112
WIRE 128 144 80 144
WIRE 256 176 256 160
WIRE 336 176 256 176
WIRE 448 176 416 176
WIRE 464 176 448 176
WIRE -304 192 -320 192
WIRE -176 192 -224 192
WIRE -48 192 -176 192
WIRE 128 224 128 144
WIRE 192 224 128 224
WIRE -320 240 -320 192
WIRE 256 288 256 272
WIRE 512 288 512 192
WIRE 512 288 256 288
WIRE -320 352 -320 320
WIRE 16 352 16 240
WIRE 16 352 -320 352
WIRE -320 384 -320 352
WIRE 256 384 256 288
SYMBOL voltage -128 -32 R90
WINDOW 0 -32 56 VBottom 2
WINDOW 3 32 56 VTop 2
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 12
SYMBOL npn 192 64 R0
WINDOW 3 31 59 Left 2
SYMATTR Value BC337-25
SYMATTR InstName Q1
SYMBOL pnp 192 272 M180
WINDOW 3 29 50 Left 2
SYMATTR Value BC327-25
SYMATTR InstName Q2
SYMBOL res -208 176 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value 300
SYMBOL res 432 160 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName RG
SYMATTR Value 220
SYMBOL res 0 0 R0
SYMATTR InstName R3
SYMATTR Value {Rc}
SYMBOL nmos 464 96 R0
SYMATTR InstName M1
SYMATTR Value IRF520
SYMATTR Prefix X
SYMBOL voltage -320 224 R0
WINDOW 3 -7 259 Left 2
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR Value PULSE(0 3 0 1e-9 1e-9 2e-6 4e-6)
SYMATTR InstName 1
SYMBOL voltage -128 -160 R90
WINDOW 0 -32 56 VBottom 2
WINDOW 3 32 56 VTop 2
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V3
SYMATTR Value 30
SYMBOL res 496 -32 R0
SYMATTR InstName R2
SYMATTR Value 100
SYMBOL npn -48 144 R0
SYMATTR InstName Q3
SYMATTR Value BC337-25
FLAG 256 384 0
FLAG -288 -32 0
FLAG -320 384 0
FLAG 448 176 G
FLAG 80 144 BTot
FLAG -176 192 B
TEXT -328 464 Left 2 !.tran 010e-6
TEXT 120 488 Left 2 !.include irf520.lib
TEXT -328 552 Left 2 !;.step param Rc list 1e3 10e3 100e3\n.param Rc=12/90e-3
TEXT 152 576 Left 2 ;RG based on requierd switching times\nRc based on maximum allowed Current through Transistor
* Z:\home\khalils\Downloads\files\data\raw_asc\1a05d3367533_Howland_Improved.asc
* Generated by LTspice 26.0.1 for Windows.
* changed U1 val to ADA4522
* U1 to OPA2188
;.ac dec 3m 1 1MEG
Rload N004 0 {x}
C1 N002 N001 1p
V2 -V 0 -15
R2 N001 0 {R}
R4 N003 IN {R}
R5 N002 N004 {R2}
R3 N004 N003 {R}
V1 +V 0 +15
V3 IN 0 SINE(0 1 1K) AC 1
R1 N002 N001 {R}
XU1 N003 N001 +V -V N002 ADA4522 ;pnba In+)In-)V+)V-)OUT
.tran 3m
.step param X list 1 10 100 1K 10K 100K
.param R=100k
.param R2=1k
.inc ..\..\..\..\lib\spice\ADA4522.cir
.lib ..\..\..\..\lib\spice\OPA2188_TINA_AIO\OPA2188.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1280 728
WIRE 208 48 144 48
WIRE 352 48 272 48
WIRE -880 128 -880 112
WIRE -752 128 -752 112
WIRE 32 160 -48 160
WIRE 144 160 144 48
WIRE 144 160 112 160
WIRE 192 160 144 160
WIRE 352 160 352 48
WIRE 352 160 272 160
WIRE 416 160 352 160
WIRE -880 224 -880 208
WIRE -752 224 -752 208
WIRE 144 256 144 160
WIRE 160 256 144 256
WIRE 416 272 416 160
WIRE 416 272 224 272
WIRE 160 288 144 288
WIRE -128 368 -128 352
WIRE 16 368 -128 368
WIRE 144 368 144 288
WIRE 144 368 96 368
WIRE 192 368 144 368
WIRE 288 368 272 368
WIRE 304 368 288 368
WIRE 416 368 416 272
WIRE 416 368 384 368
WIRE -128 464 -128 448
WIRE 288 496 288 368
WIRE 544 496 288 496
WIRE 656 496 624 496
SYMBOL res 288 352 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value {R}
SYMBOL voltage -128 352 R0
WINDOW 123 24 124 Left 2
WINDOW 39 0 0 Left 2
SYMATTR Value2 AC 1
SYMATTR InstName V3
SYMATTR Value SINE(0 1 1K)
SYMBOL res 128 144 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value {R}
SYMBOL cap 272 32 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C1
SYMATTR Value 1p
SYMBOL voltage -752 112 R0
SYMATTR InstName V2
SYMATTR Value -15
SYMBOL res 112 352 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value {R}
SYMBOL voltage -880 112 R0
SYMATTR InstName V1
SYMATTR Value +15
SYMBOL Opamps\\opamp2 192 208 R0
SYMATTR InstName U1
SYMATTR Value ADA4522
SYMBOL res 528 512 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName Rload
SYMATTR Value {x}
SYMBOL res 288 144 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value {R}
SYMBOL res 400 352 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R5
SYMATTR Value {R2}
FLAG -752 224 0
FLAG -880 224 0
FLAG 192 240 +V
FLAG -880 112 +V
FLAG -752 112 -V
FLAG 192 304 -V
FLAG -128 464 0
FLAG -128 352 IN
FLAG 656 496 0
FLAG -48 160 0
TEXT 832 272 Left 2 !.tran 3m
TEXT 832 304 Left 2 !.step param X list 1 10 100 1K 10K 100K
TEXT -368 80 Left 2 !.param R=100k
TEXT -368 128 Left 2 !.param R2=1k
TEXT 56 664 Left 2 !.inc ..\\..\\..\\..\\lib\\spice\\ADA4522.cir
TEXT 568 112 Left 2 !;.ac dec 3m 1 1MEG
TEXT 56 704 Left 2 !.lib ..\\..\\..\\..\\lib\\spice\\OPA2188_TINA_AIO\\OPA2188.lib
TEXT 448 664 Left 2 ;changed U1 val to ADA4522
TEXT 640 712 Left 2 ;U1 to OPA2188
* Z:\home\khalils\Downloads\files\data\raw_asc\416416594c05_pasabanda_cheby_pasivo.asc
* Generated by LTspice 26.0.1 for Windows.
V1 N001 0 AC 1 0
C3 N006 0 {Q3/w03/R}
R3 N006 N005 {R}
L2 N003 0 {R/w02/Q2}
C1 N002 0 {Q1/w01/R}
XU2 N005 N003 N005 opamp Aol=100K GBW=10Meg ;pnba invin)noninvin)out
L1 N002 0 {R/w01/Q1}
R1 N002 N001 {R}
XU1 N004 N002 N004 opamp Aol=100K GBW=10Meg ;pnba invin)noninvin)out
L3 N006 0 {R/w03/Q3}
R2 N003 N004 {R}
C2 N003 0 {Q2/w02/R}
.ac dec 10000 0.1 10
.param R={10} w0={2*pi}
.param Q1={7.981} w01={w0*1}
.param Q2={16.1} w02={w0*1.1077}
.param Q3={16.1} w03={w0*0.903}
.lib opamp.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1348 680
WIRE 32 128 -16 128
WIRE 144 128 112 128
WIRE 224 128 144 128
WIRE 352 128 224 128
WIRE 816 128 688 128
WIRE 448 144 416 144
WIRE 496 144 448 144
WIRE 608 144 576 144
WIRE 688 144 688 128
WIRE 688 144 608 144
WIRE 912 144 880 144
WIRE 960 144 912 144
WIRE 1072 144 1040 144
WIRE 1152 144 1072 144
WIRE -16 160 -16 128
WIRE 352 160 320 160
WIRE 816 160 784 160
WIRE 144 176 144 128
WIRE 224 176 224 128
WIRE 608 192 608 144
WIRE 688 192 688 144
WIRE 1072 192 1072 144
WIRE 1152 192 1152 144
WIRE 320 208 320 160
WIRE 448 208 448 144
WIRE 448 208 320 208
WIRE 784 208 784 160
WIRE 912 208 912 144
WIRE 912 208 784 208
WIRE -16 288 -16 240
WIRE 144 288 144 240
WIRE 144 288 -16 288
WIRE 224 288 224 256
WIRE 224 288 144 288
WIRE 608 288 608 256
WIRE 608 288 224 288
WIRE 688 288 688 272
WIRE 688 288 608 288
WIRE 1072 288 1072 256
WIRE 1072 288 688 288
WIRE 1152 288 1152 272
WIRE 1152 288 1072 288
SYMBOL cap 592 192 R0
WINDOW 3 -125 55 Left 2
SYMATTR Value {Q2/w02/R}
SYMATTR InstName C2
SYMBOL voltage -16 144 R0
WINDOW 0 -72 17 Left 2
WINDOW 123 -98 91 Left 2
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value2 AC 1 0
SYMATTR Value ""
SYMBOL res 1056 128 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value {R}
SYMBOL cap 128 176 R0
WINDOW 3 -108 72 Left 2
SYMATTR Value {Q1/w01/R}
SYMATTR InstName C1
SYMBOL ind 1136 176 R0
SYMATTR InstName L3
SYMATTR Value {R/w03/Q3}
SYMBOL res 592 128 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value {R}
SYMBOL cap 1056 192 R0
WINDOW 3 -117 63 Left 2
SYMATTR Value {Q3/w03/R}
SYMATTR InstName C3
SYMBOL ind 672 176 R0
SYMATTR InstName L2
SYMATTR Value {R/w02/Q2}
SYMBOL ind 208 160 R0
SYMATTR InstName L1
SYMATTR Value {R/w01/Q1}
SYMBOL OpAmps\\opamp 384 208 M180
SYMATTR InstName U1
SYMBOL OpAmps\\opamp 848 208 M180
SYMATTR InstName U2
SYMBOL res 128 112 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value {R}
FLAG -16 288 0
TEXT -104 352 Left 2 !.ac dec 10000 0.1 10
TEXT -104 384 Left 2 !.param R={10} w0={2*pi}\n.param Q1={7.981} w01={w0*1}\n.param Q2={16.1} w02={w0*1.1077}\n.param Q3={16.1} w03={w0*0.903}
TEXT 456 352 Left 2 !.lib opamp.sub
* Z:\home\khalils\Downloads\files\data\raw_asc\LT1001.asc
* Generated by LTspice 26.0.1 for Windows.
* Precision Absolute Value Circuit
* Library below included based on ModelFile attribute of instance XU1, XU2 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\LT1001.asy)
XU2 N005 N003 +V -V OUT LT1001 ;pnba In+)In-)V+)V-)OUT
R4 N003 N002 10K
R1 N002 N001 10K
R5 OUT N003 10K
D2 N004 N005 1N4148
V1 +V 0 15
XU1 0 N001 +V -V N004 LT1001 ;pnba In+)In-)V+)V-)OUT
R3 N005 N001 10K
D1 N002 N004 1N4148
V2 -V 0 -15
R2 N001 IN 10K
V3 IN 0 SINE(0 10 100)
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.tran 30m
.lib LTC.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 896 680
WIRE -16 96 -128 96
WIRE 112 96 64 96
WIRE 160 96 112 96
WIRE 304 96 240 96
WIRE 352 96 304 96
WIRE 448 96 432 96
WIRE 464 96 448 96
WIRE 576 96 544 96
WIRE -128 112 -128 96
WIRE 304 128 304 96
WIRE -128 208 -128 192
WIRE 192 208 192 192
WIRE 496 208 496 192
WIRE 112 224 112 96
WIRE 160 224 112 224
WIRE 448 224 448 96
WIRE 464 224 448 224
WIRE 304 240 304 192
WIRE 304 240 224 240
WIRE 576 240 576 96
WIRE 576 240 528 240
WIRE 608 240 576 240
WIRE 160 256 144 256
WIRE 464 256 448 256
WIRE 192 288 192 272
WIRE 304 288 304 240
WIRE 496 288 496 272
WIRE -96 336 -96 320
WIRE 0 336 0 320
WIRE 112 384 112 224
WIRE 160 384 112 384
WIRE 304 384 304 352
WIRE 304 384 240 384
WIRE 448 384 448 256
WIRE 448 384 304 384
WIRE -96 432 -96 416
WIRE 0 432 0 416
SYMBOL res 256 368 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value 10K
SYMBOL diode 288 128 R0
SYMATTR InstName D1
SYMATTR Value 1N4148
SYMBOL voltage 0 320 R0
SYMATTR InstName V1
SYMATTR Value 15
SYMBOL opamps\\LT1001 496 176 R0
SYMATTR InstName U2
SYMBOL res 560 80 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R5
SYMATTR Value 10K
SYMBOL res 256 80 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 10K
SYMBOL diode 288 288 R0
SYMATTR InstName D2
SYMATTR Value 1N4148
SYMBOL res 448 80 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value 10K
SYMBOL voltage -128 96 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V3
SYMATTR Value SINE(0 10 100)
SYMBOL opamps\\LT1001 192 176 R0
SYMATTR InstName U1
SYMBOL res 80 80 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 10K
SYMBOL voltage -96 320 R0
SYMATTR InstName V2
SYMATTR Value -15
FLAG 0 432 0
FLAG 192 192 +V
FLAG 0 320 +V
FLAG 192 288 -V
FLAG -96 432 0
FLAG -96 320 -V
FLAG -128 208 0
FLAG 496 192 +V
FLAG 496 288 -V
FLAG 144 256 0
FLAG -128 96 IN
FLAG 608 240 OUT
TEXT 504 352 Left 2 !.tran 30m
TEXT 256 40 Bottom 2 ;Precision Absolute Value Circuit
* Z:\home\khalils\Downloads\files\data\raw_asc\53ecbffcd52d_pmos.asc
* Generated by LTspice 26.0.1 for Windows.
M2 Vds Vg 0 0 FDS6375
Vg Vg 0 -1.3 Rser=0 Cpar=0
Vds Vds 0
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
.dc Vds 0 -1.3
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE 48 160 48 112
WIRE -464 208 -464 176
WIRE -288 208 -288 176
WIRE -464 320 -464 288
WIRE -288 320 -288 288
WIRE 48 384 48 256
IOPIN -464 176 Out
IOPIN -288 176 Out
IOPIN 0 240 In
IOPIN 48 112 In
SYMBOL pmos 0 160 R0
SYMATTR InstName M2
SYMATTR Value FDS6375
SYMBOL voltage -288 192 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 3 24 44 Left 0
SYMATTR Value ""
SYMATTR InstName Vds
SYMBOL voltage -464 192 R0
WINDOW 3 24 96 Left 0
WINDOW 123 24 124 Left 0
WINDOW 39 24 152 Left 0
SYMATTR Value -1.3
SYMATTR SpiceLine Rser=0 Cpar=0
SYMATTR InstName Vg
FLAG -464 320 0
FLAG -464 176 Vg
FLAG -288 320 0
FLAG -288 176 Vds
FLAG 0 240 Vg
FLAG 48 112 Vds
FLAG 48 384 0
TEXT -536 360 Left 2 !.dc Vds 0 -1.3
* Z:\home\khalils\Downloads\files\data\raw_asc\3d5e34efd539_comparator_99.asc
* Generated by LTspice 26.0.1 for Windows.
* All parameters that will be optimized\nshould be listed in tables\nwith arbitrary values.
M1 Vout N001 0 0 NMOS l={L1} w={W1} ad={W1*L1} as={W1*L1} pd={2*W1+2*L1} ps={2*W1+2*L1} m=1
V1 Vdd 0 1.8
M2 Vdd Vin Vout Vdd PMOS l={L2} w={W2} ad={W2*L2} as={W2*L2} pd={2*W1+2*L1} ps={2*W1+2*L1} m=1
V2 N001 0 {Vcomp}
V3 Vin 0
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
.param W1=2.9u
.param W2=2.6u
.param Vcomp=648.0m
.param L1=1.7u
.param L2=2.1u
.dc V3 0 1.8 0.01
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 4496 2148
WIRE -80 -480 -112 -480
WIRE -64 -480 -80 -480
WIRE -272 -416 -336 -416
WIRE -224 -416 -272 -416
WIRE -112 -416 -112 -480
WIRE -64 -416 -112 -416
WIRE -336 -384 -336 -416
WIRE -64 -368 -64 -416
WIRE -64 -368 -112 -368
WIRE -224 -336 -224 -416
WIRE -160 -336 -224 -336
WIRE -656 -320 -656 -384
WIRE -336 -256 -336 -304
WIRE -112 -240 -112 -320
WIRE 32 -240 -112 -240
WIRE -656 -192 -656 -240
WIRE -112 -192 -112 -240
WIRE -240 -176 -336 -176
WIRE -336 -144 -336 -176
WIRE -80 -144 -112 -144
WIRE -240 -112 -240 -176
WIRE -160 -112 -240 -112
WIRE -112 -80 -112 -96
WIRE -80 -80 -80 -144
WIRE -80 -80 -112 -80
WIRE -112 -32 -112 -80
WIRE -336 -16 -336 -64
SYMBOL voltage -656 -336 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 1.8
SYMBOL nmos4 -160 -192 R0
SYMATTR InstName M1
SYMATTR Value2 l={L1} w={W1} ad={W1*L1} as={W1*L1} pd={2*W1+2*L1} ps={2*W1+2*L1} m=1
SYMBOL voltage -336 -400 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V3
SYMATTR Value ""
SYMBOL pmos4 -160 -416 R0
SYMATTR InstName M2
SYMATTR Value2 l={L2} w={W2} ad={W2*L2} as={W2*L2} pd={2*W1+2*L1} ps={2*W1+2*L1} m=1
SYMBOL voltage -336 -160 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value {Vcomp}
FLAG -656 -192 0
FLAG -80 -480 Vdd
FLAG -656 -384 Vdd
FLAG -112 -32 0
FLAG -336 -16 0
FLAG -336 -256 0
FLAG -272 -416 Vin
FLAG 32 -240 Vout
TEXT -360 -728 Left 2 !.param W1=2.9u
TEXT -360 -704 Left 2 !.param W2=2.6u
TEXT -360 -632 Left 2 !.param Vcomp=648.0m
TEXT -360 -680 Left 2 !.param L1=1.7u
TEXT -360 -656 Left 2 !.param L2=2.1u
TEXT 72 -680 Left 2 !.dc V3 0 1.8 0.01
TEXT -384 -848 Left 2 ;All parameters that will be optimized\nshould be listed in tables\nwith arbitrary values.
* Z:\home\khalils\Downloads\files\data\raw_asc\92c58ffeb60a_Draft4P.asc
* Generated by LTspice 26.0.1 for Windows.
M1 N001 VG VD N001 pch l=lset w=wset
VUDS VD 0 0.9
V1 N001 0 1.8
VGS N001 VG 0.6
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
.lib cmos018.txt
.step param lset 0.2u 10u 0.1u
.meas DC ID1 FIND Id(M1) WHEN V(VD)=0.5
.meas DC ID2 FIND Id(M1) WHEN V(VD)=1.3
.meas DC ID0 FIND Id(M1) WHEN V(VD)=0.9
.meas rout param (1.3-0.5)/(ID2-ID1)
.meas lambda param 1/(ID0*rout)
.dc UDS 0.5 1.3 100m
.param wset=9.2*lset
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 928 680
WIRE 256 64 64 64
WIRE 272 64 256 64
WIRE 576 64 272 64
WIRE 64 80 64 64
WIRE 256 96 256 64
WIRE 576 128 576 64
WIRE 272 144 272 64
WIRE 272 144 256 144
WIRE 64 176 64 160
WIRE 160 176 64 176
WIRE 208 176 160 176
WIRE 256 208 256 192
WIRE 256 208 224 208
WIRE 576 288 576 208
SYMBOL pmos4 208 96 R0
WINDOW 0 76 21 Left 2
WINDOW 3 76 46 Left 2
WINDOW 123 77 75 Left 2
SYMATTR InstName M1
SYMATTR Value pch
SYMATTR Value2 l=lset w=wset
SYMBOL voltage 64 64 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 0 38 45 Left 2
WINDOW 3 38 76 Left 2
SYMATTR InstName VGS
SYMATTR Value 0.6
SYMBOL voltage 256 192 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 0 41 41 Left 2
WINDOW 3 44 71 Left 2
SYMATTR InstName UDS
SYMATTR Value 0.9
SYMBOL voltage 576 112 R0
WINDOW 0 37 39 Left 2
WINDOW 3 38 72 Left 2
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 1.8
FLAG 256 288 0
FLAG 576 288 0
FLAG 160 176 VG
FLAG 224 208 VD
TEXT 32 -240 Left 2 !.lib cmos018.txt
TEXT 32 -208 Left 2 !.step param lset 0.2u 10u 0.1u
TEXT 32 -144 Left 2 !.meas DC ID1 FIND Id(M1) WHEN V(VD)=0.5
TEXT 32 -120 Left 2 !.meas DC ID2 FIND Id(M1) WHEN V(VD)=1.3
TEXT 32 -96 Left 2 !.meas DC ID0 FIND Id(M1) WHEN V(VD)=0.9
TEXT 32 -72 Left 2 !.meas rout param (1.3-0.5)/(ID2-ID1)
TEXT 32 -48 Left 2 !.meas lambda param 1/(ID0*rout)
TEXT 32 -16 Left 2 !.dc UDS 0.5 1.3 100m
TEXT 32 -184 Left 2 !.param wset=9.2*lset