summaryrefslogtreecommitdiff
path: root/45/CH9/EX9.4/example_9_4.sce
blob: a53ae096ffc57cf2bb72a311761a57f3c79c6e25 (plain)
1
2
3
4
5
6
7
8
9
10
11
//example 9.4
clc;
clear;
//b= input('Enter the number of bits :');
//c= input('Enter the clock frequency in Mhz :');
b= 8; // given values 
c=10;
t= 1000/c;
printf('One clock period takes %d ns\n',t); //displying the results 
tt=t*b;
printf(' Time required by total bits required is %d ns',tt);