A lookahead carry unit (LCU) is a logical unit in digital circuit design used to decrease calculation time in adder units and used in conjunction with carry look-ahead adders (CLAs).
A single 4-bit CLA is shown below:
By combining four 4-bit CLAs, a 16-bit adder can be created but additional logic is needed in the form of an LCU.
The LCU accepts the group propagate (
PG
GG
PG
GG
PG=P0 ⋅ P1 ⋅ P2 ⋅ P3
GG=G3+G2 ⋅ P3+G1 ⋅ P2 ⋅ P3+G0 ⋅ P1 ⋅ P2 ⋅ P3
The LCU then generates the carry input for each CLA.
Assume that
Pi
PG
Gi
GG
C4=G0+P0 ⋅ C0
C8=G4+P4 ⋅ C4
C12=G8+P8 ⋅ C8
C16=G12+P12 ⋅ C12
Substituting
C4
C8
C8
C12
C12
C16
C4=G0+P0 ⋅ C0
C8=G4+G0 ⋅ P4+C0 ⋅ P0 ⋅ P4
C12=G8+G4 ⋅ P8+G0 ⋅ P4 ⋅ P8+C0 ⋅ P0 ⋅ P4 ⋅ P8
C16=G12+G8 ⋅ P12+G4 ⋅ P8 ⋅ P12+G0 ⋅ P4 ⋅ P8 ⋅ P12+C0 ⋅ P0 ⋅ P4 ⋅ P8 ⋅ P12
C4
C8
C12
C16
In addition, the LCU can calculate its own propagate and generate:
PLCU=P0 ⋅ P4 ⋅ P8 ⋅ P12
GLCU=G12+G8 ⋅ P12+G4 ⋅ P8 ⋅ P12+G0 ⋅ P4 ⋅ P8 ⋅ P12
C16=GLCU+C0 ⋅ PLCU
By combining 4 CLAs and an LCU together creates a 16-bit adder.Four of these units can be combined to form a 64-bit adder.An additional (second-level) LCU is needed that accepts the propagate (
PLCU
GLCU
. Randy Katz . Contemporary Logic Design . The Benjamin/Cummings Publishing Company . 1994 . 0-8053-2703-7 . 249–256 . registration .