Lookahead carry unit: Difference between revisions

From testwiki
Jump to navigation Jump to search
imported>Filmssssssssssss
Reverted 1 edit by Ogrinzz12 (talk)
 
(No difference)

Latest revision as of 20:46, 19 November 2024

Template:Short description 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).

4-bit adder

A single 4-bit CLA is shown below:

4-bit adder with Carry Look Ahead (CLA)

16-bit adder

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) and group generate (GG) from each of the four CLAs. PG and GG have the following expressions for each CLA adder:[1]

PG=P0P1P2P3
GG=G3+G2P3+G1P2P3+G0P1P2P3

The LCU then generates the carry input for each CLA.

Assume that Pi is PG and Gi is GG from the ith CLA then the output carry bits are

C4=G0+P0C0
C8=G4+P4C4
C12=G8+P8C8
C16=G12+P12C12

Substituting C4 into C8, then C8 into C12, then C12 into C16 yields the expanded equations:

C4=G0+P0C0
C8=G4+G0P4+C0P0P4
C12=G8+G4P8+G0P4P8+C0P0P4P8
C16=G12+G8P12+G4P8P12+G0P4P8P12+C0P0P4P8P12

C4 corresponds to the carry input into the second CLA; C8 to the third CLA; C12 to the fourth CLA; and C16 to overflow carry bit.

In addition, the LCU can calculate its own propagate and generate:

PLCU=P0P4P8P12
GLCU=G12+G8P12+G4P8P12+G0P4P8P12
C16=GLCU+C0PLCU
16-bit adder with LCU

64-bit adder

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) and generate (GLCU) from each LCU and the four carry outputs generated by the second-level LCU are fed into the first-level LCUs.

64-bit adders with a second-level LCU

References

Template:Reflist

de:Paralleladdierer mit Übertragsvorausberechnung