SlideShare a Scribd company logo
1 of 32
Computer System
2.4 Logic Gate & Simple Logic Circuit
2.4.1
2.4.2
2.4.3
Boolean Expression
Logic Gate
Logic Circuit
Chapter
PDT - 2017/2018
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
Computer System
2.4 Logic Gate & Simple Logic Circuit
2.4.1 Boolean Expression
Chapter
PDT - 2017/2018
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
Computer System
2.4.2 Logic Gate
Chapter
PDT - 2017/2018
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
Computer System
Form valid Boolean
expressions
Chapter
PDT - 2017/2018
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
Computer System
2.4.3 Logic Circuit
Chapter
PDT - 2017/2018
• 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

More Related Content

What's hot

Digital Electronics Logic gates
Digital Electronics Logic gatesDigital Electronics Logic gates
Digital Electronics Logic gatesMD Mahadi Hasan
 
Lecture 2.4 logic_gate_&_simple_logic_circuit
Lecture 2.4 logic_gate_&_simple_logic_circuitLecture 2.4 logic_gate_&_simple_logic_circuit
Lecture 2.4 logic_gate_&_simple_logic_circuitKMJ Science Computer
 
Physics investigatory project for class 12 logic gates
Physics investigatory project for class 12 logic gatesPhysics investigatory project for class 12 logic gates
Physics investigatory project for class 12 logic gatesbiswanath dehuri
 
Digital logic design DLD Logic gates
Digital logic design DLD Logic gatesDigital logic design DLD Logic gates
Digital logic design DLD Logic gatesSalman Khan
 
Introduction to digital logic
Introduction to digital logicIntroduction to digital logic
Introduction to digital logicKamal Acharya
 
Digital logic Gates of Computer Science
Digital logic Gates of Computer ScienceDigital logic Gates of Computer Science
Digital logic Gates of Computer ScienceAnil Kumar Prajapati
 
Digital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebraDigital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebraelfeds916
 
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed KhanDigital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed KhanYasir Khan
 
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsCOMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsVanitha Chandru
 
Electronic Circuits
Electronic  CircuitsElectronic  Circuits
Electronic Circuitsgavhays
 
Chapter 02 Logic Functions and Gates
Chapter 02 Logic Functions and GatesChapter 02 Logic Functions and Gates
Chapter 02 Logic Functions and GatesSSE_AndyLi
 
investagatory PHYSICS-LOGIC GATES
investagatory PHYSICS-LOGIC GATESinvestagatory PHYSICS-LOGIC GATES
investagatory PHYSICS-LOGIC GATESLakhvinder Singh
 
B sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gatesB sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gatesRai University
 
Logic Gates Class 12
Logic Gates Class 12Logic Gates Class 12
Logic Gates Class 12RithuJ
 

What's hot (20)

Logic gates
Logic gatesLogic gates
Logic gates
 
Digital Electronics Logic gates
Digital Electronics Logic gatesDigital Electronics Logic gates
Digital Electronics Logic gates
 
Lecture 2.4 logic_gate_&_simple_logic_circuit
Lecture 2.4 logic_gate_&_simple_logic_circuitLecture 2.4 logic_gate_&_simple_logic_circuit
Lecture 2.4 logic_gate_&_simple_logic_circuit
 
Logic gates (2)
Logic gates (2)Logic gates (2)
Logic gates (2)
 
Logical Gates
Logical GatesLogical Gates
Logical Gates
 
Physics investigatory project for class 12 logic gates
Physics investigatory project for class 12 logic gatesPhysics investigatory project for class 12 logic gates
Physics investigatory project for class 12 logic gates
 
Digital logic design DLD Logic gates
Digital logic design DLD Logic gatesDigital logic design DLD Logic gates
Digital logic design DLD Logic gates
 
Introduction to digital logic
Introduction to digital logicIntroduction to digital logic
Introduction to digital logic
 
Digital logic Gates of Computer Science
Digital logic Gates of Computer ScienceDigital logic Gates of Computer Science
Digital logic Gates of Computer Science
 
Digital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebraDigital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebra
 
Lec 2 digital basics
Lec 2 digital basicsLec 2 digital basics
Lec 2 digital basics
 
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed KhanDigital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
 
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsCOMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
 
Logic gates 07 11-2014
Logic gates 07 11-2014Logic gates 07 11-2014
Logic gates 07 11-2014
 
Logic gate
Logic gateLogic gate
Logic gate
 
Electronic Circuits
Electronic  CircuitsElectronic  Circuits
Electronic Circuits
 
Chapter 02 Logic Functions and Gates
Chapter 02 Logic Functions and GatesChapter 02 Logic Functions and Gates
Chapter 02 Logic Functions and Gates
 
investagatory PHYSICS-LOGIC GATES
investagatory PHYSICS-LOGIC GATESinvestagatory PHYSICS-LOGIC GATES
investagatory PHYSICS-LOGIC GATES
 
B sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gatesB sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gates
 
Logic Gates Class 12
Logic Gates Class 12Logic Gates Class 12
Logic Gates Class 12
 

Similar to PDT DC015 Chapter 2 Computer System 2017/2018 (f)

PST SC015 Chapter 2 Computer System (III) 2017/2018
PST SC015 Chapter 2 Computer System (III) 2017/2018PST SC015 Chapter 2 Computer System (III) 2017/2018
PST SC015 Chapter 2 Computer System (III) 2017/2018Fizaril Amzari Omar
 
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
 
