* Z:\home\khalils\Downloads\files\data\raw_asc\0fbe18320322_Eksamen_Kredsloeb-kopi.asc
* Generated by LTspice 26.0.1 for Windows.
A1 A 0 0 0 0 Ainv 0 0 BUF
A2 B 0 0 0 0 Binv 0 0 BUF
A3 C 0 0 0 0 Cinv 0 0 BUF
A4 D 0 0 0 0 Dinv 0 0 BUF
M12 N004 Dinv 0 0 nmos45 l=60nm w=400nm
M6 N004 Binv 0 0 nmos45 l=60nm w=400nm
M9 N001 Cinv Vout N001 pmos45 l=60nm w=800nm
M11 Vout Ainv N004 N004 nmos45 l=60nm w=400nm
V2 A 0 PULSE(1 0 0 2ps 2ps 1600ps 3200ps 2)
V4 C 0 PULSE(1 0 0 2ps 2ps 400ps 800ps 8)
V1 VDD 0 1
M2 N002 Cinv N003 N002 pmos45 l=60nm w=1200nm
M7 VDD Ainv N001 VDD pmos45 l=60nm w=800nm
M4 Vout Cinv N005 N005 nmos45 l=60nm w=400nm
M1 VDD Dinv N002 VDD pmos45 l=60nm w=1200nm
M10 N004 Cinv 0 0 nmos45 l=60nm w=400nm
M3 N003 Binv Vout N003 pmos45 l=60nm w=1200nm
V3 B 0 PULSE(1 0 0 2ps 2ps 800ps 1600ps 4)
M5 N005 Binv 0 0 nmos45 l=60nm w=400nm
V5 D 0 PULSE(1 0 0 2ps 2ps 200ps 400ps 16)
M8 N001 Binv Vout N001 pmos45 l=60nm w=800nm
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
.tran 6400ps
.meas tran t1 find time when V(D)=0.5 TD=1.2ns rise=1
.meas tran t2 find time when V(Vout)=0.5 TD=t1 rise=1
.meas tpdr param t2 - t1
.include ../../BSIM_model45nm.txt
.meas tran t3 find time when V(D)=0.5 TD=t2 fall = 1
.meas tran t4 find time when V(Vout)=0.5 TD=t3 fall=1
.meas tpdf param t4 - t3
.meas tran t5 find time when V(A)=0 & V(B)=0 & V(D)=0 fall=1
.meas tran t6 find time when V(D)= 0.001 TD=t5 rise=1
.measure p_dyn param V(VDD)*I(V1) at=t3 target=t3+2*tpdf
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 916 1536
WIRE 144 48 96 48
WIRE 320 48 320 16
WIRE 320 48 144 48
WIRE 544 48 320 48
WIRE 592 48 544 48
WIRE 144 96 144 48
WIRE 144 96 96 96
WIRE 592 96 592 48
WIRE 592 96 544 96
WIRE 48 128 -128 128
WIRE 496 128 448 128
WIRE 96 144 -16 144
WIRE 272 144 96 144
WIRE 592 144 544 144
WIRE -16 160 -16 144
WIRE -16 160 -32 160
WIRE 16 160 -16 160
WIRE 272 160 272 144
WIRE 272 160 240 160
WIRE 288 160 272 160
WIRE 592 192 592 144
WIRE 592 192 544 192
WIRE 16 208 16 160
WIRE 16 208 -32 208
WIRE 288 208 288 160
WIRE 288 208 240 208
WIRE 496 224 448 224
WIRE -80 240 -128 240
WIRE 192 240 176 240
WIRE 592 240 544 240
WIRE -32 272 -32 256
WIRE 96 272 -32 272
WIRE 240 272 240 256
WIRE 240 272 96 272
WIRE 592 288 592 240
WIRE 592 288 544 288
WIRE 176 320 176 240
WIRE 368 320 176 320
WIRE 496 320 368 320
WIRE 96 400 96 272
WIRE 384 400 96 400
WIRE 544 400 544 336
WIRE 544 400 384 400
WIRE 816 400 544 400
WIRE -1200 448 -1200 384
WIRE -1088 448 -1088 384
WIRE -976 448 -976 384
WIRE -848 448 -848 384
WIRE 384 464 384 400
WIRE 384 464 96 464
WIRE 736 464 384 464
WIRE 208 512 96 512
WIRE 736 512 736 464
WIRE -1200 544 -1200 512
WIRE -1088 544 -1088 512
WIRE -976 544 -976 512
WIRE -848 544 -848 512
WIRE 48 544 -16 544
WIRE 208 560 208 512
WIRE 208 560 96 560
WIRE 816 560 736 560
WIRE 688 592 656 592
WIRE 720 592 688 592
WIRE 816 608 816 560
WIRE 816 608 736 608
WIRE 96 640 96 560
WIRE 96 640 -144 640
WIRE 144 640 96 640
WIRE 448 640 144 640
WIRE -144 656 -144 640
WIRE 144 656 144 640
WIRE 448 656 448 640
WIRE 736 688 736 608
WIRE -48 704 -144 704
WIRE 240 704 144 704
WIRE 544 704 448 704
WIRE -1200 720 -1200 656
WIRE -1088 720 -1088 656
WIRE -976 720 -976 656
WIRE -848 720 -848 656
WIRE -672 720 -672 640
WIRE -192 736 -240 736
WIRE 96 736 48 736
WIRE 400 736 368 736
WIRE 816 736 736 736
WIRE -48 752 -48 704
WIRE -48 752 -144 752
WIRE 240 752 240 704
WIRE 240 752 144 752
WIRE 544 752 544 704
WIRE 544 752 448 752
WIRE 368 768 368 736
WIRE 592 768 368 768
WIRE 688 768 592 768
WIRE 816 784 816 736
WIRE 816 784 736 784
WIRE -144 848 -144 752
WIRE 144 848 144 752
WIRE 144 848 -144 848
WIRE 384 848 144 848
WIRE 448 848 448 752
WIRE 448 848 384 848
WIRE 736 848 736 784
WIRE 736 848 448 848
WIRE 384 896 384 848
IOPIN 816 400 Out
IOPIN 320 16 In
IOPIN -128 240 In
IOPIN -128 128 In
IOPIN 448 128 In
IOPIN 448 224 In
IOPIN 368 320 In
IOPIN 656 592 In
IOPIN -240 736 In
IOPIN 48 736 In
IOPIN 592 768 In
IOPIN -672 640 Out
IOPIN -1200 384 Out
IOPIN -1088 384 Out
IOPIN -976 384 Out
IOPIN -848 384 Out
IOPIN -16 544 In
IOPIN -1200 656 Out
IOPIN -1088 656 Out
IOPIN -976 656 Out
IOPIN -848 656 Out
IOPIN -1200 544 In
IOPIN -1088 544 In
IOPIN -976 544 In
IOPIN -848 544 In
SYMBOL pmos4 -80 160 R0
SYMATTR InstName M9
SYMATTR Value pmos45
SYMATTR Value2 l=60nm w=800nm
SYMBOL Voltage -672 704 R0
SYMATTR InstName V1
SYMATTR Value 1
SYMBOL nmos4 400 656 R0
SYMATTR InstName M6
SYMATTR Value nmos45
SYMATTR Value2 l=60nm w=400nm
SYMBOL inv -1264 512 R270
SYMATTR InstName A1
SYMBOL pmos4 48 48 R0
SYMATTR InstName M7
SYMATTR Value pmos45
SYMATTR Value2 l=60nm w=800nm
SYMBOL pmos4 496 48 R0
SYMATTR InstName M1
SYMATTR Value pmos45
SYMATTR Value2 l=60nm w=1200nm
SYMBOL nmos4 -192 656 R0
SYMATTR InstName M12
SYMATTR Value nmos45
SYMATTR Value2 l=60nm w=400nm
SYMBOL pmos4 496 240 R0
SYMATTR InstName M3
SYMATTR Value pmos45
SYMATTR Value2 l=60nm w=1200nm
SYMBOL inv -912 512 R270
SYMATTR InstName A4
SYMBOL nmos4 48 464 R0
SYMATTR InstName M11
SYMATTR Value nmos45
SYMATTR Value2 l=60nm w=400nm
SYMBOL Voltage -976 704 R0
WINDOW 3 15 595 VLeft 2
SYMATTR Value PULSE(1 0 0 2ps 2ps 400ps 800ps 8)
SYMATTR InstName V4
SYMBOL nmos4 688 688 R0
SYMATTR InstName M5
SYMATTR Value nmos45
SYMATTR Value2 l=60nm w=400nm
SYMBOL Voltage -848 704 R0
WINDOW 3 18 596 VLeft 2
SYMATTR Value PULSE(1 0 0 2ps 2ps 200ps 400ps 16)
SYMATTR InstName V5
SYMBOL nmos4 688 512 R0
SYMATTR InstName M4
SYMATTR Value nmos45
SYMATTR Value2 l=60nm w=400nm
SYMBOL nmos4 96 656 R0
SYMATTR InstName M10
SYMATTR Value nmos45
SYMATTR Value2 l=60nm w=400nm
SYMBOL Voltage -1200 704 R0
WINDOW 3 11 628 VLeft 2
SYMATTR Value PULSE(1 0 0 2ps 2ps 1600ps 3200ps 2)
SYMATTR InstName V2
SYMBOL pmos4 192 160 R0
SYMATTR InstName M8
SYMATTR Value pmos45
SYMATTR Value2 l=60nm w=800nm
SYMBOL pmos4 496 144 R0
SYMATTR InstName M2
SYMATTR Value pmos45
SYMATTR Value2 l=60nm w=1200nm
SYMBOL Voltage -1088 704 R0
WINDOW 3 19 608 VLeft 2
SYMATTR Value PULSE(1 0 0 2ps 2ps 800ps 1600ps 4)
SYMATTR InstName V3
SYMBOL inv -1040 512 R270
SYMATTR InstName A3
SYMBOL inv -1152 512 R270
SYMATTR InstName A2
FLAG 816 400 Vout
FLAG -976 800 0
FLAG -1088 800 0
FLAG -1200 800 0
FLAG -672 800 0
FLAG -848 800 0
FLAG 320 16 VDD
FLAG -128 240 Cinv
FLAG -128 128 Ainv
FLAG 448 128 Dinv
FLAG 448 224 Cinv
FLAG 368 320 Binv
FLAG 656 592 Cinv
FLAG -240 736 Dinv
FLAG 48 736 Cinv
FLAG 592 768 Binv
FLAG 384 896 0
FLAG -672 640 VDD
FLAG -1200 384 Ainv
FLAG -1088 384 Binv
FLAG -976 384 Cinv
FLAG -848 384 Dinv
FLAG -16 544 Ainv
FLAG -1200 656 A
FLAG -1088 656 B
FLAG -976 656 C
FLAG -848 656 D
FLAG -1200 544 A
FLAG -1088 544 B
FLAG -976 544 C
FLAG -848 544 D
TEXT -560 1168 Left 2 !.tran 6400ps
TEXT -112 1168 Left 2 !.meas tran t1 find time when V(D)=0.5 TD=1.2ns rise=1
TEXT -112 1216 Left 2 !.meas tran t2 find time when V(Vout)=0.5 TD=t1 rise=1
TEXT -112 1264 Left 2 !.meas tpdr param t2 - t1
TEXT -112 1112 Left 2 !.include ../../BSIM_model45nm.txt
TEXT -112 1312 Left 2 !.meas tran t3 find time when V(D)=0.5 TD=t2 fall = 1
TEXT -112 1360 Left 2 !.meas tran t4 find time when V(Vout)=0.5 TD=t3 fall=1
TEXT -112 1408 Left 2 !.meas tpdf param t4 - t3
TEXT -944 1424 Left 2 !.meas tran t5 find time when V(A)=0 & V(B)=0 & V(D)=0 fall=1
TEXT -944 1472 Left 2 !.meas tran t6 find time when V(D)= 0.001 TD=t5 rise=1
TEXT -944 1520 Left 2 !.measure p_dyn param V(VDD)*I(V1) at=t3 target=t3+2*tpdf