Skip to content

GATE CS 2019 Q2 — Memory Hierarchy: Cache, Main Memory and Secondary Storage

Explain with AI

The chip select logic for a certain DRAM chip in a memory system design is shown below. Assume that the memory system has 1616 address lines denoted by A15A_{15} to A0A_0. What is the range of address (in hexadecimal) of the memory system that can get enabled by the chip select (CS) signal?

Choose one option
View worked solution

Answer: A

To find the enabled address range, we analyze the logic gates that generate the active-low chip select signal CS‾\overline{\text{CS}}:

  • An AND gate with inputs A15A_{15} and A14A_{14} produces the output A15⋅A14A_{15} \cdot A_{14}.
  • A NOR gate with inputs A13A_{13} and A12A_{12} produces the output A13+A12‾\overline{A_{13} + A_{12}}.
  • A 3-input NAND gate takes these two outputs along with A11A_{11} to produce the active-low chip select signal:CS‾=(A15⋅A14)⋅(A13+A12‾)⋅A11‾\overline{\text{CS}} = \overline{(A_{15} \cdot A_{14}) \cdot (\overline{A_{13} + A_{12}}) \cdot A_{11}}

For the DRAM chip to be enabled, we require CS‾=0\overline{\text{CS}} = 0. This is achieved when all inputs to the final NAND gate are 11:

  1. A15⋅A14=1  ⟹  A15=1A_{15} \cdot A_{14} = 1 \implies A_{15} = 1 and A14=1A_{14} = 1
  2. A13+A12‾=1  ⟹  A13=0\overline{A_{13} + A_{12}} = 1 \implies A_{13} = 0 and A12=0A_{12} = 0
  3. A11=1A_{11} = 1

Thus, the upper 5 address bits are fixed as A15A14A13A12A11=110012A_{15}A_{14}A_{13}A_{12}A_{11} = 11001_2. The remaining 11 bits (A10A_{10} to A0A_0) can vary freely from all 00s to all 11s:

  • Minimum Address: 1100  1000  0000  00002=C800161100\;1000\;0000\;0000_2 = \text{C800}_{16}
  • Maximum Address: 1100  1111  1111  11112=CFFF161100\;1111\;1111\;1111_2 = \text{CFFF}_{16}

Therefore, the address range is C800 to CFFF.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Memory Hierarchy: Cache, Main Memory and Secondary Storage questions