ALU
ALU
● When we add bits, this may produce a carry. Columns further up need to accept a carry as input, along with two
inputs, and produce the 1-bit output and another carry for the next column up.
● The component which will perform a 1-bit ADD, receiving a carry in and producing a 1-bit output and a carry out is
called a full adder. Its interface looks like the following
full adder
● To make a 32-bit full adder, we simply have to string 32 of these 1-bit
full adders together.
● Except for the least-significant adder, each one is going to receive its
carry from the one below and pass up its own carry to the one above.
● For the most significant bit, if the carry is a 1, then we ran out of bits
to store the result.
● When the final carry output is 1, this indicates that the result was too
big to fit into 32 bits.
1.5 Subtraction
1.7 Negative Output