Boolean Algebra Applications
Boolean Algebra Applications
Topic Objectives
❖ Show understanding of Boolean algebra
❖ Show understanding of Karnaugh maps (K-map)
❖ Show understanding of a flip-flop (SR, JK)
❖ Produce truth tables for logic circuits including
half adders and full adders
❖ May include logic gates with more than two inputs
❖ Understand De Morgan’s laws.
❖ Perform Boolean algebra using De Morgan’s laws.
Simplify a logic circuit/expression using Boolean
algebra
Recap: Logic circuit:AS Topic
Recap: Logic circuit AS Topic
Recap: Logic circuit
Recap: Logic circuit
Recap: Logic circuit
Boolean Algebra basics
• Boolean algebra provide a simplified way of
writing a logic expression and a set of rules
for manipulating an expression
• Understanding of its meaning is important
Boolean algebra
It is a form of algebra linked to logic circuits
and is based on the two statements:
❖TRUE (1)
❖FALSE (0)
The notation used to represent these two
Boolean operators is:
Boolean Algebra: Rules
Simplification using Boolean algebra
Simplification using Boolean algebra
The sum shows how we have to deal with CARRY from the previous
column.
There are three inputs to consider in this third column, for example, A =
1, B = 0 and C = 1 (S = 0).
This is why we need to join two half adders together to form a full adder:
The full adder
• At each stage the carry from the previous addition has to be
incorporated into the current addition.
• If a half adder is used each time, there has to be separate
circuitry to handle the carry bit because the half adder only
takes two inputs.
• The full adder is a circuit that has three inputs including the
previous carry bit.
The full adder
• The truth table is shown as
Full adder
Full Adder
Discussion
• Can you see how full adders could be combined to handle
addition of, for example, four-bit binary numbers?
• What happens to the carry input for the first addition?
Full adder
The full adder is the basic building block for
multiple binary additions.
For example, Figure shows how two 4-bit
numbers can be summed using four full adder
circuits.
sequential circuit
• All of the circuits so far encountered have
been combinational circuits.
• For such a circuit the output is dependent
only on the input values.
• An alternative type of circuit is a sequential
circuit where the output depends on the input
and on the previous output.
The SR Flip-Flop
• SR flip-flops consist of two cross-coupled NAND gates (note: they can
equally well be produced from NOR gates).
• The two inputs are labelled ‘S’ and ‘R’, and the two outputs are labelled
‘Q’ and ‘Q’ (‘Q is equivalent to NOT Q)
The output from each NOR gate gives a form of positive feedback (known as cross-
coupling, as mentioned earlier
The SR Flip-Flop
• consider the truth table to match our SR flip-
flop using the initial states of R = 0, S = 1 and
Q = 1.
• The sequence of the stages in the process is
shown
The SR Flip-Flop
Now consider what happens if we change the
value of S from 1 to 0.
The SR Flip-Flop
The SR Flip-Flop
• The truth table shows how an input value of S
= 0 and R = 0 causes no change to the two
output values; S = 0 and R = 1 reverses the
two output values
• S = 1 and R = 0 always gives Q = 1 and Q = 0
which is the set value.
SR Flip Flop
• The truth table shows that SR flip-flops can be
used as a storage/memory device for one bit;
• because a value can be remembered but can
also be changed
• it could be used as a component in a memory
device such as a RAM chip.
• It is important that the fault condition in line
(e) is considered when designing and
developing storage/memory devices.
The JK Flip-Flop
The SR flip-flop has the following problems: