GATE Computer ScienceVery hardGATE CS (PYQ pattern)
A ROM converts an 8-bit unsigned binary number (0-255) into three BCD digits. The hundreds digit is stored in only 2 bits (it never exceeds 2), and any output bit that simply equals an input bit is wired directly instead of being stored. What is the minimum ROM size in bits?
- A. 256 × 10 = 2560
- B. 256 × 9 = 2304
- C. 128 × 10 = 1280
- D. 128 × 9 = 1152
Correct answer: D. 128 × 9 = 1152
The units digit has the same LSB as the binary number (10 is even), so that bit is wired straight through. The rest depends only on x >> 1: tens and hundreds are ⌊(x>>1)/5⌋ split into digits and the remaining units bits are (x>>1) mod 5. So the ROM needs 2⁷ = 128 words of 2 + 4 + 3 = 9 bits = 1152 bits.
More Digital Logic questions
- A ROM converts a two-digit BCD number (tens digit T and units digit U, 8 input bits, value 0-99) into a 7-bit binary number. Any output…
- A 32-bit logical right shifter (shift distance 0-31) has 5 levels, level j shifting by 2^j or not. A position whose shifted-in input would…
- A 3-to-8 decoder has active-low outputs Y0'..Y7' (Yi' = 0 only for input code i). To realise F(A,B,C) = Σm(0,1,2,4,5,7) with the fewest…
- An 8:1 multiplexer with S2 = B, S1 = C, S0 = D (S2 the most significant select) realises F(A,B,C,D) = Σm(2,3,5,8,9,12,13,15), where A is…
- A single 4:1 multiplexer has select inputs S1 = A and S0 = B. Each of its four data inputs is connected to one of 0, 1, A, B or C (no…
- In a 4-bit carry-lookahead unit each carry C1, C2, C3, C4 is produced by its own flat two-level AND-OR circuit from g0..g3, p0..p3 and C0…