View Full Version : Address bus calculation ?
natalie1xxx
Jun 16, 2009, 02:00 PM
How do I answer this question :eek:... "if a computer had a 12-bit address bus, how many different memory locations could it address directly?"... thanks :D:D
Scleros
Jun 17, 2009, 07:58 PM
Smells like homework. So...
A 1 bit bus could address locations:
0
1
or 2^1 = 2 locations.
A 2 bit bus could address locations:
00
01
10
11
or 2^2 = 4 locations.
A 3 bit bus could address locations:
000
001
010
011
100
101
110
111
or 2^3 = 8 locations
See a pattern?
natalie1xxx
Jun 18, 2009, 10:46 AM
yeah , its doubling? :D
so a 4 bit bus could address locations :
0000
0100
0110
0111
0001
0011
0100
0010
1111
1110
1100
1000
1011
1001
1010
1101
= 16 :D
Scleros
Jun 18, 2009, 03:59 PM
It's 2^(Number'o'Bits).
natalie1xxx
Jun 18, 2009, 04:02 PM
Whaaat? So is the answer I got not right ?
Scleros
Jun 21, 2009, 10:57 PM
No it's right, I just giving general formula for any given number of bits.
natalie1xxx
Jun 22, 2009, 12:06 PM
Oh thanks :)