Question

A 4 kilobyte (KB) byte-addressable memory is realized using four 1 KB memory blocks. Two input address lines (IA4 and IA3) are connected to the chip select (CS) port of these memory blocks through a decoder as shown in the figure. The remaining ten input address lines from IA11–IA0 are connected to the address port of these blocks. The chip select (CS) is active high.

Four 1 KB memory blocks (X1, X2, X3, X4) with 10-bit address bus (IA11-IA5, IA2-IA0) connected to Addr and a 2-to-4 decoder driven by IA4 (A1) and IA3 (A0) connected to active-high chip select CS.

The input memory addresses (IA11–IA0), in decimal, for the starting locations (Addr=0) of each block (indicated as X1, X2, X3, X4 in the figure) are among the options given below. Which one of the following options is CORRECT?

Choose one option
Official answer and solution
Official answer
C
From
Official GATE 2023 answer key

Solution

Identify the bit positions of IA4 and IA3 in the address bus to find starting addresses where Addr = 0.

  1. The 12-bit address bus is IA11…IA0\text{IA}_{11}\dots\text{IA}_0.
  2. The 10 address lines connected to Addr of each block are IA11…IA5\text{IA}_{11}\dots\text{IA}_5 and IA2…IA0\text{IA}_2\dots\text{IA}_0. For the starting location of each block, Addr=0\text{Addr} = 0, meaning all these 10 lines must be 00.
  3. The chip select lines are driven by the decoder inputs:
    • A1=IA4A_1 = \text{IA}_4 (weight 24=162^4 = 16)
    • A0=IA3A_0 = \text{IA}_3 (weight 23=82^3 = 8)
  4. Evaluating the starting address (IA11…IA0)(\text{IA}_{11}\dots\text{IA}_0) for each decoder output:
    • For block X1X_1 (Q0Q_0 enabled): A1A0=00  ⟹  IA4=0,IA3=0  ⟹  Address=0A_1 A_0 = 00 \implies \text{IA}_4=0, \text{IA}_3=0 \implies \text{Address} = 0
    • For block X2X_2 (Q1Q_1 enabled): A1A0=01  ⟹  IA4=0,IA3=1  ⟹  Address=23=8A_1 A_0 = 01 \implies \text{IA}_4=0, \text{IA}_3=1 \implies \text{Address} = 2^3 = 8
    • For block X3X_3 (Q2Q_2 enabled): A1A0=10  ⟹  IA4=1,IA3=0  ⟹  Address=24=16A_1 A_0 = 10 \implies \text{IA}_4=1, \text{IA}_3=0 \implies \text{Address} = 2^4 = 16
    • For block X4X_4 (Q3Q_3 enabled): A1A0=11  ⟹  IA4=1,IA3=1  ⟹  Address=16+8=24A_1 A_0 = 11 \implies \text{IA}_4=1, \text{IA}_3=1 \implies \text{Address} = 16 + 8 = 24

Thus, the starting decimal addresses are (0,8,16,24)(0, 8, 16, 24).

Final answer

Option (C)

Common trap

Assuming the decoder lines are the most significant bits (which would give 0,1024,2048,30720, 1024, 2048, 3072).

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2023 Computer Science and Information Technology (CS)
Question
42 of 65
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.