Professional Documents
Culture Documents
Lecture 05
Lecture 05
Lecture 05
Boolean Algebra
Batch 2021F
Boolean Algebra
• Boolean Constants
• these are ‘0’ (false) and ‘1’ (true)
• Boolean Variables
• variables X, Y etc. that can only take the vales ‘0’ or ‘1’
• Boolean Functions
• each of the logic functions (such as AND, OR and NOT) are
represented by symbols as described above
• Boolean Theorems
• a set of identities and laws – see text for details
2
Boolean identities
4
Combinational Logic
• Digital systems may be divided into two broad
categories:
• combinational logic
• where the outputs are determined solely by the current states of
the inputs
• sequential logic
• where the outputs are determined not only by the current inputs
but also by the sequence of inputs that led to the current state
5
Implementing a function from a Boolean expression
01
6
Implementing a function from a Boolean expression
02
7
Generating a Boolean expression from a logic diagram
8
Example (continued)
work progressively from the inputs to the output adding logic expressions to
the output of each gate in turn
9
Implementing a logic function from a
description
The operation of the Exclusive OR gate can be stated as:
“The output should be true if either of its inputs are true,
but not if both inputs are true.”
This can be rephrased as:
“The output is true if A OR B is true,
AND if A AND B are NOT true.”
We can write this in Boolean notation as
X ( A B) ( AB )
10
Example (continued)
The logic function
X ( A B) ( AB )
11
Implementing a logic function from a truth
table
Implement the function of the following truth table
A B C X
0 0 0 0
1 0 1 1 X A BC ABC ABC
1 1 0 1
1 1 1 0
12
Example (continued)
13
Simplification of Logic Expression
14
What will be the circuits for the following
expressions?
Light 1
sensor 0
0 0
Relay Lamp
Body 0/1
heat The relay controls a
sensor separate circuit with the
lamp in it.
During the day the body
heat sensor can be either
high or low – the AND gate
will not be triggered. 35
Security light
Light 0
sensor 1
1 1
Relay Lamp
Body 1
heat The AND gate receives two
sensor high inputs and triggers the
relay which causes the lamp
When it is dark, if someone to switch on.
approaches the body heat
sensor is triggered and
becomes high 36
A night-time rain alarm
Moisture 0
sensor 0/1 Alarm
37
A night-time rain alarm.
38
Minterm and Maxterm