Shankar Balachandran* Associate Professor, CSE Department Indian Institute of Technology Madras
*Currently a Visiting Professor at IIT Bombay
Digital Circuits and Systems
Spring 2015 Week 9 Module 50
Ripple Carry Adder
Systems Ripple Carry Adder Shankar Balachandran* Associate - - PowerPoint PPT Presentation
Spring 2015 Week 9 Module 50 Digital Circuits and Systems Ripple Carry Adder Shankar Balachandran* Associate Professor, CSE Department Indian Institute of Technology Madras *Currently a Visiting Professor at IIT Bombay Adders and
Shankar Balachandran* Associate Professor, CSE Department Indian Institute of Technology Madras
*Currently a Visiting Professor at IIT Bombay
Ripple Carry Adder
Ripple Carry Adder 2
The most basic arithmetic operation in a digital computer is
Half Adder is a combination circuit that performs addition of 2
Inputs Outputs a b Carry Sum 1 1 1 1 1 1 1
Ripple Carry Adder 3
Half adders cannot accept a carry input and hence it is not possible
Ripple Carry Adder 4
Full Adder is a combinational circuit that forms the arithmetic sum of
Inputs Outputs c b a Cout Sum
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
b a c b a c b c a b a C c b a c b a c b a c b a c b a Sum
Ripple Carry Adder 5
Full Adder (FA)
Full Adder at bit i
Ripple Carry Adder 6
A full adder can be implemented using 2 half adders and an OR gate
Full Adder (FA)
Ripple Carry Adder 7
Use a 2-input NAND gate implementation of a 1-bit full adder.
Ripple Carry Adder 8
4-bit Binary Adder: ( Sum = A + B ) A 4-bit binary adder can be implemented by cascading four 1-bit full
Inputs: Outputs: A = (a3a2a1a0) B = (b3b2b1b0) Cin = cin = c0 Sum = (s3s2s1s0) Cout = c4
Ripple Carry Adder 9
Carry ripples from input co to output cn Worst case propagation delay for sum in terms of 2-input NAND gate
Worst case propagation delay for carry output is given by, Therefore, propagation delay for an n-bit Ripple Carry Adder is O(n).
2 1
4 2 3 2 2 5 3 2 5
n i sum
n n t
2 1 1
3 2 2 2 5 2
n i n carry
n c t for delay
Ripple Carry Adder 10
Design a signed comparator for comparing two 4-bit 1’s
If A > B, the circuit should produce 1 as output, otherwise 0
Design a signed comparator for comparing two 4-bit 2’s
If A > B, the circuit should produce 1 as output, otherwise 0
Design an n-bit absolute (ABS) value generator for 2’s
Ripple Carry Adder 11