GATE Computer ScienceVery hardGATE CS (PYQ pattern)
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 bit that equals an input bit is wired directly, inputs that do not affect the stored outputs are not used as address lines, and the ROM has 2ⁿ words. What is the minimum ROM size in bits?
- A. 128 × 6 = 768
- B. 256 × 7 = 1792
- C. 128 × 7 = 896
- D. 64 × 6 = 384
Correct answer: A. 128 × 6 = 768
The binary LSB equals the LSB of U (10T is even), so it is wired directly. The remaining bits are (10T + U) >> 1 = 5T + (U >> 1), which depends on the 4 bits of T and the upper 3 bits of U: 7 address lines, 128 words. 5T + ⌊U/2⌋ ≤ 49 needs 6 output bits: 768 bits.
More Digital Logic questions
- 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…
- A full subtractor (A − B − Bin, giving difference D and borrow-out Bout) is to be built from one full adder (inputs x, y, z; outputs sum S…