* Z:\home\khalils\Downloads\files\data\raw_asc\19897196e105_11_envelope_final_SNR.asc
* Generated by LTspice 26.0.1 for Windows.
M1 N026 vgb vs_m1 0 NMOS_VTL l=50n w=150n
M2 N021 N018 N026 0 NMOS_VTL l=50n w=150n
M3 N019 vgb N021 0 NMOS_VTL l=50n w=150n
M4 vd_m4 N018 N019 0 NMOS_VTL l=50n w=150n
C30 0 vd_m4 {CL}
C2 N021 0 {CL}
C3 N019 0 {Cdec}
C4 N018 0 {Cdec}
C5 N026 0 {Cdec}
R1 N018 vgb {Rval}
V1 vgb 0 {Vgb}
M5 N013 vgb vd_m4 0 NMOS_VTL l=50n w=150n
M6 N009 N001 N013 0 NMOS_VTL l=50n w=150n
M7 N005 vgb N009 0 NMOS_VTL l=50n w=150n
M8 vd_m8 N001 N005 0 NMOS_VTL l=50n w=150n
C6 0 vd_m8 {CL}
C7 N009 0 {CL}
C8 N005 0 {Cdec}
C9 N001 0 {Cdec}
C10 N013 0 {Cdec}
R4 N001 vgb {Rval}
M9 N014 vgb vd_m8 0 NMOS_VTL l=50n w=150n
M10 N010 N002 N014 0 NMOS_VTL l=50n w=150n
M11 N006 vgb N010 0 NMOS_VTL l=50n w=150n
M12 vd_m12 N002 N006 0 NMOS_VTL l=50n w=150n
C11 0 vd_m12 {CL}
C12 N010 0 {CL}
C13 N006 0 {Cdec}
C14 N002 0 {Cdec}
C15 N014 0 {Cdec}
R5 N002 vgb {Rval}
M13 N015 vgb vd_m12 0 NMOS_VTL l=50n w=150n
M14 N011 N003 N015 0 NMOS_VTL l=50n w=150n
M15 N007 vgb N011 0 NMOS_VTL l=50n w=150n
M16 vd_m16 N003 N007 0 NMOS_VTL l=50n w=150n
C16 0 vd_m16 {CL}
C17 N011 0 {CL}
C18 N007 0 {Cdec}
C19 N003 0 {Cdec}
C20 N015 0 {Cdec}
R6 N003 vgb {Rval}
M17 N016 vgb vd_m16 0 NMOS_VTL l=50n w=150n
M18 N012 N004 N016 0 NMOS_VTL l=50n w=150n
M19 N008 vgb N012 0 NMOS_VTL l=50n w=150n
M20 vd_m20 N004 N008 0 NMOS_VTL l=50n w=150n
C21 0 vd_m20 {CL}
C22 N012 0 {CL}
C23 N008 0 {Cdec}
C24 N004 0 {Cdec}
C25 N016 0 {Cdec}
R7 N004 vgb {Rval}
M21 out vd_m20 0 0 NMOS_VTL l=50n w=75n
I2 vdd out 15n
M22 vdd out N024 0 NMOS_VTL l=500n w=1u
V3 vdd 0 1
I3 N024 0 20n
R8 N024 vs_m1 20Meg
C1 vs_m1 0 1n
M23 N025 N023 0 0 NMOS_VTL l=50n w=75n
M24 N023 N023 0 0 NMOS_VTL l=50n w=75n
M25 N020 N022 N023 N020 PMOS_VTL l=150n w=1u
M26 N020 out N025 N020 PMOS_VTL l=150n w=1u
V4 N022 0 0.18V
I4 N017 0 15n
C27 out 0 15f
M27 comp_out N025 0 0 NMOS_VTL l=50n w=300n
M29 vdd N017 N020 vdd PMOS_VTL l=150n w=1u m=3
M30 vdd N017 N017 vdd PMOS_VTL l=150n w=1u
M28 vdd N017 comp_out vdd PMOS_VTL l=150n w=1u m=3
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
* f = 900MHz\nBR = 100Kb/s
.lib "C:\Users\giuli\Documents\LTspice\lib\sub\mosVTL.model.inc"
.model MYSW SW(Ron=1 Roff=100Meg Vt=-0.5)
* .tran 0.05m
.param CL=25f
.param Cdec=25f
.param Rval=1Meg
* ENVELOPE DETECTOR:
* .op
.param Vgb=0.26
* AvCS = -gm/gd+GL
.noise V(out) V1 dec 100 10 1000Meg
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 4216 680
WIRE -1840 -1728 -1904 -1728
WIRE -1712 -1728 -1776 -1728
WIRE -960 -1728 -1024 -1728
WIRE -832 -1728 -896 -1728
WIRE -80 -1728 -144 -1728
WIRE 48 -1728 -16 -1728
WIRE 800 -1728 736 -1728
WIRE 928 -1728 864 -1728
WIRE -1712 -1712 -1712 -1728
WIRE -832 -1712 -832 -1728
WIRE 48 -1712 48 -1728
WIRE 928 -1712 928 -1728
WIRE -1904 -1648 -1904 -1728
WIRE -1024 -1648 -1024 -1728
WIRE -144 -1648 -144 -1728
WIRE 736 -1648 736 -1728
WIRE -1952 -1568 -2032 -1568
WIRE -1072 -1568 -1152 -1568
WIRE -192 -1568 -272 -1568
WIRE 688 -1568 608 -1568
WIRE -2192 -1488 -2368 -1488
WIRE -1904 -1488 -1904 -1552
WIRE -1904 -1488 -2128 -1488
WIRE -1312 -1488 -1488 -1488
WIRE -1024 -1488 -1024 -1552
WIRE -1024 -1488 -1248 -1488
WIRE -432 -1488 -608 -1488
WIRE -144 -1488 -144 -1552
WIRE -144 -1488 -368 -1488
WIRE 448 -1488 272 -1488
WIRE 736 -1488 736 -1552
WIRE 736 -1488 512 -1488
WIRE -1904 -1440 -1904 -1488
WIRE -1024 -1440 -1024 -1488
WIRE -144 -1440 -144 -1488
WIRE 736 -1440 736 -1488
WIRE -1952 -1360 -1968 -1360
WIRE -1072 -1360 -1088 -1360
WIRE -192 -1360 -208 -1360
WIRE 688 -1360 672 -1360
WIRE -2368 -1312 -2368 -1488
WIRE -2192 -1312 -2368 -1312
WIRE -2032 -1312 -2032 -1568
WIRE -2032 -1312 -2128 -1312
WIRE -1488 -1312 -1488 -1488
WIRE -1312 -1312 -1488 -1312
WIRE -1152 -1312 -1152 -1568
WIRE -1152 -1312 -1248 -1312
WIRE -608 -1312 -608 -1488
WIRE -432 -1312 -608 -1312
WIRE -272 -1312 -272 -1568
WIRE -272 -1312 -368 -1312
WIRE 272 -1312 272 -1488
WIRE 448 -1312 272 -1312
WIRE 608 -1312 608 -1568
WIRE 608 -1312 512 -1312
WIRE -1904 -1296 -1904 -1344
WIRE -1760 -1296 -1904 -1296
WIRE -1024 -1296 -1024 -1344
WIRE -880 -1296 -1024 -1296
WIRE -144 -1296 -144 -1344
WIRE 0 -1296 -144 -1296
WIRE 736 -1296 736 -1344
WIRE 880 -1296 736 -1296
WIRE -1760 -1280 -1760 -1296
WIRE -880 -1280 -880 -1296
WIRE 0 -1280 0 -1296
WIRE 880 -1280 880 -1296
WIRE -1760 -1264 -1760 -1280
WIRE -880 -1264 -880 -1280
WIRE 0 -1264 0 -1280
WIRE 880 -1264 880 -1280
WIRE -1904 -1248 -1904 -1296
WIRE -1024 -1248 -1024 -1296
WIRE -144 -1248 -144 -1296
WIRE 736 -1248 736 -1296
WIRE -2272 -1200 -2432 -1200
WIRE -2208 -1200 -2272 -1200
WIRE -2032 -1200 -2032 -1312
WIRE -2032 -1200 -2128 -1200
WIRE -1392 -1200 -1552 -1200
WIRE -1328 -1200 -1392 -1200
WIRE -1152 -1200 -1152 -1312
WIRE -1152 -1200 -1248 -1200
WIRE -512 -1200 -672 -1200
WIRE -448 -1200 -512 -1200
WIRE -272 -1200 -272 -1312
WIRE -272 -1200 -368 -1200
WIRE 368 -1200 208 -1200
WIRE 432 -1200 368 -1200
WIRE 608 -1200 608 -1312
WIRE 608 -1200 512 -1200
WIRE -2032 -1168 -2032 -1200
WIRE -1952 -1168 -2032 -1168
WIRE -1152 -1168 -1152 -1200
WIRE -1072 -1168 -1152 -1168
WIRE -272 -1168 -272 -1200
WIRE -192 -1168 -272 -1168
WIRE 608 -1168 608 -1200
WIRE 688 -1168 608 -1168
WIRE -2368 -1104 -2368 -1312
WIRE -2192 -1104 -2368 -1104
WIRE -1904 -1104 -1904 -1152
WIRE -1904 -1104 -2128 -1104
WIRE -1488 -1104 -1488 -1312
WIRE -1312 -1104 -1488 -1104
WIRE -1024 -1104 -1024 -1152
WIRE -1024 -1104 -1248 -1104
WIRE -608 -1104 -608 -1312
WIRE -432 -1104 -608 -1104
WIRE -144 -1104 -144 -1152
WIRE -144 -1104 -368 -1104
WIRE 272 -1104 272 -1312
WIRE 448 -1104 272 -1104
WIRE 736 -1104 736 -1152
WIRE 736 -1104 512 -1104
WIRE -1904 -1056 -1904 -1104
WIRE -1024 -1056 -1024 -1104
WIRE -144 -1056 -144 -1104
WIRE 736 -1056 736 -1104
WIRE -2272 -976 -2272 -1200
WIRE -1968 -976 -1968 -1360
WIRE -1968 -976 -2272 -976
WIRE -1952 -976 -1968 -976
WIRE -1392 -976 -1392 -1200
WIRE -1088 -976 -1088 -1360
WIRE -1088 -976 -1392 -976
WIRE -1072 -976 -1088 -976
WIRE -512 -976 -512 -1200
WIRE -208 -976 -208 -1360
WIRE -208 -976 -512 -976
WIRE -192 -976 -208 -976
WIRE 368 -976 368 -1200
WIRE 672 -976 672 -1360
WIRE 672 -976 368 -976
WIRE 688 -976 672 -976
WIRE -2368 -912 -2368 -1104
WIRE -1488 -912 -1488 -1104
WIRE -608 -912 -608 -1104
WIRE 272 -912 272 -1104
WIRE -1904 -880 -1904 -960
WIRE -1024 -880 -1024 -960
WIRE -144 -880 -144 -960
WIRE 736 -880 736 -960
WIRE 256 -576 192 -576
WIRE 384 -576 320 -576
WIRE 384 -560 384 -576
WIRE -2848 -528 -3264 -528
WIRE 192 -496 192 -576
WIRE 144 -416 64 -416
WIRE -3552 -400 -3552 -432
WIRE -3552 -400 -3648 -400
WIRE -3040 -400 -3040 -432
WIRE -2944 -400 -3040 -400
WIRE -2576 -400 -2576 -432
WIRE -2480 -400 -2576 -400
WIRE -1936 -384 -1936 -416
WIRE -3648 -352 -3648 -400
WIRE -3552 -352 -3648 -352
WIRE -2944 -352 -2944 -400
WIRE -2944 -352 -3040 -352
WIRE -2480 -352 -2480 -400
WIRE -2480 -352 -2576 -352
WIRE -96 -336 -272 -336
WIRE 192 -336 192 -400
WIRE 192 -336 -32 -336
WIRE -3456 -320 -3504 -320
WIRE -3264 -320 -3264 -528
WIRE -3264 -320 -3456 -320
WIRE -3088 -320 -3264 -320
WIRE -2848 -320 -2848 -528
WIRE -2624 -320 -2848 -320
WIRE -1424 -320 -1424 -384
WIRE 192 -288 192 -336
WIRE -3552 -256 -3552 -304
WIRE -3456 -256 -3456 -320
WIRE -3456 -256 -3552 -256
WIRE -1936 -240 -1936 -304
WIRE -1600 -240 -1936 -240
WIRE -1472 -240 -1600 -240
WIRE -3552 -224 -3552 -256
WIRE -3040 -224 -3040 -304
WIRE -3040 -224 -3184 -224
WIRE -2896 -224 -3040 -224
WIRE -1600 -208 -1600 -240
WIRE 144 -208 128 -208
WIRE -3184 -192 -3184 -224
WIRE -3120 -192 -3184 -192
WIRE -2896 -192 -2896 -224
WIRE -2896 -192 -2960 -192
WIRE -2576 -192 -2576 -304
WIRE -2480 -192 -2576 -192
WIRE -3184 -160 -3184 -192
WIRE -2896 -160 -2896 -192
WIRE -272 -160 -272 -336
WIRE -96 -160 -272 -160
WIRE 64 -160 64 -416
WIRE 64 -160 -32 -160
WIRE 192 -144 192 -192
WIRE 336 -144 192 -144
WIRE -3552 -128 -3552 -144
WIRE 336 -128 336 -144
WIRE -3120 -112 -3120 -192
WIRE -3120 -112 -3184 -112
WIRE -2960 -112 -2960 -192
WIRE -2896 -112 -2960 -112
WIRE -1600 -112 -1600 -144
WIRE 336 -112 336 -128
WIRE 192 -96 192 -144
WIRE -3232 -80 -3344 -80
WIRE -2768 -80 -2848 -80
WIRE -1936 -80 -1936 -240
WIRE -3344 -64 -3344 -80
WIRE -2576 -64 -2576 -192
WIRE -176 -48 -352 -48
WIRE -112 -48 -176 -48
WIRE 64 -48 64 -160
WIRE 64 -48 -32 -48
WIRE -352 -32 -352 -48
WIRE 64 -16 64 -48
WIRE 144 -16 64 -16
WIRE -3184 0 -3184 -64
WIRE -3056 0 -3184 0
WIRE -1856 0 -1888 0
WIRE -1600 0 -1632 0
WIRE -1568 0 -1600 0
WIRE -1424 0 -1424 -224
WIRE -1424 0 -1488 0
WIRE -2896 16 -2896 -64
WIRE -2624 16 -2896 16
WIRE -1424 32 -1424 0
WIRE -1600 48 -1600 0
WIRE -272 48 -272 -160
WIRE -96 48 -272 48
WIRE 192 48 192 0
WIRE 192 48 -32 48
WIRE -3184 64 -3184 0
WIRE -2896 64 -2896 16
WIRE -1936 64 -1936 16
WIRE -352 64 -352 48
WIRE -2576 80 -2576 32
WIRE 192 96 192 48
WIRE -3056 144 -3056 0
WIRE -3056 144 -3136 144
WIRE -2944 144 -3056 144
WIRE -1600 144 -1600 112
WIRE -1424 144 -1424 112
WIRE -176 176 -176 -48
WIRE 128 176 128 -208
WIRE 128 176 -176 176
WIRE 144 176 128 176
WIRE -3184 192 -3184 160
WIRE -2896 192 -2896 160
WIRE -272 208 -272 48
WIRE 192 272 192 192
WIRE -272 464 -272 208
FLAG 192 -448 0
FLAG 192 -240 0
FLAG 192 -48 0
FLAG 192 144 0
FLAG 384 -560 0
FLAG 336 -64 0
FLAG -352 64 0
FLAG -1904 -1600 0
FLAG -1904 -1392 0
FLAG -1904 -1200 0
FLAG -1904 -1008 0
FLAG -1712 -1712 0
FLAG -1760 -1216 0
FLAG -1904 -1728 vd_m8
FLAG -2368 -912 vg
FLAG -1904 -880 vd_m4
FLAG -272 208 vg
FLAG -352 -48 vgb
FLAG -2432 -1200 vgb
FLAG -1024 -1600 0
FLAG -1024 -1392 0
FLAG -1024 -1200 0
FLAG -1024 -1008 0
FLAG -832 -1712 0
FLAG -880 -1216 0
FLAG -1024 -1728 vd_m12
FLAG -1488 -912 vg
FLAG -1024 -880 vd_m8
FLAG -1552 -1200 vgb
FLAG -144 -1600 0
FLAG -144 -1392 0
FLAG -144 -1200 0
FLAG -144 -1008 0
FLAG 48 -1712 0
FLAG 0 -1216 0
FLAG -144 -1728 vd_m16
FLAG -608 -912 vg
FLAG -144 -880 vd_m12
FLAG -672 -1200 vgb
FLAG 736 -1600 0
FLAG 736 -1392 0
FLAG 736 -1200 0
FLAG 736 -1008 0
FLAG 928 -1712 0
FLAG 880 -1216 0
FLAG 736 -1728 vd_m20
FLAG 272 -912 vg
FLAG 736 -880 vd_m16
FLAG 208 -1200 vgb
FLAG 192 -576 vd_m4
FLAG 192 272 vs_m1
FLAG -1936 64 0
FLAG -1936 -32 0
FLAG -1424 -384 vdd
FLAG -3952 -352 0
FLAG -3952 -432 vdd
FLAG -1424 144 0
FLAG -1600 144 0
FLAG -1856 0 vd_m20
FLAG -1424 -272 0
FLAG -1632 0 vs_m1
FLAG -1936 -240 out
FLAG -1936 -416 vdd
FLAG -2896 192 0
FLAG -3184 192 0
FLAG -3184 112 0
FLAG -2896 112 0
FLAG -3344 16 0
FLAG -2768 -80 out
FLAG -1600 -112 0
FLAG -2576 -16 0
FLAG -3040 -432 vdd
FLAG -3552 -432 vdd
FLAG -3552 -128 0
FLAG -2576 80 0
FLAG -2576 -432 vdd
FLAG -272 464 0
FLAG -2480 -192 comp_out
SYMBOL nmos4 144 96 R0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M1
SYMATTR Value2 l=50n w=150n
SYMBOL nmos4 144 -96 R0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M2
SYMATTR Value2 l=50n w=150n
SYMBOL nmos4 144 -288 R0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M3
SYMATTR Value2 l=50n w=150n
SYMBOL nmos4 144 -496 R0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M4
SYMATTR Value2 l=50n w=150n
SYMBOL cap 320 -592 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C30
SYMATTR Value {CL}
SYMBOL cap 320 -128 R0
WINDOW 3 39 43 Left 2
SYMATTR Value {CL}
SYMATTR InstName C2
SYMBOL cap -32 -352 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C3
SYMATTR Value {Cdec}
SYMBOL cap -32 -176 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C4
SYMATTR Value {Cdec}
SYMBOL cap -32 32 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C5
SYMATTR Value {Cdec}
SYMBOL res -16 -64 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value {Rval}
SYMBOL voltage -352 -48 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 3 -114 53 Left 2
SYMATTR Value {Vgb}
SYMATTR InstName V1
SYMBOL nmos4 -1952 -1056 R0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M5
SYMATTR Value2 l=50n w=150n
SYMBOL nmos4 -1952 -1248 R0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M6
SYMATTR Value2 l=50n w=150n
SYMBOL nmos4 -1952 -1440 R0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M7
SYMATTR Value2 l=50n w=150n
SYMBOL nmos4 -1952 -1648 R0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M8
SYMATTR Value2 l=50n w=150n
SYMBOL cap -1776 -1744 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C6
SYMATTR Value {CL}
SYMBOL cap -1776 -1280 R0
WINDOW 3 39 43 Left 2
SYMATTR Value {CL}
SYMATTR InstName C7
SYMBOL cap -2128 -1504 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C8
SYMATTR Value {Cdec}
SYMBOL cap -2128 -1328 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C9
SYMATTR Value {Cdec}
SYMBOL cap -2128 -1120 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C10
SYMATTR Value {Cdec}
SYMBOL res -2112 -1216 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value {Rval}
SYMBOL nmos4 -1072 -1056 R0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M9
SYMATTR Value2 l=50n w=150n
SYMBOL nmos4 -1072 -1248 R0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M10
SYMATTR Value2 l=50n w=150n
SYMBOL nmos4 -1072 -1440 R0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M11
SYMATTR Value2 l=50n w=150n
SYMBOL nmos4 -1072 -1648 R0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M12
SYMATTR Value2 l=50n w=150n
SYMBOL cap -896 -1744 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C11
SYMATTR Value {CL}
SYMBOL cap -896 -1280 R0
WINDOW 3 39 43 Left 2
SYMATTR Value {CL}
SYMATTR InstName C12
SYMBOL cap -1248 -1504 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C13
SYMATTR Value {Cdec}
SYMBOL cap -1248 -1328 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C14
SYMATTR Value {Cdec}
SYMBOL cap -1248 -1120 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C15
SYMATTR Value {Cdec}
SYMBOL res -1232 -1216 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R5
SYMATTR Value {Rval}
SYMBOL nmos4 -192 -1056 R0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M13
SYMATTR Value2 l=50n w=150n
SYMBOL nmos4 -192 -1248 R0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M14
SYMATTR Value2 l=50n w=150n
SYMBOL nmos4 -192 -1440 R0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M15
SYMATTR Value2 l=50n w=150n
SYMBOL nmos4 -192 -1648 R0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M16
SYMATTR Value2 l=50n w=150n
SYMBOL cap -16 -1744 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C16
SYMATTR Value {CL}
SYMBOL cap -16 -1280 R0
WINDOW 3 39 43 Left 2
SYMATTR Value {CL}
SYMATTR InstName C17
SYMBOL cap -368 -1504 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C18
SYMATTR Value {Cdec}
SYMBOL cap -368 -1328 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C19
SYMATTR Value {Cdec}
SYMBOL cap -368 -1120 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C20
SYMATTR Value {Cdec}
SYMBOL res -352 -1216 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R6
SYMATTR Value {Rval}
SYMBOL nmos4 688 -1056 R0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M17
SYMATTR Value2 l=50n w=150n
SYMBOL nmos4 688 -1248 R0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M18
SYMATTR Value2 l=50n w=150n
SYMBOL nmos4 688 -1440 R0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M19
SYMATTR Value2 l=50n w=150n
SYMBOL nmos4 688 -1648 R0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M20
SYMATTR Value2 l=50n w=150n
SYMBOL cap 864 -1744 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C21
SYMATTR Value {CL}
SYMBOL cap 864 -1280 R0
WINDOW 3 39 43 Left 2
SYMATTR Value {CL}
SYMATTR InstName C22
SYMBOL cap 512 -1504 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C23
SYMATTR Value {Cdec}
SYMBOL cap 512 -1328 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C24
SYMATTR Value {Cdec}
SYMBOL cap 512 -1120 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C25
SYMATTR Value {Cdec}
SYMBOL res 528 -1216 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R7
SYMATTR Value {Rval}
SYMBOL nmos4 -1888 -80 M0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M21
SYMATTR Value2 l=50n w=75n
SYMBOL current -1936 -384 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 3 42 51 Left 2
WINDOW 0 48 24 Left 2
SYMATTR Value 15n
SYMATTR InstName I2
SYMBOL nmos4 -1472 -320 R0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M22
SYMATTR Value2 l=500n w=1u
SYMBOL voltage -3952 -448 R0
SYMATTR InstName V3
SYMATTR Value 1
SYMBOL current -1424 32 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName I3
SYMATTR Value 20n
SYMBOL res -1472 -16 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R8
SYMATTR Value 20Meg
SYMBOL cap -1616 48 R0
WINDOW 0 -34 14 Left 2
WINDOW 3 -33 45 Left 2
SYMATTR InstName C1
SYMATTR Value 1n
SYMBOL nmos4 -2944 64 R0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M23
SYMATTR Value2 l=50n w=75n
SYMBOL nmos4 -3136 64 M0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M24
SYMATTR Value2 l=50n w=75n
SYMBOL pmos4 -3232 -160 R0
WINDOW 3 56 72 Left 1
SYMATTR Value PMOS_VTL
SYMATTR InstName M25
SYMATTR Value2 l=150n w=1u
SYMBOL pmos4 -2848 -160 M0
WINDOW 3 56 72 Left 1
SYMATTR Value PMOS_VTL
SYMATTR InstName M26
SYMATTR Value2 l=150n w=1u
SYMBOL voltage -3344 -80 R0
SYMATTR InstName V4
SYMATTR Value 0.18V
SYMBOL current -3552 -224 R0
WINDOW 0 -70 9 Left 2
WINDOW 3 -80 39 Left 2
SYMATTR InstName I4
SYMATTR Value 15n
SYMBOL cap -1616 -208 R0
SYMATTR InstName C27
SYMATTR Value 15f
SYMBOL nmos4 -2624 -64 R0
WINDOW 3 56 72 Left 1
SYMATTR Value NMOS_VTL
SYMATTR InstName M27
SYMATTR Value2 l=50n w=300n
SYMBOL pmos4 -3088 -400 R0
WINDOW 3 56 72 Left 1
SYMATTR Value PMOS_VTL
SYMATTR InstName M29
SYMATTR Value2 l=150n w=1u m=3
SYMBOL pmos4 -3504 -400 M0
WINDOW 3 56 72 Left 1
SYMATTR Value PMOS_VTL
SYMATTR InstName M30
SYMATTR Value2 l=150n w=1u
SYMBOL pmos4 -2624 -400 R0
WINDOW 3 56 72 Left 1
SYMATTR Value PMOS_VTL
SYMATTR InstName M28
SYMATTR Value2 l=150n w=1u m=3
TEXT 568 -552 Left 2 ;f = 900MHz\nBR = 100Kb/s
TEXT 568 -480 Left 2 !.lib "C:\\Users\\giuli\\Documents\\LTspice\\lib\\sub\\mosVTL.model.inc"
TEXT 568 -448 Left 2 !.model MYSW SW(Ron=1 Roff=100Meg Vt=-0.5)
TEXT 568 -368 Left 2 ;.tran 0.05m
TEXT 568 -328 Left 2 !.param CL=25f
TEXT 568 -288 Left 2 !.param Cdec=25f
TEXT 568 -248 Left 2 !.param Rval=1Meg
TEXT 568 -592 Left 2 ;ENVELOPE DETECTOR:
TEXT 752 -368 Left 2 ;.op
TEXT 568 -208 Left 2 !.param Vgb=0.26
TEXT -1224 -208 Left 2 ;AvCS = -gm/gd+GL
TEXT 568 -136 Left 2 !.noise V(out) V1 dec 100 10 1000Meg