From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3866/CH5/EX5.9/Ex5_9.sce | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 3866/CH5/EX5.9/Ex5_9.sce (limited to '3866/CH5/EX5.9/Ex5_9.sce') diff --git a/3866/CH5/EX5.9/Ex5_9.sce b/3866/CH5/EX5.9/Ex5_9.sce new file mode 100644 index 000000000..9b561ed9f --- /dev/null +++ b/3866/CH5/EX5.9/Ex5_9.sce @@ -0,0 +1,23 @@ +clc; clear; close; + +n1=10*(10^6); +n2=50*(10^6); +a1=0.1; +c1=20*(10^(-15));//in F +Vdd1=1.8;//in volts +f1=500*(10^6);//in Hz +a2=0.05; +c2=10*(10^(-15));//in F +Vdd2=1.2;//in volts +f2=1*(10^9);//in Hz +P1=n1*c1*Vdd1*Vdd1*f1*a1; +disp(P1,'Case 1 Power(in watts)='); +P2=n2*c2*Vdd2*Vdd2*f2*a2; +disp(P2,'Case 2 Power(in watts)='); +t1=1/f1; +t2=1/f2; +EDP1=P1*t1*t1; +EDP2=P2*t2*t2; +disp(EDP1,'case 1 EDP(in joule-seconds)='); +disp(EDP2,'case 2 EDP(in joule-seconds)='); +disp('Second design has lower energy delay product , so it is better '); -- cgit