Question
The amount of ROM needed to implement a 4 bit multiplier is
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.
-
A 4-bit multiplier takes two 4-bit unsigned binary numbers as inputs, say and .
-
Total number of input bits to the multiplier is bits. When implemented using a ROM lookup table, these 8 bits serve as address lines.
-
The number of addressable locations (words) in the ROM is:
- The maximum product of two 4-bit numbers is:
Since , the product requires at most 8 output bits (data lines) to represent any possible result.
- Therefore, the total capacity of the ROM is:
Thus, 2 Kbits of ROM are needed.
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.