* Z:\home\khalils\Downloads\files\data\raw_asc\3cc4523ef63f_grad_gain.asc
* Generated by LTspice 26.0.1 for Windows.
M7 N009 N013 N005 0 NMOS l=180n w=900n
Rout Vout- Vout+ 100k
R3 Vout+ 0 200
C2 N004 N014 1p
VLO- N013 0 SINE(0 1.0 2.3G 0 0 180 0)
C3 N005 N004 0.5p
R1 N011 N007 5k
I1 N001 N006 5m
M3 N011 N007 0 0 NMOS l=180n w=5.4u
Cs N007 N010 1n
M6 N006 N009 Vout- N006 PMOS l=180n w=15u
I2 N001 N004 2m
Vdd N001 0 1.2
Vin N010 0 SINE(0 0.3 2.4G) Rser=50
R4 Vout- 0 200
M2 N004 N011 0 N001 PMOS l=180n w=14.4u
Rm N014 N007 450
C1 N003 0 2p
M5 N006 N008 Vout+ N006 PMOS l=180n w=15u
M4 N008 N002 N005 0 NMOS l=180n w=900n
VLO+ N002 0 SINE(0 1.0 2.3G)
I3 N001 N003 2m
Vb N012 0 0.2
M1 N003 N007 N011 N001 PMOS l=180n w=144u
R2 N005 N012 2k
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
.tran 0 50n 0
.model NMOS NMOS (LEVEL=1 VTO=0.5 KP=3.1e-3 TOX=0.4E-9 LAMBDA=0.4 CJ=3e-4 MJ=0.35 CJSW=40e-9 MJSW=0.3)
.model PMOS PMOS (LEVEL=1 VTO=-0.55 KP=1.2e-3 TOX=0.4E-9 LAMBDA=0.5 CJ=3e-4 MJ=0.35 CJSW=35e-9 MJSW=0.3)
.meas TRAN Vin_max MAX V(N010)
.meas TRAN Vout_diff MAX (V(Vout+)-V(Vout-))
.meas TRAN Gain PARAM Vout_diff/Vin_max
.meas TRAN Vout_dB PARAM 20*log10(Gain)
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 884
WIRE -912 48 -976 48
WIRE -656 48 -912 48
WIRE -592 48 -656 48
WIRE 384 48 -592 48
WIRE 672 48 384 48
WIRE -64 112 -224 112
WIRE -1104 160 -1200 160
WIRE -976 160 -976 128
WIRE -976 160 -1040 160
WIRE -64 160 -64 112
WIRE -912 208 -912 48
WIRE -912 208 -976 208
WIRE -656 208 -656 128
WIRE -544 208 -656 208
WIRE -80 208 -144 208
WIRE 336 208 304 208
WIRE 384 208 384 128
WIRE 384 208 336 208
WIRE 480 208 384 208
WIRE 496 208 480 208
WIRE -1024 240 -1104 240
WIRE -656 256 -656 208
WIRE -656 256 -704 256
WIRE 336 256 336 208
WIRE 336 256 304 256
WIRE 480 256 480 208
WIRE 496 256 480 256
WIRE -544 288 -544 208
WIRE -464 288 -544 288
WIRE -288 288 -400 288
WIRE -144 288 -144 208
WIRE -144 288 -288 288
WIRE 16 288 16 208
WIRE 256 288 16 288
WIRE 672 288 544 288
WIRE -592 304 -592 48
WIRE -592 304 -704 304
WIRE -288 320 -288 288
WIRE 304 320 304 304
WIRE 352 320 304 320
WIRE 496 320 496 304
WIRE 496 320 432 320
WIRE -1168 336 -1312 336
WIRE -1104 336 -1104 240
WIRE -1072 336 -1104 336
WIRE -976 336 -976 256
WIRE -976 336 -992 336
WIRE -752 336 -976 336
WIRE 304 336 304 320
WIRE 496 336 496 320
WIRE -1312 384 -1312 336
WIRE -976 448 -976 336
WIRE -144 448 -144 288
WIRE -48 448 -144 448
WIRE 672 448 672 288
WIRE 672 448 48 448
WIRE -288 480 -288 400
WIRE -32 496 -96 496
WIRE -1104 528 -1104 336
WIRE -1024 528 -1104 528
WIRE -96 528 -96 496
WIRE -1104 656 -1104 528
WIRE -912 656 -1104 656
WIRE -672 656 -832 656
WIRE -608 656 -624 656
WIRE -544 656 -544 288
WIRE -544 656 -608 656
IOPIN 496 320 Out
IOPIN 304 304 Out
SYMBOL voltage -224 96 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName VLO+
SYMATTR Value SINE(0 1.0 2.3G)
SYMBOL cap -1104 320 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName Cs
SYMATTR Value 1n
SYMBOL voltage -96 512 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName VLO-
SYMATTR Value SINE(0 1.0 2.3G 0 0 180 0)
SYMBOL res 288 320 R0
SYMATTR InstName R3
SYMATTR Value 200
SYMBOL current -656 48 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName I2
SYMATTR Value 2m
SYMBOL cap -608 640 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C2
SYMATTR Value 1p
SYMBOL voltage -1312 368 R0
WINDOW 3 24 152 Left 2
WINDOW 123 24 44 Left 2
WINDOW 39 24 72 Left 2
SYMATTR Value SINE(0 0.3 2.4G)
SYMATTR SpiceLine Rser=50
SYMATTR InstName Vin
SYMBOL nmos4 48 496 M270
SYMATTR InstName M7
SYMATTR Value2 l=180n w=900n
SYMBOL res -976 320 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 5k
SYMBOL cap -400 272 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C3
SYMATTR Value 0.5p
SYMBOL res 448 304 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName Rout
SYMATTR Value 100k
SYMBOL res -304 304 R0
SYMATTR InstName R2
SYMATTR Value 2k
SYMBOL res -816 640 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName Rm
SYMATTR Value 450
SYMBOL pmos4 -752 256 R0
SYMATTR InstName M2
SYMATTR Value2 l=180n w=14.4u
SYMBOL nmos4 -1024 448 R0
SYMATTR InstName M3
SYMATTR Value2 l=180n w=5.4u
SYMBOL voltage -288 464 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName Vb
SYMATTR Value 0.2
SYMBOL current 384 48 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName I1
SYMATTR Value 5m
SYMBOL pmos4 256 208 R0
SYMATTR InstName M5
SYMATTR Value2 l=180n w=15u
SYMBOL current -976 48 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName I3
SYMATTR Value 2m
SYMBOL voltage 672 32 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName Vdd
SYMATTR Value 1.2
SYMBOL res 480 320 R0
SYMATTR InstName R4
SYMATTR Value 200
SYMBOL nmos4 16 160 R90
SYMATTR InstName M4
SYMATTR Value2 l=180n w=900n
SYMBOL pmos4 544 208 M0
SYMATTR InstName M6
SYMATTR Value2 l=180n w=15u
SYMBOL pmos4 -1024 160 R0
SYMATTR InstName M1
SYMATTR Value2 l=180n w=144u
SYMBOL cap -1040 144 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C1
SYMATTR Value 2p
FLAG 672 128 0
FLAG -1200 160 0
FLAG -704 352 0
FLAG -976 496 0
FLAG -976 544 0
FLAG -1312 464 0
FLAG -32 208 0
FLAG -224 192 0
FLAG -96 608 0
FLAG 304 416 0
FLAG 496 416 0
FLAG 496 320 Vout-
FLAG -288 560 0
FLAG 0 448 0
FLAG 304 304 Vout+
TEXT -1344 704 Left 2 !.tran 0 50n 0
TEXT -840 816 Left 2 !.model NMOS NMOS (LEVEL=1 VTO=0.5 KP=3.1e-3 TOX=0.4E-9 LAMBDA=0.4 CJ=3e-4 MJ=0.35 CJSW=40e-9 MJSW=0.3)
TEXT -840 848 Left 2 !.model PMOS PMOS (LEVEL=1 VTO=-0.55 KP=1.2e-3 TOX=0.4E-9 LAMBDA=0.5 CJ=3e-4 MJ=0.35 CJSW=35e-9 MJSW=0.3)
TEXT -1816 232 Left 2 !.meas TRAN Vin_max MAX V(N010) \n.meas TRAN Vout_diff MAX (V(Vout+)-V(Vout-))\n.meas TRAN Gain PARAM Vout_diff/Vin_max
TEXT -1864 352 Left 2 !.meas TRAN Vout_dB PARAM 20*log10(Gain)