CT 221 Lecture 2
CT 221 Lecture 2
𝐴𝐵 + 𝐴𝐶 = 𝐴 𝐵 + 𝐶
and
𝐴 + 𝐵𝐶 = 𝐴 + 𝐵 (𝐴 + 𝐶)
Rules and Laws of Boolean Algebra
Distributive Law
The distributive law is the factoring law. A common
variable can be factored from an expression just as in
ordinary algebra. That is
𝐴𝐵 + 𝐴𝐶 = 𝐴 𝐵 + 𝐶
and
𝐴 + 𝐶 𝐴 + 𝐵 = 𝐴 + (𝐵𝐶)
Rules and Laws of Boolean Algebra
Rules of Boolean algebra
Table below shows 13 basic rules that are useful in
manipulating and simplifying Boolean expressions.
1. 𝐴+0=𝐴 8. 𝐴. 𝐴̅ = 0
2. 𝐴+1=1 9. 𝐴̿ = 𝐴
3. 𝐴. 0 = 0 10. 𝐴 + 𝐴𝐵 = 𝐴
4. 𝐴. 1 = 𝐴 11. 𝐴 + 𝐴̅𝐵 = 𝐴 + 𝐵
5. 𝐴+𝐴=𝐴 12. 𝐴 + 𝐵 𝐴 + 𝐶 = 𝐴 + 𝐵𝐶
6. 𝐴 + 𝐴̅ = 1 13. AB + AC = (A + C)(𝐴̅ + B)
7. 𝐴. 𝐴 = 𝐴
Rules and Laws of Boolean Algebra
De Morgan’s Theorem
De Morgan’s 1st Theorem states that the complement of
a product of variables is equal to the sum of the
complemented variables
𝐴𝐵 = 𝐴̅ + 𝐵
0 1 1 0 𝑎𝑏𝑐 𝑚
1 0 0 0 𝑎𝑏𝑐̅ 𝑚
1 0 1 1 𝑎𝑏𝑐 𝑚
1 1 0 0 𝑎𝑏𝑐̅ 𝑚
1 1 1 1 𝑎𝑏𝑐 𝑚
Standard form
Maxterm Standard form
Maxterms are sum terms where all variables appear once
either in complemented or uncomplemented forms.
Expression constructed by maxterms are said to be in
maxterm canonical form or standard product of sum.
Functions in maxterm canonical form are constructed by
rows which the function evaluates to 0.
Standard form
Maxterm Standard form
The M-notation ( ): is used to simplify writing in
maxterm canonical form.
◦ stands for row number for which the function evaluates to 0.
Example: Write function represented in the table below as
an expression in maxterm canonical form as in M-notation
Standard form
Maxterm Standard form
𝒙 𝒚 𝒛 𝒇 𝒕𝒆𝒓𝒎𝒔 𝑴𝒊
0 0 0 1 𝑎+𝑏+𝑐 𝑀
0 0 1 1 𝑎 + 𝑏 + 𝑐̅ 𝑀
0 1 0 0 𝑎+𝑏+𝑐 𝑀
0 1 1 1 𝑎 + 𝑏 + 𝑐̅ 𝑀
1 0 0 1 𝑎+𝑏+𝑐 𝑀
1 0 1 0 𝑎 + 𝑏 + 𝑐̅ 𝑀
1 1 0 0 𝑎+𝑏+𝑐 𝑀
1 1 1 1 𝑎 + 𝑏 + 𝑐̅ 𝑀
𝑓 𝑥, 𝑦, 𝑧 = (𝑥 + 𝑦 + 𝑧)(𝑥̅ + 𝑦 + 𝑧̅)(𝑥̅ + 𝑦 + 𝑧)
𝑓 𝑥, 𝑦, 𝑧 = 𝑀 𝑀 𝑀
𝑓 𝑥, 𝑦, 𝑧 = 𝑀(2,5,6)
Combinational logic circuits
Combinational circuit is an interconnection of gates
where the logic level of the outputs at any time depends
only on the inputs at that time.
A logic circuit with no interconnection between output
terminals and input terminals are called combinational
circuits.
Combinational logic circuits
Analysis of combinational circuits
During analysis it assumed that the inputs are at one of
either two possible values.
While analyzing combinational circuits start with the
gate at which the input are connected and continue until
the output is reached.
Combinational logic circuits
Analysis of combinational circuits
Example: analyze the circuits below by writing its
Boolean expression.
b
c
e
d
a b
b
e
Combinational logic circuits
Constructing a truth table for a logic circuit.
Once the Boolean expression for a given circuit has been
determined a truth table that show the output for all
possible values of the input variables can be developed.
Combinational logic circuits
Synthesis of combinational Circuits
This involve the design of combinational circuit resulting
in its schematic diagram or gate diagram.
Example: synthesize the following Boolean expressions:
Combinational logic circuits
Combinational Logic Design
Logic design involves the generation of the schematic
diagram given the specifications.
Procedure for logic design
1. Construct truth table
2. Determine a minterm/ maxterm from truth table
3. Draw a schematic diagram of expression obtained from step
2.
Combinational logic circuits
Combinational Logic Design
Examples
Design a system which accepts four input a, b, c and d
and outputs a 1 whenever the number of 1s in the input
exceeds 2
Design a system which accepts four inputs w, x, y and z
outputs 1 whenever the least significant input or the
most significant inputs goes high.
Combinational logic circuits
Realization using NAND gate
If given an expression in SOP form the final expression is
an OR operation
◦ Apply de Morgan’s theorem
◦ Implement
Combinational logic circuits
Realization using NAND gate
If given expression is in POS form where the final
operation is a AND operation
◦ Apply the De Morgan’s theorem and
◦ Implement the complement of the function
◦ Invert using a NAND gate configured as an inverter.
Combinational logic circuits
Realization using NAND gate
Examples
1. Realize the following Boolean expression using only
NAND gates
a.
Combinational logic circuits
Realization using NOR gate
If given an expression in POS form the final expression is
an AND operation and the expression can be
implemented right away.
Combinational logic circuits
Realization using NOR gate
If given expression is in SOP form we need to
◦ Apply the De Morgan’s theorem and
◦ Implement the complement of the function and,
◦ Place a NOR gate configured as an inverter.
Combinational logic circuits
Realization using NOR gate
Example
Implement the following expressions using only NOR
gates.
Tutorials
Prove the following identities.