* Z:\home\khalils\Downloads\files\data\raw_asc\6375f39889f0_comparator_5.asc
* Generated by LTspice 26.0.1 for Windows.
* All parameters that will be optimized\nshould be listed in tables\nwith arbitrary values.
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
V1 Vdd 0 1.8
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
V3 Vin 0
V2 N001 0 {Vcomp}
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
.step param n list 1 2 3 4 5 6 7 8 9 10
.param W1=table(n,1,2.9u,2,3.1u,3,2.9u,4,3.0u,5,2.8u,6,2.9u,7,2.9u,8,2.9u,9,2.9u,10,2.7u)
.param W2=table(n,1,3.2u,2,3.2u,3,3.2u,4,3.2u,5,3.2u,6,3.2u,7,3.2u,8,3.2u,9,3.2u,10,3.2u)
.param Vcomp=table(n,1,959.0m,2,1.1,3,1.2,4,959.0m,5,809.0m,6,959.0m,7,959.0m,8,1.1,9,809.0m,10,1.1)
.param L1=table(n,1,3.1u,2,2.9u,3,3.1u,4,3.1u,5,3.0u,6,3.1u,7,3.1u,8,3.1u,9,3.3u,10,3.1u)
.param L2=table(n,1,880.0n,2,730.0n,3,730.0n,4,730.0n,5,730.0n,6,880.0n,7,730.0n,8,730.0n,9,730.0n,10,730.0n)
.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 -336 -160 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value {Vcomp}
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 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 -656 -336 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 1.8
SYMBOL voltage -336 -400 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V3
SYMATTR Value ""
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 -752 Left 2 !.step param n list 1 2 3 4 5 6 7 8 9 10
TEXT -360 -728 Left 2 !.param W1=table(n,1,2.9u,2,3.1u,3,2.9u,4,3.0u,5,2.8u,6,2.9u,7,2.9u,8,2.9u,9,2.9u,10,2.7u)
TEXT -360 -704 Left 2 !.param W2=table(n,1,3.2u,2,3.2u,3,3.2u,4,3.2u,5,3.2u,6,3.2u,7,3.2u,8,3.2u,9,3.2u,10,3.2u)
TEXT -360 -632 Left 2 !.param Vcomp=table(n,1,959.0m,2,1.1,3,1.2,4,959.0m,5,809.0m,6,959.0m,7,959.0m,8,1.1,9,809.0m,10,1.1)
TEXT -360 -680 Left 2 !.param L1=table(n,1,3.1u,2,2.9u,3,3.1u,4,3.1u,5,3.0u,6,3.1u,7,3.1u,8,3.1u,9,3.3u,10,3.1u)
TEXT -360 -656 Left 2 !.param L2=table(n,1,880.0n,2,730.0n,3,730.0n,4,730.0n,5,730.0n,6,880.0n,7,730.0n,8,730.0n,9,730.0n,10,730.0n)
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.