A processor supports a maximum memory of 4 GB. The memory is word-addressable,…

2019

A processor supports a maximum memory of 4 GB. The memory is word-addressable, and each word is 2 bytes. Which option gives the minimum address-bus width sufficient to address the entire memory?

Answer: C. At least 31 bitsConcept: In a word-addressable memory, each address identifies one complete word. If a memory contains N addressable words, an n-bit address bus can identify…

  1. A.

    At least 28 bits

  2. B.

    At least 2 bytes

  3. C.

    At least 31 bits

  4. D.

    Minimum 4 bytes

Attempted by 778 students.

Show answer & explanation

Correct answer: C

Concept: In a word-addressable memory, each address identifies one complete word. If a memory contains N addressable words, an n-bit address bus can identify 2n addresses, so n = log2 N.

Capacity must therefore be converted into a count of words before the address width is calculated.

Application

  1. Convert the total capacity: 4 GB = 4 × 230 bytes = 232 bytes.

  2. Count addressable words: 232 bytes ÷ 2 bytes per word = 231 words.

  3. Find the address width: log2(231) = 31 address bits.

Cross-check: A 31-bit bus supplies 231 word addresses. At 2 bytes per word, this covers 232 bytes, which is 4 GB under the binary memory convention.

Result: The processor needs an address bus of at least 31 bits.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Tpsc Assistant Technical Officer

Loading lesson…