CodiodeCodiode
Home
Problem Solving
Skill Tracks
My Assignments
Contests
Leaderboard
Community
Settings
Codiode/Problems/Arithmetic

4-bit Carry Lookahead Block

HardLogic CircuitBuild

High-speed adders in modern ALUs eliminate ripple delay by computing all carry signals in parallel. The lookahead block evaluates generate and propagate conditions to determine incoming carries for every bit slice simultaneously.

The circuit receives generate signals G0 through G3, propagate signals P0 through P3, and an initial carry Cin. It must compute the parallel outgoing carry signals C1, C2, C3, and C4. A carry is asserted if the current bit generates it, or if the current bit propagates a carry generated by a previous stage. The logic depth remains constant, but the gate fan-in grows with each successive bit.

The expanded sum-of-products behavior for C2 is shown below to illustrate the required logic structure:

| G1 | P1 | G0 | P0 | Cin | C2 | |------|------|------|------|-------|------| | 1 | 0 | 0 | 0 | 0 | 1 | | 0 | 1 | 1 | 0 | 0 | 1 | | 0 | 1 | 0 | 1 | 1 | 1 | | 0 | 1 | 0 | 0 | 1 | 0 | | 0 | 0 | 1 | 1 | 1 | 0 |

Constraints

  • Implement the exact sum-of-products boolean logic for C1, C2, C3, and C4.
  • Do not use cascaded adders or ripple-carry chains to compute the outputs.
  • Use strictly combinational logic.

Topics

optimizationcombinationalarithmeticadder

Solve this problem

Place the gates, wire them up and watch the signals settle. Every submission runs on the same simulation engine that grades it.

This problem is part of Codiode Pro. The statement above is free to read.

Sign in to solveSee what Pro unlocks

The circuit builder and code editor need a desktop screen. On a phone, read the problem here and open it on a laptop to solve.

Related problems

  • Half Adder Using Only XOR and ANDEasy
  • Floating Point Exception FlagsMedium
  • ALU Flag Evaluation Branch LogicHard
  • BCD Adder Correction BlockMedium
  • IEEE 754 Mantissa Alignment ShifterHard
  • 1-Bit ALU SliceMedium
  • Four-Bit Bus AdderEasy
  • Debugging Twos Complement OverflowMedium

Browse all problems · Learning tracks