GATE Computer ScienceHardGATE CS (PYQ pattern)

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 (no sharing; a lone g_i feeds the OR directly). What is the total number of gate inputs (AND inputs plus OR inputs) over the four carries?

  1. A. 40
  2. B. 50
  3. C. 30
  4. D. 44

Correct answer: D. 44

C_i = g(i−1) + p(i−1)g(i−2) + … + p(i−1)…p0·C0 has i AND gates with fan-ins 2, 3, …, i + 1 and an OR of fan-in i + 1. C1: 2 + 2 = 4; C2: (2 + 3) + 3 = 8; C3: 9 + 4 = 13; C4: 14 + 5 = 19. Total 44.

More Digital Logic questions

Exams that ask this topic