13 Addition and subtraction Flashcards
The most basic arithmetic operation is the sum of two binary bits:
Adder TT
Half adder logic circuit
Adder circuit diagram
Full adders overview?
Full adders allow the addition of n-bit binary numbers. The addition process is bit by bit, from the least significant bit to the most significant bit.
The addition at each position adds not only the respective bits, but also the possible carry bit from the addition at the previous position.
input and outputs of a full adder
Thus, a full adder is a combinatorial arithmetic circuit composed of the input bits, variable A, B and Cin, and two output bits, S, Cout.
Full adder TT and K Maps
Full adder digital circuits
x2 half adders running as a full adder
Addition: Ripple Carry Adder
cascade architecture
- Multiple full adders can be in connected in a cascade architecture to build a n-bit binary adder.
- The output carry, Cout, from each full adder is connected to the input carry, Cin, of the next full adder in the chain.
- Addition of n-bit numbers requires a chain of n full adders or onehalf-adder and n-1 full adders.
- Also known as Ripple Carry Adder (RCA).
Ripple Carry Adder (RCA) diagram
Ripple Carry Adder (RCA). Consider the following two number: A=0101 and B=0111.
Ripple Carry Adder, delays
In the Ripple Carry Adder (RCA) each full adder waits for the carry output from the previous full adder.
The output S2 from adder 2 cannot complete until carry C1 is provided by adder 1, output S3 from adder 3 cannot complete until carry C2 is provided by adder 2 and so on.
This creates a delay to compute the addition of two numbers. This delay can be considerable when implementing adders with large input sizes, e.g., 32 bit adder and 64 bit adder.
Ripple Carry Adder The problems with the delay?
This creates a delay to compute the addition of two numbers. This delay can be considerable when implementing adders with large input sizes, e.g., 32 bit adder and 64 bit adder.
Then, depending on the number input bits, the adder can become slow.
Addition: Carry Lookahead Adder
- The Carry Lookahead Adder (CLA) is a type of adder that overcomes the disadvantage from the RCA circuit.
- The CLA divides the adder into blocks providing circuitry to quickly determine the carry out of a block as soon as the carry in is known.
- This approach looks ahead across the block rather waiting the carry out to propagate through all the full adders.
- The CLA requires additional circuitry which increases the complexity of the design.