summaryrefslogtreecommitdiff
path: root/2492/CH12/EX12.3/ex12_3.sce
blob: e02ca9492336f5c1c3e3a946101fd7f9f70ab08e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Exa 12.3
format('v',6)
clc;
clear;
close;
// Given data
memory = 16;// in K
memory= memory*1024;// in bits
// Number of bits of storage,
Req_add_bits= log(memory)/log(2);
disp(Req_add_bits,"Number of bits of storage is : ")
disp(Req_add_bits,"Number of lines in address bus is : ")