chapter 02 2.4.2_logic_gate_2016
TRANSCRIPT
![Page 1: Chapter 02 2.4.2_logic_gate_2016](https://reader035.vdocuments.mx/reader035/viewer/2022070514/5881c7a21a28aba36a8b45f5/html5/thumbnails/1.jpg)
At the end of this topic, studentsshould be able to:
a) Identify symbol for logic gate
Chapter Two
Computer System2.4.2 Logic Gate
![Page 2: Chapter 02 2.4.2_logic_gate_2016](https://reader035.vdocuments.mx/reader035/viewer/2022070514/5881c7a21a28aba36a8b45f5/html5/thumbnails/2.jpg)
Logic Gates• An electronic circuit operates on one or
more input signals to produce an outputsignal.Gates are digital (two-state) circuits and can•be analyzed withThe circuit whichcalled OR gateThe circuit which
Boolean algebra.• performs OR operation is
• performs AND operationis called AND gate.
2
![Page 3: Chapter 02 2.4.2_logic_gate_2016](https://reader035.vdocuments.mx/reader035/viewer/2022070514/5881c7a21a28aba36a8b45f5/html5/thumbnails/3.jpg)
Electrical Switches• Electrical switches are good examples to
illustrate OR, ANDtheorems.
and many Boolean
• closed = 1, open = 0, ON = 1 and OFF = 0
3
![Page 4: Chapter 02 2.4.2_logic_gate_2016](https://reader035.vdocuments.mx/reader035/viewer/2022070514/5881c7a21a28aba36a8b45f5/html5/thumbnails/4.jpg)
Behaviourparallel
of two switches in
Truth table for OR operation/gate
• 0 (false) and 1 (true)
4
![Page 5: Chapter 02 2.4.2_logic_gate_2016](https://reader035.vdocuments.mx/reader035/viewer/2022070514/5881c7a21a28aba36a8b45f5/html5/thumbnails/5.jpg)
Cont....• When two switches connected in series as
shown below, the lamp will light up whenboth A and B are closed. Table 6 shows thebehaviour of two switches in series circuit.
5
![Page 6: Chapter 02 2.4.2_logic_gate_2016](https://reader035.vdocuments.mx/reader035/viewer/2022070514/5881c7a21a28aba36a8b45f5/html5/thumbnails/6.jpg)
Behaviour of Two Switches in Series
Truth Table for AND gate
• 0 (false) and 1 (true)
6
![Page 7: Chapter 02 2.4.2_logic_gate_2016](https://reader035.vdocuments.mx/reader035/viewer/2022070514/5881c7a21a28aba36a8b45f5/html5/thumbnails/7.jpg)
Definition Boolean Algebra• The basic rules for simplifying and combining logic
gates are called Boolean algebra in honour ofGeorge Boole (1815-1864).
••
has either of two values: true or falseThere are two types of operator:
Unary – NOT Binary – AND, OR
(l or 0).
Eg : Y = A • B, Y = AB, Y = A + B, Y = Ā1 = 1.1 , 1 = 1x1 , 1 = 1+0, 1 = Ō
7
![Page 8: Chapter 02 2.4.2_logic_gate_2016](https://reader035.vdocuments.mx/reader035/viewer/2022070514/5881c7a21a28aba36a8b45f5/html5/thumbnails/8.jpg)
Logic Gates
These gates are:
AND gate OR gate NOT gate
8
![Page 9: Chapter 02 2.4.2_logic_gate_2016](https://reader035.vdocuments.mx/reader035/viewer/2022070514/5881c7a21a28aba36a8b45f5/html5/thumbnails/9.jpg)
Logic Gates
More gates
– Universal gates :
NAND-gate
NOR-gate
9
![Page 10: Chapter 02 2.4.2_logic_gate_2016](https://reader035.vdocuments.mx/reader035/viewer/2022070514/5881c7a21a28aba36a8b45f5/html5/thumbnails/10.jpg)
Truth Table• A truth table is a good way to show the
function of a logic gate.It shows the output states for every possible•combination of inputThe symbols 0 (false)
states.and 1 (true) are used• in
truthFor a
tableslogic gate with n inputs, there are• 2n
entries in the truth table.Example: A logic gate with three inputs, A,• B
23and C will contain = 8 entries.10
![Page 11: Chapter 02 2.4.2_logic_gate_2016](https://reader035.vdocuments.mx/reader035/viewer/2022070514/5881c7a21a28aba36a8b45f5/html5/thumbnails/11.jpg)
AND ( Logicoperation)
Gate , Truth Table, Boolean
11
![Page 12: Chapter 02 2.4.2_logic_gate_2016](https://reader035.vdocuments.mx/reader035/viewer/2022070514/5881c7a21a28aba36a8b45f5/html5/thumbnails/12.jpg)
OR ( Logicoperation)
Gate , Truth Table, Boolean
12
![Page 13: Chapter 02 2.4.2_logic_gate_2016](https://reader035.vdocuments.mx/reader035/viewer/2022070514/5881c7a21a28aba36a8b45f5/html5/thumbnails/13.jpg)
NOT ( Logic Gate , Truthoperation)
Table, Boolean
• The NOT gate has one binaryinput and one binary output.The NOT gate's output is theinverse of its input.~0 = 1 is read as NOT 0equals to 1line over A is pronouncedNOT
•
•
•
• Y = Ā is read as “Y equals NOT
(¬A), (A’),
A”(~A),(Ā)
(!A ),13
![Page 14: Chapter 02 2.4.2_logic_gate_2016](https://reader035.vdocuments.mx/reader035/viewer/2022070514/5881c7a21a28aba36a8b45f5/html5/thumbnails/14.jpg)
NAND Operator
14
![Page 15: Chapter 02 2.4.2_logic_gate_2016](https://reader035.vdocuments.mx/reader035/viewer/2022070514/5881c7a21a28aba36a8b45f5/html5/thumbnails/15.jpg)
NOR Operator
15
![Page 16: Chapter 02 2.4.2_logic_gate_2016](https://reader035.vdocuments.mx/reader035/viewer/2022070514/5881c7a21a28aba36a8b45f5/html5/thumbnails/16.jpg)
Explain the following logic gates:
16
![Page 17: Chapter 02 2.4.2_logic_gate_2016](https://reader035.vdocuments.mx/reader035/viewer/2022070514/5881c7a21a28aba36a8b45f5/html5/thumbnails/17.jpg)
Exercise
Write a boolean expression and draw the truth table to represent thislogic circuit diagram.
17
![Page 18: Chapter 02 2.4.2_logic_gate_2016](https://reader035.vdocuments.mx/reader035/viewer/2022070514/5881c7a21a28aba36a8b45f5/html5/thumbnails/18.jpg)
18
![Page 19: Chapter 02 2.4.2_logic_gate_2016](https://reader035.vdocuments.mx/reader035/viewer/2022070514/5881c7a21a28aba36a8b45f5/html5/thumbnails/19.jpg)
19
![Page 20: Chapter 02 2.4.2_logic_gate_2016](https://reader035.vdocuments.mx/reader035/viewer/2022070514/5881c7a21a28aba36a8b45f5/html5/thumbnails/20.jpg)
20
![Page 21: Chapter 02 2.4.2_logic_gate_2016](https://reader035.vdocuments.mx/reader035/viewer/2022070514/5881c7a21a28aba36a8b45f5/html5/thumbnails/21.jpg)
21
![Page 22: Chapter 02 2.4.2_logic_gate_2016](https://reader035.vdocuments.mx/reader035/viewer/2022070514/5881c7a21a28aba36a8b45f5/html5/thumbnails/22.jpg)
22