Professional Documents
Culture Documents
5 LOGIC CIRCUIT
LOGIC SYSTEMS
System performs calculation or makes decisions A logical operation on one or more logic inputs and produces a single logic output to make decision. Using electronic component that can conduct electricity based on a rule either analog or digital. Primarily implement using diodes or transistor acting as electronic switch
OR GATE
IF GOT 1 = RESULT MUST BE 1
A B X 0 0 0 0 1 1 1 0 1
1 1 1
X = A + B
AND GATE
IF GOT 0 = RESULT MUST BE 0
A B X 0 0 0 0 1 0 1 0 0
1 1 1
X = A.B
NOT GATE
A X 0 1 1 0
NAND GATE
A 0 0 1 1 B 0 1 0 1 X 1 1 1 0
NOR GATE
A 0 0 1 1 B 0 1 0 1 X 1 0 0 0
EXCLUSIVE OR GATE
A 0 0 1 1 B 0 1 0 1 X 0 1 1 0
EXCLUSIVE OR GATE
C 0 0 0 0 1 1 1 1 B 0 0 1 1 0 0 1 1 A 0 1 0 1 0 1 0 1 X 0 1 1 0 1 0 0 1
X
Any ODD number of Inputs gives X
A 0 0 1 1
B 0 1 0 1
X 1 0 0 1
GATE TABLE
A B OR NOR AND NAND EX-OR EXNOR NOT A
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 0
0 0 0 1
1 1 1 0
0 1 1 0
1 0 0 1
1 1 0 0
UNIVERSAL GATE
NAND gate is universal gate It can make another gate
NOT GATE AND GATE
OR GATE
IC - INTEGRATED CIRCUIT
Quad 2-input AND Gate 7408
ADDERS
An adder or summer is a digital circuit that performs addition of numbers. For new processor, adder are use to calculate addresses, table indices (database). The most common adders operate on binary numbers
SUM = A B CARRY = A . B
A
0 1 0 1 0 1 0 1
B
0 0 1 1 0 0 1 1
Cin
0 0 0 0 1 1 1 1
Cout
0 0 0 1 0 1 1 1
S
0 1 1 0 1 0 0 1