Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Other Hardware (https://www.askmehelpdesk.com/forumdisplay.php?f=465)
-   -   Address bus calculation ? (https://www.askmehelpdesk.com/showthread.php?t=365703)

  • Jun 16, 2009, 02:00 PM
    natalie1xxx
    Address bus calculation ?
    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
  • Jun 17, 2009, 07:58 PM
    Scleros
    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?
  • Jun 18, 2009, 10:46 AM
    natalie1xxx

    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
  • Jun 18, 2009, 03:59 PM
    Scleros
    It's 2^(Number'o'Bits).
  • Jun 18, 2009, 04:02 PM
    natalie1xxx

    Whaaat? So is the answer I got not right ?
  • Jun 21, 2009, 10:57 PM
    Scleros
    No it's right, I just giving general formula for any given number of bits.
  • Jun 22, 2009, 12:06 PM
    natalie1xxx

    Oh thanks :)

  • All times are GMT -7. The time now is 09:09 PM.