SlideShare une entreprise Scribd logo
1  sur  32
Chapter Two
Computer System
2.4 Logic Gate & Simple Logic Circuit
2.4.1
2.4.2
2.4.3
Boolean Expression
Logic Gate
Logic Circuit
At the end of this topic, students
should be able to:
a)
b)
c)
Identify logical operators
Form valid Boolean expressions
Evaluate Boolean expression using
truth
table
Chapter Two
Computer System
2.4 Logic Gate & Simple Logic Circuit
2.4.1 Boolean Expression
Logical Operators
•
•
•
AND (.)
OR (+)
NOT (¯)
*Other operator symbol
for NOT operator
~A, A’, !A
Logical Operator and symbol
Logic Operation
• OR (Sum)
0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 1
• AND (Product)
0 . 0 = 0
0 . 1 = 0
1 . 0 = 0
1 . 1 = 1
• NOT (Inverse)
0 = 1
1 = 0
At the end of this topic, students
should be able to:
a) Identify symbol for logic gate
Chapter Two
Computer System
2.4.2 Logic Gate
Logic Gates
•
An electronic circuit operates on one or
more input signals to produce an output
signal.
Gates are digital (two-state, On and Off)
circuits and can be analyzed with Boolean
algebra•
The three basic logic gates are :
AND gate OR gate NOT gate
Logic Gates
More gates
– Universal gates :
NAND-gate
NOR-gate
Logic Gates
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 input states
● The symbols of 1 (True) or 0 (False) are used
● For a logic gate with n inputs, there are 2n entries in
the truth table
● Eg : A logic gate with 3 inputs will have 8 entries
(2n=8)
STEP BY STEP CREATING A BASIC TRUTH TABLE
1. Identify how many input (n) form the given Boolean expression
and logic circuit.
2. Determine number of entry (2n)
3. Creating a table
e.g; Y= A + B 2 input (A, B)
input (n)
2n ; 22 = 4 entries
INPUT
A
INPUT
B
OUTPUT
Y
4 entries
A
B
Y = A . B
INPUT
A
INPUT
B
OUTPUT
Y = A. B
0 0 0
0 1 0
1 0 0
1 1 1
Boolean expression : Y = A . B
@ Y = AB
TRUTH TABLE
AND GATE (logic gate, Boolean
expression and Truth Table
Electrical Switches – Illustrate switches for AND Gate
SWITCH A SWITCH B LAMP
Open (O) Open (O) OFF (O)
Closed (1) Open (O) OFF (O)
Open (O) Closed (1) OFF (O)
Closed (1) Closed (1) ON (1)
he The AND gate
is an electronic
circuit that gives
a ON(1) output
only if ALL its
inputs are ON(1).
A
B
Y = A + B
INPUT
A
INPUT
B
OUTPUT
Y = A+ B
0 0 0
0 1 1
1 0 1
1 1 1
Boolean expression : Y = A + B
TRUTH TABLE
OR GATE (logic gate, Boolean expression
and Truth Table
Electrical Switches – Illustrate switches for OR Gate
SWITCH A SWITCH B LAMP
Open (O) Open (O) OFF (O)
Closed (1) Open (O) ON (1)
Open (O) Closed (1) ON (1)
Closed (1) Closed (1) ON (1)
hOR gate is an
electronic circuit
that gives a ON(1)
output if one or
more of its inputs
are ON(1)
NOT GATE (logic gate, Boolean
expression and Truth Table
A Y = A
INPUT
A
OUTPUT
Y = A
0 1
1 0
Boolean expression : Y = A
TRUTH TABLE
*Other operator symbol
~A, A’, !A
- The NOT gate has one binary input and one binary output.
- The NOT gate's output is the inverse of its input.
A
B
Y = (A . B)
INPUT
A
INPUT
B
OUTPUT
Y = (A.B)
0 0 1
0 1 1
1 0 1
1 1 0
Boolean expression : Y = (A . B)
TRUTH TABLE
NAND GATE (logic gate, Boolean expression
and Truth Table
A
B
A
B
Y = (A . B)
INPUT
A
INPUT
B
OUTPUT
Y = (A+B)
0 0 1
0 1 0
1 0 0
1 1 0
Boolean expression : Y = (A + B)
TRUTH TABLE
NOR GATE (logic gate, Boolean expression
and Truth Table
Chapter Two
Computer System
Form valid Boolean
expressions
EXAMPLE 1:
Write a boolean expression
EXAMPLE 1:
Write a boolean expression
Hence, Y = (A+B). C
EXAMPLE 1:
Write a boolean expression
Hence, Y = (A+B). C
Boolean Expression :
Q = (A.B)+(A+B)
Q = (A.B)+ (A+B)
EXAMPLE 2:
Write a boolean expression and draw the truth table to represent this
logic circuit diagram.
Y = (A.B) . C
A B C Y
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 1
Write a boolean expression and draw the truth table to represent this
logic circuit diagram.
Y = (A.B) + C
A B C Y
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1
At the end of this topic, students
should be able to:
a) Draw simple logic circuit for a given
Boolean expression
Chapter Two
Computer System
2.4.3 Logic Circuit
• First, perform all inversions of single terms
• Perform all operations with parentheses ( )
• Perform an AND operation before and OR
operation unless parentheses indicate otherwise
• If an expression has a bar over it, perform the
operations inside the expression first and then
invert the result
Step by step drawing a logic circuit
Precedence
Simple Logic Circuit
F = (A + B).C
1. Draw the operations with parentheses ( ) ; (A+B)
2. Joint the output of (A+B) with .C (AND gate)
A
B
C
F
Simple Logic Circuit
F = (A . B)+C
1. Draw the operations with parentheses ( ) ; (A.B)
2. Joint the output of (A.B) with .C (OR gate)
A
B
C
F
Simple Logic Circuit
F = A + (B.C)
1. First, draw inversions of single terms ; A
2. Draw the operations with parentheses ( ) ; (B.C)
3. Joint the output of A with output of B.C using OR gate
A
B
C
F
Simple Logic Circuit
Draw the logic circuit for the Boolean expression
Y = A + B.C + D
Simple Logic Circuit
Draw the logic circuit for the Boolean expression
Y = ((A.B)+C)
Draw the logic circuit for the question below
1. F = (B+A).C+(A’+D)
2. Y = (B.C+A).(A’+C)
3. Adi will be the football coach if Emran is the goalkeeper or Irfan is not a
striker. However, Emran will only be a goalkeeper only if ZIkri and Afif are the
defender
4. Amy will reach the International Airport as schedules if she checks in before
9am and her luggage is not more than 20kg
5. PSPM is around the corner. Amni and Anna decided to study at the library.
Elsa and Olaf are interested to join them. Amni will goes to the library if Elsa
or Olaf not goes but Anna goes
Exercise

Contenu connexe

Tendances (20)

Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1Ch4 Boolean Algebra And Logic Simplication1
Ch4 Boolean Algebra And Logic Simplication1
 
All About Decoders DLD.
All About Decoders DLD.All About Decoders DLD.
All About Decoders DLD.
 
Rangkian digital
Rangkian digitalRangkian digital
Rangkian digital
 
Clinica
ClinicaClinica
Clinica
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
Algebra booleana
Algebra booleanaAlgebra booleana
Algebra booleana
 
Logic families
Logic familiesLogic families
Logic families
 
Crash course in verilog
Crash course in verilogCrash course in verilog
Crash course in verilog
 
Sequential circuits in Digital Electronics
Sequential circuits in Digital ElectronicsSequential circuits in Digital Electronics
Sequential circuits in Digital Electronics
 
Finite automata
Finite automataFinite automata
Finite automata
 
ALGORITHMIC STATE MACHINES
ALGORITHMIC STATE MACHINESALGORITHMIC STATE MACHINES
ALGORITHMIC STATE MACHINES
 
Fundamentals of digital electronics
 Fundamentals of digital electronics Fundamentals of digital electronics
Fundamentals of digital electronics
 
Mealy state machine
Mealy state machineMealy state machine
Mealy state machine
 
decoder and encoder
 decoder and encoder decoder and encoder
decoder and encoder
 
Vhdl
VhdlVhdl
Vhdl
 
Boolean Logic
Boolean LogicBoolean Logic
Boolean Logic
 
Edge Trigged Flip Flops
Edge Trigged Flip FlopsEdge Trigged Flip Flops
Edge Trigged Flip Flops
 
Asynchronous Sequential Circuit-Unit 4 ppt
Asynchronous Sequential Circuit-Unit 4 pptAsynchronous Sequential Circuit-Unit 4 ppt
Asynchronous Sequential Circuit-Unit 4 ppt
 
flip flop Presentation
flip flop  Presentationflip flop  Presentation
flip flop Presentation
 
Adc (analog to digital converter)
Adc (analog to digital converter)Adc (analog to digital converter)
Adc (analog to digital converter)
 

Similaire à Logic Gates & Circuits Explained

PDT DC015 Chapter 2 Computer System 2017/2018 (f)
PDT DC015 Chapter 2 Computer System 2017/2018 (f)PDT DC015 Chapter 2 Computer System 2017/2018 (f)
PDT DC015 Chapter 2 Computer System 2017/2018 (f)Fizaril Amzari Omar
 
Digital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebraDigital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebraelfeds916
 
Number systems and Boolean Reduction
Number systems and Boolean ReductionNumber systems and Boolean Reduction
Number systems and Boolean ReductionDhaval Shukla
 
7 realization of logic function using logic gates (1)
7 realization of logic function using logic gates (1)7 realization of logic function using logic gates (1)
7 realization of logic function using logic gates (1)Hemant Suthar
 
Lec4-Algghhhhgghgjhf5dvbgyuygit87678.pdf
Lec4-Algghhhhgghgjhf5dvbgyuygit87678.pdfLec4-Algghhhhgghgjhf5dvbgyuygit87678.pdf
Lec4-Algghhhhgghgjhf5dvbgyuygit87678.pdfabdnazar2003
 
chapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptxchapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptxRithinA1
 
Physics project on logic gate
Physics project on logic gatePhysics project on logic gate
Physics project on logic gateVirat Prasad
 
Digital Electronics-Review of Logic Gates.pptx
Digital Electronics-Review of Logic Gates.pptxDigital Electronics-Review of Logic Gates.pptx
Digital Electronics-Review of Logic Gates.pptxProfVilasShamraoPati
 
Basic gates and boolean algebra
Basic gates and boolean algebraBasic gates and boolean algebra
Basic gates and boolean algebraSudheesh S Madhav
 
physics investigatory project class 12 on logic gates ,boolean algebra
physics investigatory project class 12 on logic gates ,boolean algebraphysics investigatory project class 12 on logic gates ,boolean algebra
physics investigatory project class 12 on logic gates ,boolean algebrasukhtej
 
Digital-Logic40124sequential circuits logic gatepptx
Digital-Logic40124sequential circuits logic gatepptxDigital-Logic40124sequential circuits logic gatepptx
Digital-Logic40124sequential circuits logic gatepptxssuser6feece1
 
digital electronics .pptx
digital electronics .pptxdigital electronics .pptx
digital electronics .pptxAjaykumar967485
 

Similaire à Logic Gates & Circuits Explained (20)

PDT DC015 Chapter 2 Computer System 2017/2018 (f)
PDT DC015 Chapter 2 Computer System 2017/2018 (f)PDT DC015 Chapter 2 Computer System 2017/2018 (f)
PDT DC015 Chapter 2 Computer System 2017/2018 (f)
 
9. logic gates._rr
9. logic gates._rr9. logic gates._rr
9. logic gates._rr
 
Digital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebraDigital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebra
 
Logic circuit2017
Logic circuit2017Logic circuit2017
Logic circuit2017
 
class xi pptx-1.pptx
class xi pptx-1.pptxclass xi pptx-1.pptx
class xi pptx-1.pptx
 
Number systems and Boolean Reduction
Number systems and Boolean ReductionNumber systems and Boolean Reduction
Number systems and Boolean Reduction
 
Lecturer mid.ppt
Lecturer mid.pptLecturer mid.ppt
Lecturer mid.ppt
 
Mcsl 17 ALP lab manual
Mcsl 17 ALP lab manualMcsl 17 ALP lab manual
Mcsl 17 ALP lab manual
 
7 realization of logic function using logic gates (1)
7 realization of logic function using logic gates (1)7 realization of logic function using logic gates (1)
7 realization of logic function using logic gates (1)
 
Lec4-Algghhhhgghgjhf5dvbgyuygit87678.pdf
Lec4-Algghhhhgghgjhf5dvbgyuygit87678.pdfLec4-Algghhhhgghgjhf5dvbgyuygit87678.pdf
Lec4-Algghhhhgghgjhf5dvbgyuygit87678.pdf
 
Digital logic
Digital logicDigital logic
Digital logic
 
chapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptxchapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptx
 
Physics project on logic gate
Physics project on logic gatePhysics project on logic gate
Physics project on logic gate
 
DLD Chapter-2.pdf
DLD Chapter-2.pdfDLD Chapter-2.pdf
DLD Chapter-2.pdf
 
Digital Electronics-Review of Logic Gates.pptx
Digital Electronics-Review of Logic Gates.pptxDigital Electronics-Review of Logic Gates.pptx
Digital Electronics-Review of Logic Gates.pptx
 
Basic gates and boolean algebra
Basic gates and boolean algebraBasic gates and boolean algebra
Basic gates and boolean algebra
 
physics investigatory project class 12 on logic gates ,boolean algebra
physics investigatory project class 12 on logic gates ,boolean algebraphysics investigatory project class 12 on logic gates ,boolean algebra
physics investigatory project class 12 on logic gates ,boolean algebra
 
Digital-Logic40124sequential circuits logic gatepptx
Digital-Logic40124sequential circuits logic gatepptxDigital-Logic40124sequential circuits logic gatepptx
Digital-Logic40124sequential circuits logic gatepptx
 
digital electronics .pptx
digital electronics .pptxdigital electronics .pptx
digital electronics .pptx
 
2 gates
2 gates2 gates
2 gates
 

Plus de Fizaril Amzari Omar

Chapter 6 Database SC025 2017/2018
Chapter 6 Database SC025 2017/2018Chapter 6 Database SC025 2017/2018
Chapter 6 Database SC025 2017/2018Fizaril Amzari Omar
 
Chapter 5 Multimedia SC025 2017/2018
Chapter 5 Multimedia SC025 2017/2018Chapter 5 Multimedia SC025 2017/2018
Chapter 5 Multimedia SC025 2017/2018Fizaril Amzari Omar
 
PST SC015 Chapter 2 Computer System 2017/2018
PST SC015 Chapter 2 Computer System 2017/2018PST SC015 Chapter 2 Computer System 2017/2018
PST SC015 Chapter 2 Computer System 2017/2018Fizaril Amzari Omar
 
PDT DC015 Chapter 2 Computer System 2017/2018 (m)
PDT DC015 Chapter 2 Computer System 2017/2018 (m)PDT DC015 Chapter 2 Computer System 2017/2018 (m)
PDT DC015 Chapter 2 Computer System 2017/2018 (m)Fizaril Amzari Omar
 
PDT DC015 Chapter 2 Computer System 2017/2018 (k)
PDT DC015 Chapter 2 Computer System 2017/2018 (k)PDT DC015 Chapter 2 Computer System 2017/2018 (k)
PDT DC015 Chapter 2 Computer System 2017/2018 (k)Fizaril Amzari Omar
 
PDT DC015 Chapter 2 Computer System 2017/2018 (j)
PDT DC015 Chapter 2 Computer System 2017/2018 (j)PDT DC015 Chapter 2 Computer System 2017/2018 (j)
PDT DC015 Chapter 2 Computer System 2017/2018 (j)Fizaril Amzari Omar
 
PDT DC015 Chapter 2 Computer System 2017/2018 (i)
PDT DC015 Chapter 2 Computer System 2017/2018 (i)PDT DC015 Chapter 2 Computer System 2017/2018 (i)
PDT DC015 Chapter 2 Computer System 2017/2018 (i)Fizaril Amzari Omar
 
PDT DC015 Chapter 2 Computer System 2017/2018 (g)
PDT DC015 Chapter 2 Computer System 2017/2018 (g)PDT DC015 Chapter 2 Computer System 2017/2018 (g)
PDT DC015 Chapter 2 Computer System 2017/2018 (g)Fizaril Amzari Omar
 
PDT DC015 Chapter 2 Computer System 2017/2018 (e)
PDT DC015 Chapter 2 Computer System 2017/2018 (e)PDT DC015 Chapter 2 Computer System 2017/2018 (e)
PDT DC015 Chapter 2 Computer System 2017/2018 (e)Fizaril Amzari Omar
 
PDT DC015 Chapter 2 Computer System 2017/2018 (d)
PDT DC015 Chapter 2 Computer System 2017/2018 (d)PDT DC015 Chapter 2 Computer System 2017/2018 (d)
PDT DC015 Chapter 2 Computer System 2017/2018 (d)Fizaril Amzari Omar
 
PDT DC015 Chapter 2 System Concept 2017/2018 (a)
PDT DC015 Chapter 2 System Concept 2017/2018 (a)PDT DC015 Chapter 2 System Concept 2017/2018 (a)
PDT DC015 Chapter 2 System Concept 2017/2018 (a)Fizaril Amzari Omar
 
PST SC015 Chapter 4 Comp. Ethics and Security 2017/2018
PST SC015 Chapter 4 Comp. Ethics and Security 2017/2018PST SC015 Chapter 4 Comp. Ethics and Security 2017/2018
PST SC015 Chapter 4 Comp. Ethics and Security 2017/2018Fizaril Amzari Omar
 
PST SC015 Chapter 3 Internet Technology (V) 2017/2018
PST SC015 Chapter 3 Internet Technology (V)  2017/2018PST SC015 Chapter 3 Internet Technology (V)  2017/2018
PST SC015 Chapter 3 Internet Technology (V) 2017/2018Fizaril Amzari Omar
 
PST SC015 Chapter 3 Internet Technology (IV) 2017/2018
PST SC015 Chapter 3 Internet Technology (IV)  2017/2018PST SC015 Chapter 3 Internet Technology (IV)  2017/2018
PST SC015 Chapter 3 Internet Technology (IV) 2017/2018Fizaril Amzari Omar
 
PST SC015 Chapter 3 Internet Technology (II) 2017/2018
PST SC015 Chapter 3 Internet Technology (II)  2017/2018PST SC015 Chapter 3 Internet Technology (II)  2017/2018
PST SC015 Chapter 3 Internet Technology (II) 2017/2018Fizaril Amzari Omar
 
PST SC015 Chapter 3 Internet Technology (II) 2017/2018
PST SC015 Chapter 3 Internet Technology (II)  2017/2018PST SC015 Chapter 3 Internet Technology (II)  2017/2018
PST SC015 Chapter 3 Internet Technology (II) 2017/2018Fizaril Amzari Omar
 
PST SC015 Chapter 3 Internet Technology (I) 2017/2018
PST SC015 Chapter 3 Internet Technology (I)  2017/2018PST SC015 Chapter 3 Internet Technology (I)  2017/2018
PST SC015 Chapter 3 Internet Technology (I) 2017/2018Fizaril Amzari Omar
 
PST SC015 Chapter 2 Computer System (IV) 2017/2018
PST SC015 Chapter 2 Computer System (IV) 2017/2018PST SC015 Chapter 2 Computer System (IV) 2017/2018
PST SC015 Chapter 2 Computer System (IV) 2017/2018Fizaril Amzari Omar
 
PST SC015 Chapter 2 Computer System (II) 2017/2018
PST SC015 Chapter 2 Computer System (II) 2017/2018PST SC015 Chapter 2 Computer System (II) 2017/2018
PST SC015 Chapter 2 Computer System (II) 2017/2018Fizaril Amzari Omar
 

Plus de Fizaril Amzari Omar (20)

Chapter 7 Information System
Chapter 7 Information SystemChapter 7 Information System
Chapter 7 Information System
 
Chapter 6 Database SC025 2017/2018
Chapter 6 Database SC025 2017/2018Chapter 6 Database SC025 2017/2018
Chapter 6 Database SC025 2017/2018
 
Chapter 5 Multimedia SC025 2017/2018
Chapter 5 Multimedia SC025 2017/2018Chapter 5 Multimedia SC025 2017/2018
Chapter 5 Multimedia SC025 2017/2018
 
PST SC015 Chapter 2 Computer System 2017/2018
PST SC015 Chapter 2 Computer System 2017/2018PST SC015 Chapter 2 Computer System 2017/2018
PST SC015 Chapter 2 Computer System 2017/2018
 
PDT DC015 Chapter 2 Computer System 2017/2018 (m)
PDT DC015 Chapter 2 Computer System 2017/2018 (m)PDT DC015 Chapter 2 Computer System 2017/2018 (m)
PDT DC015 Chapter 2 Computer System 2017/2018 (m)
 
PDT DC015 Chapter 2 Computer System 2017/2018 (k)
PDT DC015 Chapter 2 Computer System 2017/2018 (k)PDT DC015 Chapter 2 Computer System 2017/2018 (k)
PDT DC015 Chapter 2 Computer System 2017/2018 (k)
 
PDT DC015 Chapter 2 Computer System 2017/2018 (j)
PDT DC015 Chapter 2 Computer System 2017/2018 (j)PDT DC015 Chapter 2 Computer System 2017/2018 (j)
PDT DC015 Chapter 2 Computer System 2017/2018 (j)
 
PDT DC015 Chapter 2 Computer System 2017/2018 (i)
PDT DC015 Chapter 2 Computer System 2017/2018 (i)PDT DC015 Chapter 2 Computer System 2017/2018 (i)
PDT DC015 Chapter 2 Computer System 2017/2018 (i)
 
PDT DC015 Chapter 2 Computer System 2017/2018 (g)
PDT DC015 Chapter 2 Computer System 2017/2018 (g)PDT DC015 Chapter 2 Computer System 2017/2018 (g)
PDT DC015 Chapter 2 Computer System 2017/2018 (g)
 
PDT DC015 Chapter 2 Computer System 2017/2018 (e)
PDT DC015 Chapter 2 Computer System 2017/2018 (e)PDT DC015 Chapter 2 Computer System 2017/2018 (e)
PDT DC015 Chapter 2 Computer System 2017/2018 (e)
 
PDT DC015 Chapter 2 Computer System 2017/2018 (d)
PDT DC015 Chapter 2 Computer System 2017/2018 (d)PDT DC015 Chapter 2 Computer System 2017/2018 (d)
PDT DC015 Chapter 2 Computer System 2017/2018 (d)
 
PDT DC015 Chapter 2 System Concept 2017/2018 (a)
PDT DC015 Chapter 2 System Concept 2017/2018 (a)PDT DC015 Chapter 2 System Concept 2017/2018 (a)
PDT DC015 Chapter 2 System Concept 2017/2018 (a)
 
PST SC015 Chapter 4 Comp. Ethics and Security 2017/2018
PST SC015 Chapter 4 Comp. Ethics and Security 2017/2018PST SC015 Chapter 4 Comp. Ethics and Security 2017/2018
PST SC015 Chapter 4 Comp. Ethics and Security 2017/2018
 
PST SC015 Chapter 3 Internet Technology (V) 2017/2018
PST SC015 Chapter 3 Internet Technology (V)  2017/2018PST SC015 Chapter 3 Internet Technology (V)  2017/2018
PST SC015 Chapter 3 Internet Technology (V) 2017/2018
 
PST SC015 Chapter 3 Internet Technology (IV) 2017/2018
PST SC015 Chapter 3 Internet Technology (IV)  2017/2018PST SC015 Chapter 3 Internet Technology (IV)  2017/2018
PST SC015 Chapter 3 Internet Technology (IV) 2017/2018
 
PST SC015 Chapter 3 Internet Technology (II) 2017/2018
PST SC015 Chapter 3 Internet Technology (II)  2017/2018PST SC015 Chapter 3 Internet Technology (II)  2017/2018
PST SC015 Chapter 3 Internet Technology (II) 2017/2018
 
PST SC015 Chapter 3 Internet Technology (II) 2017/2018
PST SC015 Chapter 3 Internet Technology (II)  2017/2018PST SC015 Chapter 3 Internet Technology (II)  2017/2018
PST SC015 Chapter 3 Internet Technology (II) 2017/2018
 
PST SC015 Chapter 3 Internet Technology (I) 2017/2018
PST SC015 Chapter 3 Internet Technology (I)  2017/2018PST SC015 Chapter 3 Internet Technology (I)  2017/2018
PST SC015 Chapter 3 Internet Technology (I) 2017/2018
 
PST SC015 Chapter 2 Computer System (IV) 2017/2018
PST SC015 Chapter 2 Computer System (IV) 2017/2018PST SC015 Chapter 2 Computer System (IV) 2017/2018
PST SC015 Chapter 2 Computer System (IV) 2017/2018
 
PST SC015 Chapter 2 Computer System (II) 2017/2018
PST SC015 Chapter 2 Computer System (II) 2017/2018PST SC015 Chapter 2 Computer System (II) 2017/2018
PST SC015 Chapter 2 Computer System (II) 2017/2018
 

Dernier

How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 

Dernier (20)

How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 

Logic Gates & Circuits Explained

  • 1. Chapter Two Computer System 2.4 Logic Gate & Simple Logic Circuit 2.4.1 2.4.2 2.4.3 Boolean Expression Logic Gate Logic Circuit
  • 2. At the end of this topic, students should be able to: a) b) c) Identify logical operators Form valid Boolean expressions Evaluate Boolean expression using truth table Chapter Two Computer System 2.4 Logic Gate & Simple Logic Circuit 2.4.1 Boolean Expression
  • 3. Logical Operators • • • AND (.) OR (+) NOT (¯) *Other operator symbol for NOT operator ~A, A’, !A Logical Operator and symbol
  • 4. Logic Operation • OR (Sum) 0 + 0 = 0 0 + 1 = 1 1 + 0 = 1 1 + 1 = 1 • AND (Product) 0 . 0 = 0 0 . 1 = 0 1 . 0 = 0 1 . 1 = 1 • NOT (Inverse) 0 = 1 1 = 0
  • 5. At the end of this topic, students should be able to: a) Identify symbol for logic gate Chapter Two Computer System 2.4.2 Logic Gate
  • 6. Logic Gates • An electronic circuit operates on one or more input signals to produce an output signal. Gates are digital (two-state, On and Off) circuits and can be analyzed with Boolean algebra•
  • 7. The three basic logic gates are : AND gate OR gate NOT gate Logic Gates
  • 8. More gates – Universal gates : NAND-gate NOR-gate Logic Gates
  • 9. 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 input states ● The symbols of 1 (True) or 0 (False) are used ● For a logic gate with n inputs, there are 2n entries in the truth table ● Eg : A logic gate with 3 inputs will have 8 entries (2n=8)
  • 10. STEP BY STEP CREATING A BASIC TRUTH TABLE 1. Identify how many input (n) form the given Boolean expression and logic circuit. 2. Determine number of entry (2n) 3. Creating a table e.g; Y= A + B 2 input (A, B) input (n) 2n ; 22 = 4 entries INPUT A INPUT B OUTPUT Y 4 entries
  • 11. A B Y = A . B INPUT A INPUT B OUTPUT Y = A. B 0 0 0 0 1 0 1 0 0 1 1 1 Boolean expression : Y = A . B @ Y = AB TRUTH TABLE AND GATE (logic gate, Boolean expression and Truth Table
  • 12. Electrical Switches – Illustrate switches for AND Gate SWITCH A SWITCH B LAMP Open (O) Open (O) OFF (O) Closed (1) Open (O) OFF (O) Open (O) Closed (1) OFF (O) Closed (1) Closed (1) ON (1) he The AND gate is an electronic circuit that gives a ON(1) output only if ALL its inputs are ON(1).
  • 13. A B Y = A + B INPUT A INPUT B OUTPUT Y = A+ B 0 0 0 0 1 1 1 0 1 1 1 1 Boolean expression : Y = A + B TRUTH TABLE OR GATE (logic gate, Boolean expression and Truth Table
  • 14. Electrical Switches – Illustrate switches for OR Gate SWITCH A SWITCH B LAMP Open (O) Open (O) OFF (O) Closed (1) Open (O) ON (1) Open (O) Closed (1) ON (1) Closed (1) Closed (1) ON (1) hOR gate is an electronic circuit that gives a ON(1) output if one or more of its inputs are ON(1)
  • 15. NOT GATE (logic gate, Boolean expression and Truth Table A Y = A INPUT A OUTPUT Y = A 0 1 1 0 Boolean expression : Y = A TRUTH TABLE *Other operator symbol ~A, A’, !A - The NOT gate has one binary input and one binary output. - The NOT gate's output is the inverse of its input.
  • 16. A B Y = (A . B) INPUT A INPUT B OUTPUT Y = (A.B) 0 0 1 0 1 1 1 0 1 1 1 0 Boolean expression : Y = (A . B) TRUTH TABLE NAND GATE (logic gate, Boolean expression and Truth Table A B
  • 17. A B Y = (A . B) INPUT A INPUT B OUTPUT Y = (A+B) 0 0 1 0 1 0 1 0 0 1 1 0 Boolean expression : Y = (A + B) TRUTH TABLE NOR GATE (logic gate, Boolean expression and Truth Table
  • 18. Chapter Two Computer System Form valid Boolean expressions
  • 19. EXAMPLE 1: Write a boolean expression
  • 20. EXAMPLE 1: Write a boolean expression Hence, Y = (A+B). C
  • 21. EXAMPLE 1: Write a boolean expression Hence, Y = (A+B). C
  • 22. Boolean Expression : Q = (A.B)+(A+B) Q = (A.B)+ (A+B) EXAMPLE 2:
  • 23. Write a boolean expression and draw the truth table to represent this logic circuit diagram. Y = (A.B) . C A B C Y 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1
  • 24. Write a boolean expression and draw the truth table to represent this logic circuit diagram. Y = (A.B) + C A B C Y 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 1 1 0 0 0 1 0 1 1 1 1 0 1 1 1 1 1
  • 25. At the end of this topic, students should be able to: a) Draw simple logic circuit for a given Boolean expression Chapter Two Computer System 2.4.3 Logic Circuit
  • 26. • First, perform all inversions of single terms • Perform all operations with parentheses ( ) • Perform an AND operation before and OR operation unless parentheses indicate otherwise • If an expression has a bar over it, perform the operations inside the expression first and then invert the result Step by step drawing a logic circuit Precedence
  • 27. Simple Logic Circuit F = (A + B).C 1. Draw the operations with parentheses ( ) ; (A+B) 2. Joint the output of (A+B) with .C (AND gate) A B C F
  • 28. Simple Logic Circuit F = (A . B)+C 1. Draw the operations with parentheses ( ) ; (A.B) 2. Joint the output of (A.B) with .C (OR gate) A B C F
  • 29. Simple Logic Circuit F = A + (B.C) 1. First, draw inversions of single terms ; A 2. Draw the operations with parentheses ( ) ; (B.C) 3. Joint the output of A with output of B.C using OR gate A B C F
  • 30. Simple Logic Circuit Draw the logic circuit for the Boolean expression Y = A + B.C + D
  • 31. Simple Logic Circuit Draw the logic circuit for the Boolean expression Y = ((A.B)+C)
  • 32. Draw the logic circuit for the question below 1. F = (B+A).C+(A’+D) 2. Y = (B.C+A).(A’+C) 3. Adi will be the football coach if Emran is the goalkeeper or Irfan is not a striker. However, Emran will only be a goalkeeper only if ZIkri and Afif are the defender 4. Amy will reach the International Airport as schedules if she checks in before 9am and her luggage is not more than 20kg 5. PSPM is around the corner. Amni and Anna decided to study at the library. Elsa and Olaf are interested to join them. Amni will goes to the library if Elsa or Olaf not goes but Anna goes Exercise