IAE Academy

GATE 2018 EC Q.32: solution and answer

GATE 2018 · ECQ.32 · 2 marks · MCQ

A ROM array is built with the help of diodes as shown in the circuit below. Here W0 and W1 are signals that select the word lines and B0 and B1 are signals that are output of the sense amps based on the stored data corresponding to the bit lines during the read operation.

[Figure: diode ROM array; beside it the matrix of bits stored in the ROM array, rows , columns : ]

During the read operation, the selected word line goes high and the other word line is in a high impedance state. As per the implementation shown in the circuit diagram above, what are the bits corresponding to (where or and or ) stored in the ROM?

GATE 2018 EC question 32: Two horizontal word lines, W0 (top) and W1 (below it), cross two vertical bit lines, B0 (left) and B1 (right).Tap to open full size
Figure from the GATE 2018 EC paper. It is part of the question.
Figure description

Two horizontal word lines, W0 (top) and W1 (below it), cross two vertical bit lines, B0 (left) and B1 (right). At the top of each bit line is an upward-pointing buffer triangle (labelled 'Sense amps') whose output is labelled B0 and B1. Diode 1: its anode connects to W0 at a dot to the left of B0, and its cathode connects to the B0 bit line at a dot just below W0. The diode symbol points from W0 toward B0. Diode 2: its anode connects to W1 at a dot between B0 and B1, and its cathode connects to the B1 bit line just below W1. There is no diode between W0 and B1, and none between W1 and B0. At the bottom of each bit line is an n-channel MOSFET. Its drain is on the bit line and its source goes to ground. A horizontal line labelled VDD drives the gates of both MOSFETs, so both are always on and act as pull-down loads on the bit lines. To the right is the matrix 'Bits stored in the ROM Array': row W0 = [D00 D01], row W1 = [D10 D11], columns B0 and B1.

  1. (A)

  2. (B)

  3. (C)

  4. (D)

Answer and solution

ANSWER

The ROM stores , which is option (A).

Official answer: ASource: Official answer key, GATE 2018 EC (IIT Guwahati)

  1. Bit-line default. Each bit line ends in a MOSFET whose source is grounded and whose gate is tied to . The symbol has no gate bubble, so it is n-channel, and it is always on. It acts as a pull-down load: if nothing drives a bit line high, the sense amp reads it as .

  2. Diode orientation. Both diodes have the anode on a word line and the cathode on a bit line. A diode conducts only when its word line is high. It then pulls that bit line up to about one diode drop below the word-line high level, roughly , which the sense amp reads as . So a diode at a crossing stores a and a crossing with no diode stores a .

  3. Unselected line. The unselected word line is in a high-impedance state, so it cannot drive any bit line high or low. The diodes conduct only from a word line to a bit line, never back. Each bit line also has only one diode on it, so there is no sneak path through the other row, and only the selected row sets the outputs.

  4. Read row ( high). The diode from to conducts, so . There is no diode at the – crossing, so the always-on MOSFET holds low and . This gives and .

  5. Read row ( high). The diode from to conducts, so . There is no diode at the – crossing, and the diode on has its anode on the floating line , so it cannot conduct. The MOSFET holds low and . This gives and .

  6. Stored matrix: This is option (A).

KEY IDEA

In a diode ROM, the always-on transistor at the foot of each bit line pulls it low by default. A diode from a word line (anode) to a bit line (cathode) pulls that bit line high when the row is selected. So a diode at a crossing stores and an empty crossing stores . Read the matrix straight off the diode positions: row has a diode only on and row only on .

WATCH OUT FOR

Treating a diode as a stored , as if it pulled the line low, which gives option (B). Here the default level comes from the pull-down transistor with its gate tied to , so a diode drives the line high and marks a . A second slip is reading the matrix by column instead of by row, or taking the diode's anode position (the diode's anode sits between and ) as its column. The column is set by the bit line the cathode lands on.

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

More Processors & memory questions