* Z:\home\khalils\Downloads\files\data\raw_asc\3bc4a0e92323_comparator_0.asc
* Generated by LTspice 26.0.1 for Windows.
* All parameters that will be optimized\nshould be listed in tables\nwith arbitrary values.
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
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
.step param n list 1 2 3 4 5 6 7 8 9 10
.param W1=table(n,1,3.1u,2,3.1u,3,3.1u,4,3.1u,5,3.2u,6,3.1u,7,3.3u,8,3.1u,9,3.2u,10,3.1u)
.param W2=table(n,1,2.7u,2,2.5u,3,2.7u,4,2.8u,5,2.7u,6,2.7u,7,2.7u,8,2.7u,9,2.7u,10,2.6u)
.param Vcomp=table(n,1,861.0m,2,861.0m,3,861.0m,4,561.0m,5,811.0m,6,861.0m,7,1.0,8,861.0m,9,861.0m,10,561.0m)
.param L1=table(n,1,2.2u,2,2.3u,3,2.3u,4,2.3u,5,2.3u,6,2.3u,7,2.1u,8,2.3u,9,2.2u,10,2.3u)
.param L2=table(n,1,3.6u,2,3.6u,3,3.6u,4,3.6u,5,3.6u,6,3.6u,7,3.6u,8,3.6u,9,3.6u,10,3.4u)
.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 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 -400 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V3
SYMATTR Value ""
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 -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 -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,3.1u,2,3.1u,3,3.1u,4,3.1u,5,3.2u,6,3.1u,7,3.3u,8,3.1u,9,3.2u,10,3.1u)
TEXT -360 -704 Left 2 !.param W2=table(n,1,2.7u,2,2.5u,3,2.7u,4,2.8u,5,2.7u,6,2.7u,7,2.7u,8,2.7u,9,2.7u,10,2.6u)
TEXT -360 -632 Left 2 !.param Vcomp=table(n,1,861.0m,2,861.0m,3,861.0m,4,561.0m,5,811.0m,6,861.0m,7,1.0,8,861.0m,9,861.0m,10,561.0m)
TEXT -360 -680 Left 2 !.param L1=table(n,1,2.2u,2,2.3u,3,2.3u,4,2.3u,5,2.3u,6,2.3u,7,2.1u,8,2.3u,9,2.2u,10,2.3u)
TEXT -360 -656 Left 2 !.param L2=table(n,1,3.6u,2,3.6u,3,3.6u,4,3.6u,5,3.6u,6,3.6u,7,3.6u,8,3.6u,9,3.6u,10,3.4u)
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.