Logicgates
Logicgates
Part 1
1
Chapter Outline
4
5
Digital circuits
6
THE MEANING OF LOGIC GATES
7
The Meaning of Logic Gates
12
Why are these logic gates relevant to computers and
computers technology ?
13
REPRESENTATION OF GATES
1. Logic diagrams
2. Truth tables
3. Boolean expressions
14
Representation of Gates
15
1- Logic diagram
16
2- Truth table
17
3- Boolean algebra
19
ACTIVITY #1 - GROUP WORK
20
TYPES OF GATES
21
Types of Gates
22
Types of Gates
23
THREE BASIC GATE FUNCTIONS
1. NOT
2. AND
3. OR
24
NOT Gate Representation
26
Example of NOT Gate
YA
where the bar represents logical NOT.
27
Practical Application of “Not”
Logic Gate
28
AND Gate Representation
Thus ,
If 1 represents TRUE and 0 represents FALSE
then the function can be defined in a truth table.
Logic Gates 30
How AND Gate Work
31
Practical Application of “AND”
Logic Gate
32
OR Gate Representation
34
Example of OR Gate
Y A B
where the + sign represents logical OR.
35
Practical Application of “OR”
Logic Gate
36
ACTIVITY #2 - GROUP WORK
37
LAB # 1 - GROUP WORK
38
ADDITIONAL GATES FUNCTIONS
1. XOR
2. NAND
3. NOR
4. XNOR 39
What XOR Gate Means
40
XOR Gate Representation
43
How NOR Gate Work
44
XNOR
46
Gates with More Inputs
48
ACTIVITY #3 - GROUP WORK
49
LAB # 3 - GROUP WORK
50
Explain Why there are different in the
numbers of truth table rows =)
• Example,
Two inputs variables; N=22 = 4 Combinations.
Three inputs variables; N=23 = 8 Combinations.
Four inputs variables; N=24 = 16 Combinations.
UNIVERSAL GATES
1- NAND
2- NOR
53
What Universal Gates Means
54
NOT Using NANDs Only
• The Truth Table is for a NAND gate
A B Y • If we tie the inputs of a NAND together
0 0 1 then we limit the possible input
0 1 1 combinations to two, 1 1 and 0 0.
1 0 1 • These are shown on the table now if
1 1 0 the input is 0 the output is 1 and vice
versa
a NOT gate
A
Y
55
AND Using NANDs Only
Logic Gates 56
OR Using NANDs Only – Step 1
A B A B
0 0 0
0 1 1
1 0 1
1 1 1
57
OR Using NANDs Only – Step 2
A B A B A B
0 0 0 1 1
0 1 1 1 0
1 0 1 0 1
1 1 1 0 0
58
OR Using NANDs Only – Step 3
A B A B A B A B
0 0 0 1 1 1
0 1 1 1 0 0
1 0 1 0 1 0
1 1 1 0 0 0
59
OR Using NANDs Only – Step 4
A B A B A B A B A B
0 0 0 1 1 1 0
0 1 1 1 0 0 1
1 0 1 0 1 0 1
1 1 1 0 0 0 1
Y
B
Logic Gates 61
Basic Gate Using NANDs
62
Basic Gate Using Nors
63
Note
64
ACTIVITY #4 - GROUP WORK
65
Conclusion
68
Conclusion
69