Upload
darkblade500
View
218
Download
0
Embed Size (px)
Citation preview
8/7/2019 15. BOOLEANALGEBRA
1/33
LOGIC GATEFUNCTION
8/7/2019 15. BOOLEANALGEBRA
2/33
Two ways to describe thefunction of Logic Gate
Truth TableBOOLEANALGEBRA
8/7/2019 15. BOOLEANALGEBRA
3/33
Truth Table1. Truth Table - is a tabulated list of allpossible input and output combinations of alogic device.
8/7/2019 15. BOOLEANALGEBRA
4/33
Understanding Truth Tables
Truth tables help understand thebehavior of logic gates.
y show how the input(s) of a logic gaterelate to its output(s).
y The gate input(s) are shown in the leftcolumn(s) of the table with all thedifferent possible input combinations.This is normally done by making theinputs count up in binary.
y The gate output(s) are shown in the
right hand side column.
8/7/2019 15. BOOLEANALGEBRA
5/33
8/7/2019 15. BOOLEANALGEBRA
6/33
Example:
Given the following statement, identify thevariables and assign a value to each:
The president of a company and 3assistants are voting on whether to accept acontract. If the president votes for it, then 2yes votes (including the presidents) areenough; but if the president votes no, all 3assistants must vote yes in order for thecontract to be accepted.
8/7/2019 15. BOOLEANALGEBRA
7/33
24 = 16 lines in thetruth table
P A1 A2 A3 C
0 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 0 1 1 0
0 1 0 0 00 1 0 1 0
0 1 1 0 0
0 1 1 1 1
1 0 0 0 0
1 0 0 1 1
1 0 1 0 1
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
8/7/2019 15. BOOLEANALGEBRA
8/33
U nfortunately, they may quickly becamelarge and very long process.Ex. For 8 inputs variable: 2 8 = 256 entries.
8/7/2019 15. BOOLEANALGEBRA
9/33
LOGIC GATES
Basic building blocks in digital electronics.Internally composed of an electronic circuitusually transistor-based to provide a presetlogic function.Designed to provide a logical high or lowoutput depending on the condition of theinputs.
8/7/2019 15. BOOLEANALGEBRA
10/33
NOT FUNCTION
It has one input and one output.
To complement the logic signalat its input.
8/7/2019 15. BOOLEANALGEBRA
11/33
NOT GATE or INVERTER
8/7/2019 15. BOOLEANALGEBRA
12/33
OR GATE FUNCTION
Provides a high or 1 output
when at least one of its inputs is1Output is low or 0 when allinputs are 0May have two or more inputs.
8/7/2019 15. BOOLEANALGEBRA
13/33
OR GATE/TRUTH TABLE
8/7/2019 15. BOOLEANALGEBRA
14/33
AND GATE FUNCTION
When one or more inputs are
low, the output is also low.The output goes high only whenall inputs are high.
8/7/2019 15. BOOLEANALGEBRA
15/33
AND GATE/TRUTH TABLE
8/7/2019 15. BOOLEANALGEBRA
16/33
NOR GATE FUNCTION
Derived from NOT and OR gate
It produces a high logic outputwhen the inputs are all at logiclow level, and a low logicoutput when at least one input isat a high logic level.
8/7/2019 15. BOOLEANALGEBRA
17/33
8/7/2019 15. BOOLEANALGEBRA
18/33
NAND GATE FUNCTION
Produces a low logic output only whenall its inputs are highThis is simply complement of the ANDgate
When one or more inputs are low, theoutput is highThe output goes low only when all
inputs are high.
8/7/2019 15. BOOLEANALGEBRA
19/33
NAND GATE/TRUTH TABLE
8/7/2019 15. BOOLEANALGEBRA
20/33
X OR GATE FUNCTION
Produces a high logic output
only when one but all its inputsis high.When the inputs are all high or low the output is low.
8/7/2019 15. BOOLEANALGEBRA
21/33
8/7/2019 15. BOOLEANALGEBRA
22/33
X NOR GATE FUNCTION
A complement of the exclusive
OR gate.It produces a low logic outputonly when but not all its inputsis high.
8/7/2019 15. BOOLEANALGEBRA
23/33
X NOR GATE/TRUTH TABLE
8/7/2019 15. BOOLEANALGEBRA
24/33
2. BOOLEAN ALGEBRA
2. BOOLEANALGEBRA - is a branch of mathematics that is directly applicable to
digital design because equations of Booleanalgebra can be physically implemented byusing electronics gates.This system offers a mathematical approachto representing the logic function: AND,OR, NOT gate particularly whensimplifying complex combinations.
8/7/2019 15. BOOLEANALGEBRA
25/33
8/7/2019 15. BOOLEANALGEBRA
26/33
Addition The OR Operation
The OR gate is an electronic circuitthat gives a high output (1) if one ormore of its inputs are high. A plus
(+) is used to show the OR operation.
8/7/2019 15. BOOLEANALGEBRA
27/33
Multiplication The ANDOperation
The AND gate is an electronic circuit thatgives a high output (1) only if all itsinputs are high. A dot (.) is used to show
the AND operation i.e. A.B. Bear inmind that this dot is sometimes omittedi.e. AB
8/7/2019 15. BOOLEANALGEBRA
28/33
Other Permissible BooleanOperations
1. Factoring Ex. xy + xz = x(y + z)
Prohibited Operations:
1.Subtraction2.Division
8/7/2019 15. BOOLEANALGEBRA
29/33
Logical Manipulation
In the practical world, each logic expressionis translated into electronics gates.
Therefore, the simplest and most compactBoolean statement results in the fewestgates and wires.
Boolean Theorems are used to simplifyexpressions and equations designs.
8/7/2019 15. BOOLEANALGEBRA
30/33
BOOLEAN THEOREMS:
1. x + 0 = x2. x + 1 = 1
3. x . 0 = 04. x . 1 = X5 . x . x = x
6. x + x = x7. x . x = 08. x + x = 1
9. x + xy = x10. x[x + y] = x
11. x + xy = x + y12. xy + yz + xz =
xy + yz
13. [x + y][x + y] = x14. [y + z][y + x] =xy + yz
8/7/2019 15. BOOLEANALGEBRA
31/33
EX AMPLES
1. Do not simplify the followingexpressions before implementing.
2. Simplify first, then implement theexpressions.[x + x + y] xz + xz[y + y]
xy + xy + xz[w + x][x + y][w + x + y + z] + x + y +w
8/7/2019 15. BOOLEANALGEBRA
32/33
Simplify and implement the followinglogic expressions:
1. x + x + y2. x[y + z] x + w3. x[y + z] + yz + xz4. [A + B][A + BC] + AB + AC5 . wx + wxy + wxz + wy
8/7/2019 15. BOOLEANALGEBRA
33/33
1. AB+ AB + AB2. AB + AB + AB3. AB+ AB + AB + AB4. ABC+ ABC5 . ABC + ABC + ABC + ABC6. ABC + ABC + ABC + ABC7. ABC + ABC + ABC + ABC + ABC8. ABC + ABCD + ABCD9. ABD + ABCD + ABCD + ABCD + ABCD
+ ABCD10. ABC + ABC + ABC + ABC + ABC + ABC