Carry Look-Ahead Adder Magic Layout


The adder consists of several important subunits. The first one is the propagate/generate generator. In Magic, this subcell is laid out as:

The next subcell is the sum generator. In Magic, this subcell is

The carry generator can be thought of as a single unit, but the equations used in each bit are radically different. The following shows each equation, followed by the corresponding Magic implementation. Note that the carry equations (and thus, their implementations) are progressively more complex.

C0 = G0 + P0*CIN

C1 = G1 + P1*G0 + P1*P0*CIN

C2 = G2 + P2*G1 + P2*P1*G0 + P2*P1*P0*CIN

C3 = G3 + P3*G2 + P3*P2*G1 + P3*P2*P1*G0 + P3*P2*P1*P0*CIN

The adder as a whole looks like: