Unit3 Boolean Algebra Combinationalcircuits
Unit3 Boolean Algebra Combinationalcircuits
2. Logic Circuits:
2.1 Boolean algebra
In 1854 George Boole developed an algebraic system known
as Boolean algebra.
Boolean algebra is a branch of mathematics and it can be
used to describe the processing of binary information (0 and
1).
Boolean algebra deals with the manipulation of objects that
can take only two logical values viz. TRUE and FALSE.
The two-valued Boolean algebra has important application in
the design of modern computing systems.
2.1.1 Boolean Expression
It is the combination of the variables and Boolean
operations.
Basic Boolean operators: AND (*), OR (+), NOT (~)
The AND operator is also known as a Boolean product. The
Boolean expression xy is equivalent to the expression x * y
and is read as “x and y.”
The OR operator is often referred to as a Boolean sum. The
expression x+y is read as “x or y”.
Complementary value of x is denoted as
𝑥 (or x’) and read as “NOT(x)”.
Truth Table:
A truth table shows the relationship, in tabular form, between
the input and output values for the particular Boolean
operation.
The truth tables of AND, OR and NOT operations are as
shown in table 1.
𝐱𝐲 = 𝐱 + 𝐲 and 𝐱 + 𝐲 = 𝐱 𝐲
2.1.3 Representing Boolean Functions
Two expressions that can be represented by the same truth table
are considered logically equivalent.
The two most common standardized forms are the sum-of-
products form and the product-of-sums form.
In the sum-of-products form, ANDed variables are ORed together.
For example,
F(x,y,z) = xy + xz + yz
In the product-of-sums form, ORed variables are ANDed together.
For example,
F(x,y,z) = (x+y) (x+z) (y+z)
Realization of Boolean Expressions using basic gates and their truth table
a) Buffers
Buffers do not affect the logical state of a digital signal (i.e. a
logic 1 input results in a logic 1 output whereas a logic 0
input results in a logic 0 output).
Buffers are normally used to provide extra current drive at
the output but can also be used to regularize the logic levels
present at an interface.
The Boolean expression for the output, Y, of a buffer with an
input, X, is:
Y=X
c) AND gates
AND gates will only produce a logic 1 output when all inputs
are simultaneously at logic 1.
Any other input combination results in a logic 0 output. The
Boolean expression for the output, Y, of an AND gate with
inputs, A and B, is:
Y = A.B
d) OR gates
OR gates will produce a logic 1 output whenever anyone, or
more, inputs are at logic 1.
An OR gate will only produce a logic 0 output whenever all of
its inputs are simultaneously at logic 0.
The Boolean expression for the output, Y, of an OR gate with
inputs A and B is:
Y=A+B
e) NAND gates
NAND (i.e. NOT-AND) gates will only produce a logic 0 output
when all inputs are simultaneously at logic 1.
Any other input combination will produce a logic 1 output.
The circle shown at the output denotes this inversion.
The Boolean expression for the output, Y, of a NAND gate with
inputs A and B is:
Y = A .B
f) NOR gates
NOR (i.e. NOT-OR) gates will only produce a logic 1 output
when all inputs are simultaneously at logic 0.
Any other input combination will produce a logic 0 output. A
NOR gate, therefore, is simply an OR gate with its output
inverted.
The Boolean expression for the output, Y, of a NOR gate with
inputs, A and B, is:
Y = A+B
g) Exclusive-OR gates
Exclusive-OR gates will produce a logic 1 output whenever
either one of the inputs is at logic 1 or the other is at logic 0.
Exclusive-OR gates produce a logic 0 output whenever both
inputs have the same logical state (i.e. when both are at logic
0 and both are at logic 1).
The Boolean expression for the output, Y, of an exclusive-OR
gate with inputs A and B is:
Y = A. B + A.B
Combinational logic
By using a standard range of logic levels (i.e. voltage levels
used to represent the logic 1 and logic 0 states) logic circuits
can be combined in order to solve complex logic functions.
Example 2.1
A logic circuit is to be constructed that will produce a logic 1 output
whenever two or more of its three inputs are at logic 1.
Solution
This circuit could be more aptly referred to as a majority vote
circuit. Its truth table is shown in Fig. 2.8. Fig. 2.9 shows the logic
circuitry required.
Example 2.2
Show how an arrangement of basic logic gates (AND, OR and NOT)
can be used to produce the exclusive-OR function.
Solution
In order to solve this problem, consider the Boolean expression for
the exclusive-OR function:
Y = A. B + A.B
This expression takes the form:
Y = P + Q where P = A. B and Q = A.B
A. B and A.B can be obtained using two two-input AND gates and
the result (i.e. P and Q) can then be applied to an OR gate with two
inputs. A and B can be produced using inverters. The complete
solution is shown in Fig. 2.10.
A B S C
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
(a) Truth Table
Figure 2.11 Half-adder logic circuit
Full Adder
This circuit is used to add two binary numbers, accept a carry
and yield a carry.
The circuit can be visualized by means of two half adders (HA)
and an OR as shown in Fig. 2.12.
Multiplexer
The objective of a multiplexer is to select one signal from a
group of 2n inputs, to be an output on a single output line.
An 8-to-1 multiplexer (MUX) is as shown in Figure 2.14.