80 likes | 91 Vues
This article explains how A, AND, OR gates work together within chips to perform logical operations and create adder circuits for binary addition. It covers the functions and outputs of XOR gates, simple adder circuits, and full adder circuits, providing a comprehensive guide to computer arithmetic.
E N D
How does a Computer Add ? A A AND Gate Output OR Gate Output B B Logic Gates within chips: B Output B Output A A 0 0 0 0 0 0 0 1 1 1 0 0 0 1 0 0 1 1 1 1 1 1 1 1
Exclusive OR gate: A XOR Gate Output B B Output A 0 0 0 1 1 0 1 0 1 0 1 1
Simple Adder Circuit: 0 XOR Gate Output = 0 + 0 AND Gate 0 Carry over = 0 0 1 XOR Gate Output = 1 + 0 1 AND Gate Carry over = 0 0
Simple Adder Circuit: 0 XOR Gate Output = 1 + 1 0 AND Gate Carry over = 0 1 1 XOR Gate Output = 0 + 1 AND Gate 1 Carry over = 1 1
Full Adder circuit 0 + 0, carry = 0 Carry over input = 0 0 XOR Gate Output = 0 0 0 AND Gate 0 0 0 XOR Gate + 0 Carry over = 0 0 OR Gate 0 AND Gate 0 0
Full Adder circuit 0+1, carry = 0: Carry over input = 0 0 XOR Gate Output = 1 1 0 AND Gate 0 1 1 XOR Gate + 0 Carry over = 0 0 OR Gate 1 AND Gate 0 0
Full Adder circuit 1+0, carry = 1: Carry over input = 1 1 XOR Gate Output = 0 1 1 AND Gate 1 1 1 XOR Gate + 0 Carry over = 1 1 OR Gate 1 AND Gate 0 0
Multi-Bit Adder: C. C. C. C. X Y Z X . Y . Z . X Y Z X Y Z C.