Dee2034 chapter 2 boolean algebra part b
Dee2034 chapter 2 boolean algebra part bDee2034 chapter 2 boolean algebra part b
Dee2034 chapter 2 boolean algebra part bSITI SABARIAH SALIHIN
 
Basic gates and boolean algebra
Basic gates and boolean algebraBasic gates and boolean algebra
Basic gates and boolean algebraSudheesh S Madhav
 
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 logic gates1
Physics logic gates1Physics logic gates1
Physics logic gates1Kirthi Kirthu
 
verification of logic gates cbse class 12
verification of logic gates cbse class 12verification of logic gates cbse class 12
verification of logic gates cbse class 12Kirthi Kirthu
 
Physics project on logic gate
Physics project on logic gatePhysics project on logic gate
Physics project on logic gateVirat Prasad
 
Logic Gate.pptx
Logic Gate.pptxLogic Gate.pptx
Logic Gate.pptxMrAdhit1
 
Digital-Logic40124sequential circuits logic gatepptx
Digital-Logic40124sequential circuits logic gatepptxDigital-Logic40124sequential circuits logic gatepptx
Digital-Logic40124sequential circuits logic gatepptxssuser6feece1
 
Combinational logic circuits design and implementation
Combinational logic circuits design and implementationCombinational logic circuits design and implementation
Combinational logic circuits design and implementationssuserca5764
 

Similar to PDT DC015 Chapter 2 Computer System 2017/2018 (f) (20)

PST SC015 Chapter 2 Computer System (III) 2017/2018
PST SC015 Chapter 2 Computer System (III) 2017/2018PST SC015 Chapter 2 Computer System (III) 2017/2018
PST SC015 Chapter 2 Computer System (III) 2017/2018
 
Number systems and Boolean Reduction
Number systems and Boolean ReductionNumber systems and Boolean Reduction
Number systems and Boolean Reduction
 
Logic circuit2017
Logic circuit2017Logic circuit2017
Logic circuit2017
 
Lecturer mid.ppt
Lecturer mid.pptLecturer mid.ppt
Lecturer mid.ppt
 
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)
 
Dee2034 chapter 2 boolean algebra part b
Dee2034 chapter 2 boolean algebra part bDee2034 chapter 2 boolean algebra part b
Dee2034 chapter 2 boolean algebra part b
 
Basic gates and boolean algebra
Basic gates and boolean algebraBasic gates and boolean algebra
Basic gates and boolean algebra
 
class xi pptx-1.pptx
class xi pptx-1.pptxclass xi pptx-1.pptx
class xi pptx-1.pptx
 
Mcsl 17 ALP lab manual
Mcsl 17 ALP lab manualMcsl 17 ALP lab manual
Mcsl 17 ALP lab manual
 
Lec4-Algghhhhgghgjhf5dvbgyuygit87678.pdf
Lec4-Algghhhhgghgjhf5dvbgyuygit87678.pdfLec4-Algghhhhgghgjhf5dvbgyuygit87678.pdf
Lec4-Algghhhhgghgjhf5dvbgyuygit87678.pdf
 
9525.ppt
9525.ppt9525.ppt
9525.ppt
 
chapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptxchapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptx
 
14 Lec11 2003
14 Lec11 200314 Lec11 2003
14 Lec11 2003
 
Physics logic gates1
Physics logic gates1Physics logic gates1
Physics logic gates1
 
verification of logic gates cbse class 12
verification of logic gates cbse class 12verification of logic gates cbse class 12
verification of logic gates cbse class 12
 
Physics project on logic gate
Physics project on logic gatePhysics project on logic gate
Physics project on logic gate
 
Digital logic
Digital logicDigital logic
Digital logic
 
Logic Gate.pptx
Logic Gate.pptxLogic Gate.pptx
Logic Gate.pptx
 
Digital-Logic40124sequential circuits logic gatepptx
Digital-Logic40124sequential circuits logic gatepptxDigital-Logic40124sequential circuits logic gatepptx
Digital-Logic40124sequential circuits logic gatepptx
 
Combinational logic circuits design and implementation
Combinational logic circuits design and implementationCombinational logic circuits design and implementation
Combinational logic circuits design and implementation
 

More from 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
 

More from 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
 

Recently uploaded

Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...DhatriParmar
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17Celine George
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataBabyAnnMotar
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptxDhatriParmar
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...DhatriParmar
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQuiz Club NITW
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationdeepaannamalai16
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1GloryAnnCastre1
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleCeline George
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operationalssuser3e220a
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsPooky Knightsmith
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Developmentchesterberbo7
 

Recently uploaded (20)

Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped data
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentation
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP Module
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operational
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young minds
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Development
 

PDT DC015 Chapter 2 Computer System 2017/2018 (f)

  • 1. Computer System 2.4 Logic Gate & Simple Logic Circuit 2.4.1 2.4.2 2.4.3 Boolean Expression Logic Gate Logic Circuit Chapter PDT - 2017/2018
  • 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 Computer System 2.4 Logic Gate & Simple Logic Circuit 2.4.1 Boolean Expression Chapter PDT - 2017/2018
  • 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 Computer System 2.4.2 Logic Gate Chapter PDT - 2017/2018
  • 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. Computer System Form valid Boolean expressions Chapter PDT - 2017/2018
  • 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 Computer System 2.4.3 Logic Circuit Chapter PDT - 2017/2018
  • 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