* Z:\home\khalils\Downloads\files\data\raw_asc\34c86fec91be_1_diff_pair-as-opamp.asc
* Generated by LTspice 26.0.1 for Windows.
;.dc VCM -500m 500m 10u
;ac oct 100 10 1000MEG
R2 vout vid2 10Meg
R1 VDD vgatebias 20k
VCM vin 0 SINE(0 1m 1k) AC 1
Md2 vout vid2 vs vs NMOS-SH l=1u w=10u
Mp2 vout vgatep VDD VDD PMOS-SH l=1u w=10u
R3 vid2 vin 2.5Meg
VDD VDD 0 1.5
VSS 0 -VSS 1.5
Mp1 vgatep vgatep VDD VDD PMOS-SH l=1u w=10u
Mbias vgatebias vgatebias -VSS -VSS NMOS-SH l=1u w=10u
Mtail vs vgatebias -VSS -VSS NMOS-SH l=1u w=10u
Md1 vgatep 0 vs vs NMOS-SH l=1u w=10u
C1 vout 0 0.5p
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
.model NMOS-SH nmos (Kp=190u Vto=0.57 lambda=0.16)
.op
.model PMOS-SH pmos (Kp=55u Vto=-0.71 lambda=0.16)
.tran 2m
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1092 680
WIRE -976 -64 -1200 -64
WIRE -752 -64 -976 -64
WIRE -672 -64 -752 -64
WIRE -560 -64 -672 -64
WIRE -320 -64 -560 -64
WIRE -256 -64 -320 -64
WIRE -672 0 -672 -64
WIRE -320 0 -320 -64
WIRE -544 16 -624 16
WIRE -480 16 -544 16
WIRE -368 16 -480 16
WIRE -752 48 -752 -64
WIRE -672 48 -752 48
WIRE -256 48 -256 -64
WIRE -256 48 -320 48
WIRE -32 64 -96 64
WIRE 112 64 48 64
WIRE 160 64 112 64
WIRE 336 64 240 64
WIRE 416 64 336 64
WIRE -1200 80 -1200 -64
WIRE -976 128 -976 -64
WIRE -320 160 -320 96
WIRE -240 160 -320 160
WIRE -96 160 -96 64
WIRE -96 160 -240 160
WIRE -672 176 -672 96
WIRE -544 176 -544 16
WIRE -544 176 -672 176
WIRE -96 176 -96 160
WIRE 416 176 416 64
WIRE -672 224 -672 176
WIRE -320 224 -320 160
WIRE -1200 256 -1200 160
WIRE -1200 256 -1328 256
WIRE -592 272 -672 272
WIRE -320 272 -384 272
WIRE -96 272 -96 240
WIRE -720 304 -816 304
WIRE -224 304 -272 304
WIRE 112 304 112 64
WIRE 112 304 -224 304
WIRE 416 304 416 256
WIRE -1328 336 -1328 256
WIRE -816 352 -816 304
WIRE -672 384 -672 320
WIRE -592 384 -592 272
WIRE -592 384 -672 384
WIRE -512 384 -592 384
WIRE -480 384 -512 384
WIRE -384 384 -384 272
WIRE -384 384 -480 384
WIRE -320 384 -320 320
WIRE -320 384 -384 384
WIRE -976 400 -976 208
WIRE -912 400 -976 400
WIRE -864 400 -912 400
WIRE -1200 432 -1200 256
WIRE -976 432 -976 400
WIRE -512 432 -512 384
WIRE -976 480 -1056 480
WIRE -448 480 -512 480
WIRE -864 512 -864 400
WIRE -864 512 -928 512
WIRE -560 512 -864 512
WIRE -1200 624 -1200 512
WIRE -1056 624 -1056 480
WIRE -1056 624 -1200 624
WIRE -976 624 -976 528
WIRE -976 624 -1056 624
WIRE -656 624 -976 624
WIRE -512 624 -512 528
WIRE -512 624 -656 624
WIRE -448 624 -448 480
WIRE -448 624 -512 624
DATAFLAG -112 160 ""
DATAFLAG 16 304 ""
DATAFLAG -640 176 ""
DATAFLAG -544 384 ""
DATAFLAG 112 64 ""
SYMBOL res -48 80 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R2
SYMATTR Value 10Meg
SYMBOL nmos4 -720 224 R0
WINDOW 123 56 100 Left 2
SYMATTR Value2 l=1u w=10u
SYMATTR InstName Md1
SYMATTR Value NMOS-SH
SYMBOL voltage -1200 416 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName VSS
SYMATTR Value 1.5
SYMBOL voltage -1200 64 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName VDD
SYMATTR Value 1.5
SYMBOL cap -112 176 R0
SYMATTR InstName C1
SYMATTR Value 0.5p
SYMBOL nmos4 -560 432 R0
WINDOW 123 56 100 Left 2
SYMATTR Value2 l=1u w=10u
SYMATTR InstName Mtail
SYMATTR Value NMOS-SH
SYMBOL pmos4 -368 96 M180
WINDOW 123 56 100 Left 2
SYMATTR Value2 l=1u w=10u
SYMATTR InstName Mp2
SYMATTR Value PMOS-SH
SYMBOL res 144 80 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R3
SYMATTR Value 2.5Meg
SYMBOL res -992 112 R0
SYMATTR InstName R1
SYMATTR Value 20k
SYMBOL nmos4 -928 432 M0
WINDOW 123 56 100 Left 2
SYMATTR Value2 l=1u w=10u
SYMATTR InstName Mbias
SYMATTR Value NMOS-SH
SYMBOL nmos4 -272 224 M0
WINDOW 123 56 100 Left 2
SYMATTR Value2 l=1u w=10u
SYMATTR InstName Md2
SYMATTR Value NMOS-SH
SYMBOL voltage 416 160 R0
WINDOW 123 24 124 Left 2
WINDOW 39 0 0 Left 2
SYMATTR Value2 AC 1
SYMATTR InstName VCM
SYMATTR Value SINE(0 1m 1k)
SYMBOL pmos4 -624 96 R180
WINDOW 123 56 100 Left 2
SYMATTR Value2 l=1u w=10u
SYMATTR InstName Mp1
SYMATTR Value PMOS-SH
FLAG -1328 336 0
FLAG 416 304 0
FLAG -224 304 vid2
FLAG -96 272 0
FLAG -240 160 vout
FLAG -480 384 vs
FLAG -912 400 vgatebias
FLAG -480 16 vgatep
FLAG -560 -64 VDD
FLAG -656 624 -VSS
FLAG -816 352 0
FLAG 336 64 vin
TEXT -1200 -272 Left 2 !.model NMOS-SH nmos (Kp=190u Vto=0.57 lambda=0.16)
TEXT -1200 -208 Left 2 !;.dc VCM -500m 500m 10u
TEXT -1200 -240 Left 2 !.op
TEXT -1192 -168 Left 2 !;ac oct 100 10 1000MEG
TEXT -1200 -304 Left 2 !.model PMOS-SH pmos (Kp=55u Vto=-0.71 lambda=0.16)
TEXT -1192 -136 Left 2 !.tran 2m