Question
Consider a carry lookahead adder for adding two -bit integers, built using gates of fan-in at most two. The time to perform addition using this adder is
Official answer and solution
- Official answer
- B
- From
- Official GATE 2016 answer key
Solution
Evaluate tree depth required to compute prefix carries when gate fan-in is bounded by two.
In a Carry Lookahead Adder (CLA), carry generation terms and propagation terms are computed in time.
The -th carry is expressed as:
For an -bit adder, this expression involves an -input OR gate and AND gates with fan-in up to .
When gate fan-in is restricted to at most 2, an -input Boolean function must be implemented using a binary tree of 2-input logic gates.
The height (depth) of a balanced binary tree with inputs is .
Using parallel prefix adder architectures (such as Brent-Kung or Kogge-Stone), prefix carries can be computed in gate levels.
Therefore, the addition time is .
B
Assuming CLA addition takes time, forgetting that requires unbounded gate fan-in, which is physically prohibited by the fan-in constraint.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2016 Computer Science and Information Technology (CS) Session 1
- Question
- 43 of 65, printed as CS Q.33
- 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.