P3 - 19 - Boolean Algebra and Logic Circuits
P3 - 19 - Boolean Algebra and Logic Circuits
P3 - 19 - Boolean Algebra and Logic Circuits
DeMorgan’s Theorem
https://www.youtube.com/watch?v=ZyCzgqijpmM
Boolean algebra and logic circuits
Learning objectives:
You want this set of logic gates with inputs A, B, and C to output Z = 1 only if there's an odd
number of inputs that equal 1.
A variable is a symbol used to represent a logical quantity. Any single variable can
have a
BOOLEAN OPERATIONS The complement is the inverse of a variable and is indicated by a bar over the
variable. The complement of a variable is not considered as a different variable
AND EXPRESSIONS
Every occurrence of a variable or its complement is called a Literal. It could be its
true form or its complement, both of them are called Literals.
A sum term is equal to 1 if one or all of its inputs are 1, and is equal to 0 only
if all of its inputs are zero
A product term is equal to 1 if one or all of its inputs are 1, and is equal to 0
if any one (or all) of its inputs are zero
Describing Logic Circuits Algebraically:
Any logic circuit, no matter how complex, can be described with Boolean
operations because the OR gate, AND gate and NOT gate are the basic building
blocks of digital circuits
Boolean algebra provides a concise way to express the operation of a logic circuit
formed by a combination of logic gates so that the output can be determined for
various combination of input values.
BOOLEAN OPERATIONS To derive the Boolean expression for a given logic circuit you have to begin at the
left most inputs and work towards the final output, writing the expression for each
AND EXPRESSIONS gate.
Two given Boolean expressions are said to be equivalent if one of them equals
"1" only when the other also equals "1" and same case with "0"
They are said to be complement of each other if one expression equals "1" only
when the other equals "0" and vice versa.
Postulates of Boolean Algebra
The following are the important postulates of Boolean algebra
AND EXPRESSIONS
It is useful in the sense that the number of gates are reduced which in turn also
reduces heat dissipation from the circuit (energy saving)
When this is done, the reduced expression will produce a circuit that is less
complex than the one which the original expression would have produced
Commutative Laws
Rule 1:
For Addition
X+Y=Y+X
For Multiplication
X.Y = Y.X
For Addition
X + (Y + Z) = Y + (Z + X) = Z + (X + Y)
For Multiplication
X.(Y.Z) = Y.(Z.X) = Z.(X.Y)
Distributive Laws
Rule 3:
X. (Y + Z) = X.Y + X.Z
OR LAWS
These laws use the OR operation. Therefore they are called as OR Laws
AND LAWS
BOOLEAN OPERATIONS These laws use the AND operation. Therefore they are called as AND laws
X.X.X.X...............X = X
Rule 6:
X+X+X+X...............+X = X
Complementation Law:
Rule 7:
_
X.X = 0
Rule 8:
_
X+X = 1
BOOLEAN OPERATIONS
AND EXPRESSIONS LAWS Involution Law / Inversion Law:
Rule 9:
This law uses the NOT operation. The inversion law states that double inversion of
a variable result in the original variable itself.
_
_
X=X
De Morgans Theorem:
X+X.Y = X
Rule 11:
BOOLEAN OPERATIONS _
AND EXPRESSIONS LAWS X+X.Y = X+Y
Rule 12:
(X+Y).(X+Z) = X+Z.Y
BOOLEAN OPERATIONS
AND EXPRESSIONS
Karnaugh Map (K-Map)
KARNAUGH MAP It can make the process much easier than if you use sum-of-products to
create minterms.
https://www.youtube.com/watch?v=RO5alU6PpSU X=A+B
LOGIC CIRCUITS
Circuits that are used to construct components that
provide functionality in computer hardware.
LOGIC CIRCUITS
Input Output Carry bit
Circuits that are used to construct components that A B S C
provide functionality in computer hardware.
0 0 0 0
Half Adder
These are combinational circuits. 0 1 1 0 Truth Table
- output is dependent only on the input values. S=A⊕B
1 0 1 0
C = A.B
Logic Gates: Half, Full & Ripple adder: 1 1 0 1
https://youtu.be/TXZBqtfAOpY
XOR AND
gate gate
Full Adder
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.
One possible circuit for implementation contains two half adder circuits and an OR gate is
shown below:
Sum bit
Circuits that are used to construct components that Set Reset NOR Q Q’
provide functionality in computer hardware.
0 0 1 Q Q’
These are sequential circuits. 0 1 0 0 1
- output depends on the input and on the previous
output. 1 0 0 1 0
SR flip-flop can be used as a storage device for 1 bit and 1 1 0 0 0
therefore could be used as a component in RAM
because a value is stored but can be altered .
3. JK Flip-flop:
https://youtu.be/j6krFp511HA The workings of the circuit are
viewed in terms of the value of the
4. Latch v Flip-flop: Q output immediately after the
https://youtu.be/m1QBxTeVaNs circuit detects a clock pulse. , J K Clock Q
The J input acts as a set input and the K as a clear so there is some similarity
to the functioning of the SR flip-flop.
However, if both J and K are input as a 1 then Q always switches value.
SR Latch (NOR and NAND gates)
Summary: Boolean Algebra and Logic Circuits.
• There are Boolean algebra laws that can be used to simplify logic
expressions.
• Binary addition can be carried out using a half adder or a full
adder circuit.
• SR or JK flip-flop circuits can be used to store a bit value.
• The sum of products method can be used to create an equivalent
logic expression containing minterms from a truth table.
• A Karnaugh map is a representation of a truth table that allows a
simplified logic expression to be derived from a truth table.
27