Find the length of a memory address in bits? Hia, can someone please help me understand how to calculate the length of a memory address in bits.
Thank you.
depends on the memory range that you use.
If your memory is only 128 items, then you can provide a unique address for each location: 0, 1, 2, .... Which is 127 to 128 different addresses. This is part of a number of 7 bits, we can say this address space is addressable with a 7-bit address.
To make this more formal, we can try this:
log (128) / log (2) = 7
Thus, in the general journal (addressSpaceSize) / log (2) = number of address bits
For number 163, it works as follows:
1. Let D = 163
2. b) D is odd, put a 1 in column 2 ^ 0.
Subtract 1 from D to get 162.
c) D = 162 Divide by 2.
Provisional result: 01 New D = 81
D is not equal to 0, then repeat step 2.
2. b) D is odd, put a 1 in column 2 ^ 1.
Subtract 1 from D to get 80.
c) D = 80 Divide by 2.
Provisional result: 11 New D = 40
D is not equal to 0, then repeat step 2.
2. b) D is even, put a 0 in column 2 ^ 2.
c) Divide by 2 D.
Temporary Result: 011 New D = 20
2. b) D is even, put a 0 in column 2 ^ 3.
c) Divide by 2 D.
Temporary Result: 0011 New D = 10
2. b) D is even, put a 0 in column 2 ^ 4.
c) Divide by 2 D.
Temporary Result: 00011 New D = 5
2. a) D is odd, put a 1 in column 2 ^ 5.
Subtract 1 from D to get 4.
c) Divide by 2 D.
Temporary Result: 100011 New D = 2
2. b) D is even, put a 0 in column 2 ^ 6.
c) Divide by 2 D.
Provisional result: D = 1 0100011 New
2. a) D is odd, put a 1 in column 27.
Subtract 1 from D for D = 0.
c) Divide by 2 D.
Provisional result: 10100011 New D = 0
D = 0, we are done, and the decimal number 163 is equivalent to the binary number 10100011.
Since we already know how to convert binary to decimal, we can easily verify our result. 10100011 = (1 * 2 ^ 0) + (1 * 2 ^ 1) + (1 * 2 ^ 5) + (1 * 2 ^ 7) ... 163
***** The number 10100011 is 8 bits **************
Look here for decimal to binary
http://www.math.grin.edu/ rebelsky ~ / Courses ...
Depends on your computer, right?
Our current crop of computers at home most have a 32-bit address.
If you are old enough to remember the Commodore 64, Atari 800 and Apple II +, these computers had a 16-bit address.
... And the original 8088 IBM PC and its clones had a 8086 24-bit address.
Posted on May 28, 2010.