* Z:\home\khalils\Downloads\files\data\raw_asc\eb9e00164562_fa1_flatpulse.asc
* Generated by LTspice 26.0.1 for Windows.
* Full adder\nfrom paper "Combinational CMOS Logic Circuits", page 15\n \n-28 transistors
XX17 N007 N001 N010 0 nmos_t1 ;pnba D)G)S)B
XX23 N007 A N006 VDD pmos_t1 ;pnba D)G)S)B
XX26 N012 Cin 0 0 nmos_t1 ;pnba D)G)S)B
XX22 N006 B N002 VDD pmos_t1 ;pnba D)G)S)B
XX11 Cout N001 VDD VDD pmos_t1 ;pnba D)G)S)B
XX25 N008 B N012 0 nmos_t1 ;pnba D)G)S)B
C1 N013 0 10p
XX14 N004 B VDD VDD pmos_t1 ;pnba D)G)S)B
XX27 S N007 VDD VDD pmos_t1 ;pnba D)G)S)B
XX4 N001 Cin N009 0 nmos_t1 ;pnba D)G)S)B
R1 N013 0 200k
C2 N014 0 10p
XX20 N010 Cin 0 0 nmos_t1 ;pnba D)G)S)B
XX13 N004 A VDD VDD pmos_t1 ;pnba D)G)S)B
XX1 N003 A VDD VDD pmos_t1 ;pnba D)G)S)B
VDD VDD 0 5
VB B 0 PULSE(5 0 100n 20n 20n 480n 1u 10)
Rcout Cout N013 {Rcout}
XX7 N005 B VDD VDD pmos_t1 ;pnba D)G)S)B
VA A 0 PULSE(5 0 100n 20n 20n 230n 500n 10)
XX10 N011 B 0 0 nmos_t1 ;pnba D)G)S)B
Rsum S N014 {Rsum}
XX12 Cout N001 0 0 nmos_t1 ;pnba D)G)S)B
XX28 S N007 0 0 nmos_t1 ;pnba D)G)S)B
XX5 N009 A 0 0 nmos_t1 ;pnba D)G)S)B
R2 N014 0 200k
XX21 N002 Cin VDD VDD pmos_t1 ;pnba D)G)S)B
XX3 N001 Cin N003 VDD pmos_t1 ;pnba D)G)S)B
VCin Cin 0 PULSE(5 0 100n 20n 20n 980n 2u 10)
XX9 N001 A N011 0 nmos_t1 ;pnba D)G)S)B
XX8 N001 A N005 VDD pmos_t1 ;pnba D)G)S)B
XX2 N003 B VDD VDD pmos_t1 ;pnba D)G)S)B
XX6 N009 B 0 0 nmos_t1 ;pnba D)G)S)B
XX16 N007 N001 N004 VDD pmos_t1 ;pnba D)G)S)B
XX19 N010 B 0 0 nmos_t1 ;pnba D)G)S)B
XX24 N007 A N008 0 nmos_t1 ;pnba D)G)S)B
XX15 N004 Cin VDD VDD pmos_t1 ;pnba D)G)S)B
XX18 N010 A 0 0 nmos_t1 ;pnba D)G)S)B
.lib '../../lib/cfg.lib'
.tran 4u
.param Rcout = 1m, Rsum = 1m
.meas RMS-p-current RMS (Ix(X2:G)+Ix(X2:D)+Ix(X2:S)+Ix(X2:B))
.meas RMS-n-current RMS (Ix(X9:G)+Ix(X9:D)+Ix(X9:S)+Ix(X9:B))
.meas AVG-total power AVG(-V(vdd)*I(vdd))
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 2652 1304
WIRE -208 -336 -256 -336
WIRE 32 -336 32 -384
WIRE 32 -336 -208 -336
WIRE 80 -336 32 -336
WIRE 256 -336 80 -336
WIRE 304 -336 256 -336
WIRE 720 -336 720 -384
WIRE 720 -336 304 -336
WIRE 1088 -336 720 -336
WIRE 1136 -336 1088 -336
WIRE 1392 -336 1392 -384
WIRE 1392 -336 1136 -336
WIRE 1440 -336 1392 -336
WIRE 1696 -336 1440 -336
WIRE 1744 -336 1696 -336
WIRE 1936 -336 1744 -336
WIRE 1984 -336 1936 -336
WIRE 720 -288 720 -336
WIRE 768 -288 720 -288
WIRE 1984 -288 1984 -336
WIRE 720 -272 720 -288
WIRE 2080 -272 2032 -272
WIRE -256 -256 -256 -336
WIRE 32 -256 32 -336
WIRE 304 -256 304 -336
WIRE 672 -256 640 -256
WIRE 1088 -256 1088 -336
WIRE 1392 -256 1392 -336
WIRE 1696 -256 1696 -336
WIRE -304 -240 -336 -240
WIRE -16 -240 -48 -240
WIRE 400 -240 352 -240
WIRE 1040 -240 1008 -240
WIRE 1344 -240 1312 -240
WIRE 1648 -240 1616 -240
WIRE 1936 -240 1936 -336
WIRE 1984 -240 1936 -240
WIRE -864 -224 -864 -272
WIRE 768 -224 768 -288
WIRE 768 -224 720 -224
WIRE -208 -208 -208 -336
WIRE -208 -208 -256 -208
WIRE 80 -208 80 -336
WIRE 80 -208 32 -208
WIRE 256 -208 256 -336
WIRE 304 -208 256 -208
WIRE 1136 -208 1136 -336
WIRE 1136 -208 1088 -208
WIRE 1440 -208 1440 -336
WIRE 1440 -208 1392 -208
WIRE 1744 -208 1744 -336
WIRE 1744 -208 1696 -208
WIRE 1984 -160 1984 -192
WIRE 2080 -144 2032 -144
WIRE 640 -128 640 -256
WIRE 640 -128 560 -128
WIRE 720 -128 720 -176
WIRE 768 -128 720 -128
WIRE -256 -112 -256 -160
WIRE -112 -112 -256 -112
WIRE 32 -112 32 -160
WIRE 32 -112 -112 -112
WIRE 1088 -112 1088 -160
WIRE 1392 -112 1392 -160
WIRE 1392 -112 1088 -112
WIRE 1696 -112 1696 -160
WIRE 1696 -112 1392 -112
WIRE 1936 -112 1936 -240
WIRE 1984 -112 1936 -112
WIRE -864 -96 -864 -144
WIRE 720 -80 720 -128
WIRE 2304 -48 2304 -96
WIRE 2352 -48 2304 -48
WIRE -112 -32 -112 -112
WIRE 304 -32 304 -160
WIRE 768 -32 720 -32
WIRE 1392 -32 1392 -112
WIRE 1984 -32 1984 -64
WIRE 2304 -32 2304 -48
WIRE -160 -16 -192 -16
WIRE 400 -16 352 -16
WIRE 1344 -16 1312 -16
WIRE 2080 -16 2032 -16
WIRE 2256 -16 2224 -16
WIRE 640 0 640 -128
WIRE 672 0 640 0
WIRE -32 16 -32 -16
WIRE -32 16 -112 16
WIRE 224 16 224 -16
WIRE 304 16 224 16
WIRE 1456 16 1456 -16
WIRE 1456 16 1392 16
WIRE 1936 16 1936 -112
WIRE 1984 16 1936 16
WIRE 2352 16 2352 -48
WIRE 2352 16 2304 16
WIRE 720 32 720 16
WIRE 768 32 768 -32
WIRE 768 32 720 32
WIRE -864 64 -864 32
WIRE 720 80 720 32
WIRE -112 112 -112 64
WIRE 304 112 304 64
WIRE 304 112 -112 112
WIRE 560 112 560 -128
WIRE 560 112 304 112
WIRE 1312 112 1312 -16
WIRE 1312 112 560 112
WIRE 1392 112 1392 64
WIRE 1984 112 1984 64
WIRE 1984 112 1392 112
WIRE 2224 112 2224 -16
WIRE 2224 112 1984 112
WIRE 2304 112 2304 64
WIRE 2576 112 2304 112
WIRE -112 160 -112 112
WIRE 304 160 304 112
WIRE 1392 160 1392 112
WIRE 1984 160 1984 112
WIRE 2304 160 2304 112
WIRE -864 192 -864 144
WIRE -32 208 -112 208
WIRE 304 208 224 208
WIRE 1456 208 1392 208
WIRE 1984 208 1936 208
WIRE 2352 208 2304 208
WIRE -160 240 -192 240
WIRE 400 240 352 240
WIRE 1312 240 1312 112
WIRE 1344 240 1312 240
WIRE 2080 240 2032 240
WIRE 2224 240 2224 112
WIRE 2256 240 2224 240
WIRE -32 272 -32 208
WIRE 224 272 224 208
WIRE 1456 272 1456 208
WIRE 2304 272 2304 256
WIRE 2352 272 2352 208
WIRE 2352 272 2304 272
WIRE 1984 288 1984 256
WIRE -864 320 -864 288
WIRE 2304 320 2304 272
WIRE -112 336 -112 256
WIRE -112 336 -256 336
WIRE 32 336 -112 336
WIRE 1392 336 1392 256
WIRE 1392 336 1088 336
WIRE 1696 336 1392 336
WIRE 1936 336 1936 208
WIRE 1984 336 1936 336
WIRE 2080 368 2032 368
WIRE -256 384 -256 336
WIRE 32 384 32 336
WIRE 304 384 304 256
WIRE 1088 384 1088 336
WIRE 1392 384 1392 336
WIRE 1696 384 1696 336
WIRE 1984 416 1984 384
WIRE -208 432 -256 432
WIRE 80 432 32 432
WIRE 304 432 256 432
WIRE 1136 432 1088 432
WIRE 1440 432 1392 432
WIRE 1744 432 1696 432
WIRE -864 448 -864 400
WIRE -304 464 -336 464
WIRE -16 464 -48 464
WIRE 400 464 352 464
WIRE 1040 464 1008 464
WIRE 1344 464 1312 464
WIRE 1648 464 1616 464
WIRE 1936 464 1936 336
WIRE 1984 464 1936 464
WIRE 2080 496 2032 496
WIRE -256 560 -256 480
WIRE -208 560 -208 432
WIRE -208 560 -256 560
WIRE 32 560 32 480
WIRE 32 560 -208 560
WIRE 80 560 80 432
WIRE 80 560 32 560
WIRE 256 560 256 432
WIRE 256 560 80 560
WIRE 304 560 304 480
WIRE 304 560 256 560
WIRE 1088 560 1088 480
WIRE 1088 560 304 560
WIRE 1136 560 1136 432
WIRE 1136 560 1088 560
WIRE 1392 560 1392 480
WIRE 1392 560 1136 560
WIRE 1440 560 1440 432
WIRE 1440 560 1392 560
WIRE 1696 560 1696 480
WIRE 1696 560 1440 560
WIRE 1744 560 1744 432
WIRE 1744 560 1696 560
WIRE 1936 560 1936 464
WIRE 1936 560 1744 560
WIRE 1984 560 1984 512
WIRE 1984 560 1936 560
WIRE -864 576 -864 544
WIRE 32 608 32 560
WIRE 1392 608 1392 560
WIRE -864 704 -864 656
WIRE 752 800 752 768
WIRE 992 800 992 768
WIRE 752 912 752 880
WIRE 752 912 704 912
WIRE 800 912 752 912
WIRE 992 912 992 880
WIRE 992 912 944 912
WIRE 1040 912 992 912
WIRE 800 944 800 912
WIRE 1040 944 1040 912
WIRE 704 960 704 912
WIRE 944 960 944 912
WIRE 704 1056 704 1024
WIRE 752 1056 704 1056
WIRE 800 1056 800 1024
WIRE 800 1056 752 1056
WIRE 944 1056 944 1024
WIRE 992 1056 944 1056
WIRE 1040 1056 1040 1024
WIRE 1040 1056 992 1056
WIRE 752 1104 752 1056
WIRE 992 1104 992 1056
IOPIN 752 768 In
IOPIN -864 -272 Out
IOPIN -864 288 Out
IOPIN -864 32 Out
IOPIN -336 -240 In
IOPIN -192 -16 In
IOPIN -48 -240 In
IOPIN 400 -240 In
IOPIN 400 -16 In
IOPIN -192 240 In
IOPIN -336 464 In
IOPIN -48 464 In
IOPIN 400 240 In
IOPIN 400 464 In
IOPIN 768 -128 Out
IOPIN 1008 -240 In
IOPIN 1616 -240 In
IOPIN 1008 464 In
IOPIN 1616 464 In
IOPIN 1312 -240 In
IOPIN 1312 464 In
IOPIN 2080 -272 In
IOPIN 2080 -144 In
IOPIN 2080 -16 In
IOPIN 2080 496 In
IOPIN 2080 368 In
IOPIN 2080 240 In
IOPIN 2576 112 Out
IOPIN 32 -384 Out
IOPIN 1392 -384 Out
IOPIN 2304 -96 Out
IOPIN 720 -384 Out
IOPIN 992 768 In
IOPIN -864 544 Out
IOPIN -32 -16 Out
IOPIN 224 -16 Out
IOPIN 1456 -16 Out
SYMBOL res 784 928 R0
SYMATTR InstName R1
SYMATTR Value 200k
SYMBOL pmos4 1344 64 M180
WINDOW 0 51 80 Left 2
WINDOW 3 52 23 Invisible 2
SYMATTR InstName X16
SYMATTR Value pmos_t1
SYMATTR Prefix X
SYMBOL pmos4 -160 64 M180
WINDOW 0 51 80 Left 2
WINDOW 3 52 23 Invisible 2
SYMATTR InstName X3
SYMATTR Value pmos_t1
SYMATTR Prefix X
SYMBOL pmos4 1648 -160 M180
WINDOW 0 51 80 Left 2
WINDOW 3 52 23 Invisible 2
SYMATTR InstName X15
SYMATTR Value pmos_t1
SYMATTR Prefix X
SYMBOL nmos4 2256 160 R0
WINDOW 0 53 82 Left 2
WINDOW 3 53 23 Invisible 2
SYMATTR InstName X28
SYMATTR Value nmos_t1
SYMATTR Prefix X
SYMBOL pmos4 1040 -160 M180
WINDOW 0 51 80 Left 2
WINDOW 3 52 23 Invisible 2
SYMATTR InstName X13
SYMATTR Value pmos_t1
SYMATTR Prefix X
SYMBOL voltage -864 304 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName VB
SYMATTR Value PULSE(5 0 100n 20n 20n 480n 1u 10)
SYMBOL nmos4 2032 416 M0
WINDOW 0 53 82 Left 2
WINDOW 3 53 23 Invisible 2
SYMATTR InstName X26
SYMATTR Value nmos_t1
SYMATTR Prefix X
SYMBOL res 736 784 R0
SYMATTR InstName Rcout
SYMATTR Value {Rcout}
SYMBOL pmos4 2032 64 R180
WINDOW 0 51 80 Left 2
WINDOW 3 52 23 Invisible 2
SYMATTR InstName X23
SYMATTR Value pmos_t1
SYMATTR Prefix X
SYMBOL pmos4 -16 -160 M180
WINDOW 0 51 80 Left 2
WINDOW 3 52 23 Invisible 2
SYMATTR InstName X2
SYMATTR Value pmos_t1
SYMATTR Prefix X
SYMBOL voltage -864 560 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName VCin
SYMATTR Value PULSE(5 0 100n 20n 20n 980n 2u 10)
SYMBOL nmos4 352 384 M0
WINDOW 0 53 82 Left 2
WINDOW 3 53 23 Invisible 2
SYMATTR InstName X10
SYMATTR Value nmos_t1
SYMATTR Prefix X
SYMBOL voltage -864 48 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName VA
SYMATTR Value PULSE(5 0 100n 20n 20n 230n 500n 10)
SYMBOL pmos4 1344 -160 M180
WINDOW 0 51 80 Left 2
WINDOW 3 52 23 Invisible 2
SYMATTR InstName X14
SYMATTR Value pmos_t1
SYMATTR Prefix X
SYMBOL cap 688 960 R0
SYMATTR InstName C1
SYMATTR Value 10p
SYMBOL nmos4 352 160 M0
WINDOW 0 53 82 Left 2
WINDOW 3 53 23 Invisible 2
SYMATTR InstName X9
SYMATTR Value nmos_t1
SYMATTR Prefix X
SYMBOL pmos4 2256 64 M180
WINDOW 0 51 80 Left 2
WINDOW 3 52 23 Invisible 2
SYMATTR InstName X27
SYMATTR Value pmos_t1
SYMATTR Prefix X
SYMBOL res 976 784 R0
SYMATTR InstName Rsum
SYMATTR Value {Rsum}
SYMBOL pmos4 672 -176 M180
WINDOW 0 51 80 Left 2
WINDOW 3 52 23 Invisible 2
SYMATTR InstName X11
SYMATTR Value pmos_t1
SYMATTR Prefix X
SYMBOL nmos4 672 -80 R0
WINDOW 0 53 82 Left 2
WINDOW 3 53 23 Invisible 2
SYMATTR InstName X12
SYMATTR Value nmos_t1
SYMATTR Prefix X
SYMBOL nmos4 -160 160 R0
WINDOW 0 53 82 Left 2
WINDOW 3 53 23 Invisible 2
SYMATTR InstName X4
SYMATTR Value nmos_t1
SYMATTR Prefix X
SYMBOL nmos4 2032 288 M0
WINDOW 0 53 82 Left 2
WINDOW 3 53 23 Invisible 2
SYMATTR InstName X25
SYMATTR Value nmos_t1
SYMATTR Prefix X
SYMBOL pmos4 -304 -160 M180
WINDOW 0 51 80 Left 2
WINDOW 3 52 23 Invisible 2
SYMATTR InstName X1
SYMATTR Value pmos_t1
SYMATTR Prefix X
SYMBOL voltage -864 -240 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName VDD
SYMATTR Value 5
SYMBOL pmos4 352 -160 R180
WINDOW 0 51 80 Left 2
WINDOW 3 52 23 Invisible 2
SYMATTR InstName X7
SYMATTR Value pmos_t1
SYMATTR Prefix X
SYMBOL nmos4 1648 384 R0
WINDOW 0 53 82 Left 2
WINDOW 3 53 23 Invisible 2
SYMATTR InstName X20
SYMATTR Value nmos_t1
SYMATTR Prefix X
SYMBOL nmos4 -16 384 R0
WINDOW 0 53 82 Left 2
WINDOW 3 53 23 Invisible 2
SYMATTR InstName X6
SYMATTR Value nmos_t1
SYMATTR Prefix X
SYMBOL res 1024 928 R0
SYMATTR InstName R2
SYMATTR Value 200k
SYMBOL nmos4 2032 160 M0
WINDOW 0 53 82 Left 2
WINDOW 3 53 23 Invisible 2
SYMATTR InstName X24
SYMATTR Value nmos_t1
SYMATTR Prefix X
SYMBOL pmos4 2032 -64 R180
WINDOW 0 51 80 Left 2
WINDOW 3 52 23 Invisible 2
SYMATTR InstName X22
SYMATTR Value pmos_t1
SYMATTR Prefix X
SYMBOL nmos4 1344 384 R0
WINDOW 0 53 82 Left 2
WINDOW 3 53 23 Invisible 2
SYMATTR InstName X19
SYMATTR Value nmos_t1
SYMATTR Prefix X
SYMBOL nmos4 1344 160 R0
WINDOW 0 53 82 Left 2
WINDOW 3 53 23 Invisible 2
SYMATTR InstName X17
SYMATTR Value nmos_t1
SYMATTR Prefix X
SYMBOL nmos4 1040 384 R0
WINDOW 0 53 82 Left 2
WINDOW 3 53 23 Invisible 2
SYMATTR InstName X18
SYMATTR Value nmos_t1
SYMATTR Prefix X
SYMBOL pmos4 352 64 R180
WINDOW 0 51 80 Left 2
WINDOW 3 52 23 Invisible 2
SYMATTR InstName X8
SYMATTR Value pmos_t1
SYMATTR Prefix X
SYMBOL cap 928 960 R0
SYMATTR InstName C2
SYMATTR Value 10p
SYMBOL pmos4 2032 -192 R180
WINDOW 0 51 80 Left 2
WINDOW 3 52 23 Invisible 2
SYMATTR InstName X21
SYMATTR Value pmos_t1
SYMATTR Prefix X
SYMBOL nmos4 -304 384 R0
WINDOW 0 53 82 Left 2
WINDOW 3 53 23 Invisible 2
SYMATTR InstName X5
SYMATTR Value nmos_t1
SYMATTR Prefix X
FLAG -864 -96 0
FLAG 752 768 Cout
FLAG -864 -272 VDD
FLAG -864 288 B
FLAG -864 448 0
FLAG -864 32 A
FLAG -864 192 0
FLAG -336 -240 A
FLAG -192 -16 Cin
FLAG -48 -240 B
FLAG 400 -240 B
FLAG 400 -16 A
FLAG -192 240 Cin
FLAG -336 464 A
FLAG -48 464 B
FLAG 32 608 0
FLAG 400 240 A
FLAG 400 464 B
FLAG 768 -128 Cout
FLAG 720 80 0
FLAG 1008 -240 A
FLAG 1616 -240 Cin
FLAG 1008 464 A
FLAG 1616 464 Cin
FLAG 1312 -240 B
FLAG 1312 464 B
FLAG 2080 -272 Cin
FLAG 2080 -144 B
FLAG 2080 -16 A
FLAG 2080 496 Cin
FLAG 2080 368 B
FLAG 2080 240 A
FLAG 2576 112 S
FLAG 1392 608 0
FLAG 32 -384 VDD
FLAG 1392 -384 VDD
FLAG 2304 -96 VDD
FLAG 2304 320 0
FLAG 720 -384 VDD
FLAG 752 1104 0
FLAG 992 768 S
FLAG 992 1104 0
FLAG -864 544 Cin
FLAG -864 704 0
FLAG -32 272 0
FLAG 224 272 0
FLAG -32 -16 VDD
FLAG 224 -16 VDD
FLAG 1456 -16 VDD
FLAG 1456 272 0
TEXT -248 744 Left 2 !.lib '../../lib/cfg.lib'\n.tran 4u\n.param Rcout = 1m, Rsum = 1m\n.meas RMS-p-current RMS (Ix(X2:G)+Ix(X2:D)+Ix(X2:S)+Ix(X2:B))\n.meas RMS-n-current RMS (Ix(X9:G)+Ix(X9:D)+Ix(X9:S)+Ix(X9:B))\n.meas AVG-total power AVG(-V(vdd)*I(vdd))
TEXT -256 1136 Left 4 ;Full adder\nfrom paper "Combinational CMOS Logic Circuits", page 15\n \n-28 transistors