Professional Documents
Culture Documents
Logic gates:
AND,
OR,
NOT,
NAND,
NOR,
XOR, &
XNOR Gates,
electronic circuit with one or more input BUT only one output.
two binary state low (0) or high (1), represented by voltage levels 0V and
+5V respectively
Seven basic logic gates: AND, OR, XOR, NOT, NAND, NOR, and XNOR.
e.g. As integrated circuits technology advances, the physical volume for each
individual logic gate decreases and digital devices of the same or smaller size become
capable of performing ever-more-complicated operations at ever-increasing speeds.
AND Gate
Logic AND Gate produces output at logic level “0” and only goes “HIGH”
to a logic level “1” when ALL of its inputs are at logic level “1”.
2-input Logic AND Gate
Truth Table
Can you create a Truth table for 3-input Logic AND Gate?
3-input Logic AND Gate Q = ???
OR Gate
Logic OR Gate or Inclusive-OR gate normally produces output which is
at logic level “0” and only goes “HIGH” to a logic level “1” when one or
more of its inputs are at logic level “1”.
2-input Logic OR Gate
Truth Table
Read as A OR B gives Y
NOT gate returns “HIGH” only when its input is at logic level “0”
Boolean expression: Ā = Y.
combination of the AND gate with NOT gate connected together in series.
Produces output at logic level “1” and only goes “LOW” (“0”) when ALL
of its inputs are at logic level “1”.
___
Boolean expression of: A.B = Y.
Produces output at logic level “1” and only goes “LOW” to logic level “0”
when ANY of its inputs are at logic level “1”.
Its output is "true" if both inputs are "false.” else, the output is "false.”
____
Boolean expression of: A + B = Y.
Draw 3-input Logic NOR Gate and build a truth table ????
NOR Gate
NOR Gate equivalent circuit
EX-OR / XOR Gate
It can be used in the half adder, full adder and subtractor.
The output is "true" if either, but not both, of the inputs are "true." The
output is "false" if both inputs are "false" or if both inputs are "true.”
_ _
Boolean expression of: Y = A.B + A.B
Ex-OR gate produces logic “1” ONLY when there are an ODD number of
1’s on the inputs to the gate, if the two numbers are equal, the output is
“0”.
Draw 3-input Logic EX-OR Gate and build a truth table ????
EX-OR / XOR Gate
Exclusive-OR Gate equivalent circuit
EX-NOR / XNOR Gate
Exclusive-NOR Gate is the reverse/complementary of Ex-OR
Its output is "true" if the inputs are the same, and "false" if the inputs are
different.
___
Boolean expression of: Y = AB + AB
Draw 3-input Logic EX-OR Gate and build a truth table ????
EX-NOR / XNOR Gate
Exclusive-NOR Gate equivalent circuit
Logic gate symbols
Logic gate symbols
Example: X =(A+B’)+[(A’+C)]’ where (A,B,C)=(1,1,0):
SOLVE:
1. Draw a circuit diagram corresponding to the following Boolean expression: (A + B).(B + C)
2. Draw a circuit diagram corresponding to the following Boolean expression: (A.B + C).D
3. Draw a circuit diagram corresponding to the following Boolean expression: A’.B + (B+C)’
4. Draw a circuit diagram corresponding to the following Boolean expression: (A.B)’ + (C.D)’
5. Show the behavior of the following circuit with a truth table:
ANSWERS
1. Draw a circuit diagram : (A + B)(B + C)
5. Show the behavior of the following circuit with a truth table:
Rules of Boolean algebra
A set of rules to help reduce the number of logic gates needed to perform
a particular logic operation
1 : Commutative Law
(a) A + B = B + A (b) A.B = B.A
2 : Associate Law
(a) (A + B) + C = A + (B + C) (b) (A.B).C = A.(B.C)
3 : Distributive Law
(a) A.(B + C) = A.B + A.C (b) A + (B.C) = (A + B) (A + C)
Laws of Boolean algebra
1. A + A = A 2. A.A = A 14. [(A’)]’ = A
4. A + A.B = A 5. A.(A + B) = A
6. A + 0 = A 7. A.0 = 0
8. A + 1 = 1 9. A.1 = A
De Morgan's Theorem
(a) (A+B)’ = A’.B’ (b) (A.B)’ = A’ + B’
Laws and Rules of Boolean algebra
Examples:
INPUTS OUTPUTS
A B (A+B)' A'.B' (A.B)' A'+B'
0 0 1 1 1 1
0 1 0 0 1 1
1 0 0 0 1 1
1 1 0 0 0 0
http://umhelena.edu/VirtualComputers/Laptop/en_ITEPC_VA_Laptop_v40/
http://umhelena.edu/VirtualComputers/Desktop/en_ITEPC_VA_Desktop_v40/