GATE / CS ARCHIVE

SIMILAR QUESTIONS / COMPUTER ORGANIZATION & ARCHITECTURE

Relate memory addressability to bus widths

2 questions solved the same way, newest first. Back to Computer Organization & Architecture

How these are solved

Count addressable words, accounting for bytes per word, and take a base-two logarithm for address width. The 1995 variant additionally asks data-line count from the word width.

1 mark · NAT
Report issue

Memory Organization & Address Translation

Question 9, GATE 2016: A processor supports up to 4 GB of word-addressable memory, with two bytes per word. What is the minimum address-bus width in bits?
Tap to enlarge
Answer & solution

Official answer: 31.0 : 31.0

Our answer: 31

Using the exam’s binary memory-size convention, 4 GB=2³² bytes. A word address identifies two bytes, leaving 2³¹ addressable words and requiring 31 address bits. Decimal 4·10⁹ bytes gives the same ceiling 31.

The address bus counts addressable units, not bytes unless memory is byte-addressable. Here each address selects one two-byte word, so divide byte capacity by 2 before taking the base-two logarithm. With 31 address bits there are 231 distinct patterns, exactly enough for the word addresses. Thirty bits would reach only 230 words, or 2 GiB, so the lower width is insufficient. Data-bus width and address-bus width are separate questions.

Original paper, page 5 · Answer key

2 marks · MCQ
Report issue

Address and data wires

Memory Organization & Address Translation

Question 2.2, GATE 1995: A memory stores 4K words of 16 bits each. How many separate address and data lines are needed?
Tap to enlarge
Your answer
Answer & solution

Answer: C: 12 address,16 data (no official key was published)

With K=1024, 4K=4096=212 distinct words, so selecting one requires 12 address bits. Each selected word contains 16 bits, transferred over 16 parallel data lines in the stated separate-bus model. Multiplying words by bits gives total capacity, but not the address-line count: addresses select words, not individual bits here. The answer assumes no address multiplexing or serial data interface, consistent with the requested separate lines.

Original paper, page 3