GATE Computer ScienceVery hardGATE CS (PYQ pattern)
A 32-bit carry-select adder is built from blocks. A block of n bits contains two ripple adders (carry-in 0 and 1) that have their carry-out at 2n gate delays and all their sums at 2n + 1, from inputs at t = 0. The first block uses the real carry-in (0) directly; every later block selects its carry-out and its sums with multiplexers that add 2 gate delays after both the incoming carry and the block's own results are ready. When is the final sum ready with four 8-bit blocks, and with blocks of 4, 4, 5, 6, 6 and 7 bits (least significant first)?
- A. 22 and 20
- B. 22 and 18
- C. 22 and 22
- D. 18 and 22
Correct answer: B. 22 and 18
Uniform: c₈ = 16, c₁₆ = max(16, 16) + 2 = 18, c₂₄ = 20, final sums max(17, 20) + 2 = 22. Growing blocks: c₄ = 8, then max(8, 8) + 2 = 10, max(10, 10) + 2 = 12, max(12, 12) + 2 = 14, max(12, 14) + 2 = 16, and the 7-bit block's sums max(15, 16) + 2 = 18. Block sizes that grow so each block finishes just as its carry arrives cut the delay; eight 4-bit blocks would need 22.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A device produces a 40,000 bytes/s stream into a 16-byte buffer, and the CPU (500 MHz) polls it periodically, never letting the buffer…
- Three caches with 4 one-word lines each see the block trace [0, 1, 2, 3, 0, 4, 1, 5, 2, 6, 3, 7, 0, 4]: (i) direct-mapped, (ii) 2-way…
- A 64-byte, 2-way set-associative cache with 16-byte blocks and LRU replacement is empty. The processor reads these byte addresses in…
- A 16-bit instruction set has 4-bit address fields and expanding opcodes: three-address instructions use a 4-bit opcode, two-address…
- A RISC machine has 32-bit (4-byte) instructions at word-aligned addresses and a PC-relative branch with a 12-bit signed offset field…
- A direct-mapped cache has 8 lines (block = 1 word). A program issues block references [0, 8, 0, 8, 1, 9, 1, 9, 2, 10, 2, 10, 0, 8, 1, 9]…