Question

The amount of ROM needed to implement a 4 bit multiplier is

Choose one option
Official answer and solution
Official answer
D
From
Official GATE 2012 answer key

Solution

Determine the required address lines and word size of a Read-Only Memory (ROM) used as a lookup table for a 4-bit binary multiplier.

  1. A 4-bit multiplier takes two 4-bit unsigned binary numbers as inputs, say A=a3a2a1a0A = a_3 a_2 a_1 a_0 and B=b3b2b1b0B = b_3 b_2 b_1 b_0.

  2. Total number of input bits to the multiplier is 4+4=84 + 4 = 8 bits. When implemented using a ROM lookup table, these 8 bits serve as address lines.

  3. The number of addressable locations (words) in the ROM is:

Number of words=28=256\text{Number of words} = 2^8 = 256
  1. The maximum product of two 4-bit numbers is:
15×15=22515 \times 15 = 225

Since 225<256=28225 < 256 = 2^8, the product requires at most 8 output bits (data lines) to represent any possible result.

  1. Therefore, the total capacity of the ROM is:
Capacity=(Number of words)×(Word width)=256×8 bits=2048 bits=2 Kbits\text{Capacity} = (\text{Number of words}) \times (\text{Word width}) = 256 \times 8 \text{ bits} = 2048 \text{ bits} = 2 \text{ Kbits}

Thus, 2 Kbits of ROM are needed.

Final answer

D

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

Source

Paper
GATE 2012 Computer Science and Information Technology (CS)
Question
19 of 65, printed as CS Q.19
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.