Coffee Room
Discuss anything here - everything that you wish to discuss with fellow engineers.
12893 Members
Join this group to post and comment.
enigma • Sep 4, 2009

# Why is capacity of RAM is a power of 2?

vishalhak
Data Transfer Rate

The speed with which data can be read from a CD ROM drive. 150 kilobytes per second was the original standard rate; 2x = 300 kb/second; 4x = 600kb/s (etc.); 12x = 1.8 mb/s; 16x = 2.4 mb/s.

good info......can u tell me why ram capacity always come in 2s power
eg 512=(2)9
1024=(2)10
Kaustubh Katdare • Sep 4, 2009
enigma
can u tell me why ram capacity always come in 2s power
eg 512=(2)9
1024=(2)10
Because memory is measured in terms of bits or bytes.

A byte is eight bits, resulting in the possibility of 256 values (28). A kilobyte is 1,024 (210) bytes (the term "byte" is often defined as a collection of bits rather than the strict definition of an 8-bit quantity.)
TARANJEET SINGH • Sep 4, 2009
Or this can be the reason that RAM works on binary numbers (0,1) so it's memory is always measured in power of two. Correct me if I'm wrong
faizaan • Sep 4, 2009
hi friend's

my point of view is that

as computer understand only binary language i.e 0 & 1

so for addressing purpose in memory if the size is in power of 2 than we can address all registers using n bits where n is 2^n=size of memory.

eg..if size of memory is 1024kb (i.e there are 1024 registers with 8 bit each) than we require 10 bits ( i.e 2^10 =1024) for addressing this memory area .

pls correct me if i am wrong...
saurabh2486 • Sep 5, 2009
big k is right or u can say everyone is right
just2rock • Sep 5, 2009
faizaan
hi friend's

my point of view is that

as computer understand only binary language i.e 0 & 1

so for addressing purpose in memory if the size is in power of 2 than we can address all registers using n bits where n is 2^n=size of memory.

eg..if size of memory is 1024kb (i.e there are 1024 registers with 8 bit each) than we require 10 bits ( i.e 2^10 =1024) for addressing this memory area .

pls correct me if i am wrong...