IAE Academy

GATE 2025 IN Q.42: solution and answer

GATE 2025 · INQ.42 · 2 marks · MCQ

An 8-bit microprocessor has 16-bit address bus () where is the LSB. As shown in Figure (a), it has a pre-installed 4 KB ROM whose starting address is 0000 H. The processor needs to be upgraded by adding a 16 KB RAM as shown in Figure (b). The address range for the newly added RAM is

GATE 2025 IN question 42: Figure (a), labelled 'Pre-installed ROM': a block marked '4 KB ROM' inside a dotted box.Tap to open full size
Figure from the GATE 2025 IN paper. It is part of the question.
Figure description

Figure (a), labelled 'Pre-installed ROM': a block marked '4 KB ROM' inside a dotted box. Address lines A_0, A_1,, A_11 (vertical dots between A_1 and A_11) go straight into the ROM's address inputs. Lines A_12,, A_15 (vertical dots between) are the inputs of an OR gate. The OR gate output drives the ROM's active-low chip select CS. Figure (b), labelled 'Newly added RAM': a block marked '16 KB RAM' inside a dotted box. Address lines A_0, A_1,, A_13 (vertical dots between A_1 and A_13) go straight into the RAM's address inputs. A_14 passes through a NOT gate (inverter) into one input of a 2-input OR gate; A_15 goes directly into the other input. The OR gate output drives the RAM's active-low chip select CS.

  1. (A)

    1000 H – 4FFF H

  2. (B)

    3000 H – 6FFF H

  3. (C)

    4000 H – 7FFF H

  4. (D)

    8000 H – BFFF H

Answer and solution

ANSWER

The newly added 16 KB RAM occupies 4000 H to 7FFF H, which is option (C).

Official answer: CSource: Official answer key, GATE 2025 IN (IIT Roorkee)

  1. Size check: locations, so the RAM uses the 14 address lines internally. The remaining lines and go to the chip-select logic.

  2. Decoding logic (the prime means complement): passes through the inverter and goes straight into the OR gate, so the RAM's chip select is .

  3. is active low, so the RAM is selected only when . An OR output is 0 only if every input is 0. So and , which means .

  4. Lowest address: with all 0, which is .

  5. Highest address: with all 1, which is .

  6. Consistency check: the ROM's is 0 only when all four lines are 0, so the ROM occupies to ( locations , starting at as the question says). This does not overlap to . The RAM spans locations , which matches its size.

  7. So the RAM's address range is to , which is option (C).

KEY IDEA

Address lines that go straight into a memory chip change freely across its range. The lines that feed the chip-select logic are fixed at the values that make the active-low equal to 0. Here is 0 only for . The 14 free lines then run from all 0s to all 1s, giving to .

WATCH OUT FOR

Treating as active high, or forgetting the inverter on . Both errors give or , which lands on a wrong block such as to (option D). Another trap is placing the RAM straight after the 4 KB ROM at (option A). The decoder, not the ROM's size, decides where the RAM sits, and a 16 KB block decoded on always starts on a 16 KB boundary.

From the GATE 2025 IN paper. Every question of this paper · Download the full paper · All 9 Processors & memory questions, with notes

More Processors & memory questions