0% found this document useful (0 votes)
42 views

Lect03 2boolean Algebra

This document provides an introduction to Boolean algebra and logic circuits. It defines the basic axioms of Boolean algebra including operations like AND, OR, and NOT. It then derives single-variable theorems from these axioms through induction. The document also discusses properties of Boolean operations like duality, commutativity, associativity, distributivity, absorption, DeMorgan's theorem, and represents logic functions using Venn diagrams. It introduces concepts like precedence of operations and represents logic functions as circuits.

Uploaded by

purwant10168
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views

Lect03 2boolean Algebra

This document provides an introduction to Boolean algebra and logic circuits. It defines the basic axioms of Boolean algebra including operations like AND, OR, and NOT. It then derives single-variable theorems from these axioms through induction. The document also discusses properties of Boolean operations like duality, commutativity, associativity, distributivity, absorption, DeMorgan's theorem, and represents logic functions using Venn diagrams. It introduces concepts like precedence of operations and represents logic functions as circuits.

Uploaded by

purwant10168
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

ECE380 Digital Logic

Introduction to Logic Circuits:


Boolean algebra

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 3-1

Axioms of Boolean algebra


• Boolean algebra: based
on a set of rules derived
from a small number of
basic assumptions
(axioms)

• 1a 0·0=0 • 3a 0·1=1·0=0
• 1b 1+1=1 • 3b 1+0=0+1=1
• 2a 1·1=1 • 4a If x=0 then x’=1
• 2b 0+0=0 • 4b If x=1 then x’=0

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 3-2

1
Single-Variable theorems
• From the axioms are derived • Single-variable
some rules for dealing with theorems can be proven
single variables
by perfect induction
• 5a x·0=0
• 5b x+1=1 • Substitute the values
• 6a x·1=x x=0 and x=1 into the
• 6b x+0=x expressions and verify
• 7a x·x=x using the basic axioms
• 7b x+x=x
• 8a x·x’=0
• 8b x+x’=1
• 9 x’’=x

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 3-3

Duality
• Axioms and single-variable theorems are
expressed in pairs
– Reflects the importance of duality
• Given any logic expression, its dual is formed
by replacing all + with ·, and vice versa and
replacing all 0s with 1s and vice versa

– f(a,b)=a+b dual of f(a,b)=a·b


– f(x)=x+0 dual of f(x)=x·1

• The dual of any true statement is also true


Electrical & Computer Engineering Dr. D. J. Jackson Lecture 3-4

2
Two & three variable properties
• 10a. x·y=y·x Commutative
• 10b. x+y=y+x

• 11a. x·(y·z)=(x·y)·z Associative


• 11b. x+(y+z)=(x+y)+z

• 12a. x·(y+z)=x·y+x·z Distributive


• 12b. x+y·z=(x+y)·(x+z)

• 13a. x+x·y=x Absorption


• 13b. x·(x+y)=x
Electrical & Computer Engineering Dr. D. J. Jackson Lecture 3-5

Two & three variable properties


• 14a. x·y+x·y’=x Combining
• 14b. (x+y)·(x+y’)=x

• 15a. (x·y)’=x’+y’ DeMorgan’s


• 15b. (x+y)’=x’·y’ Theorem

• 16a. x+x’·y=x+y
• 16b. x·(x’+y)=x·y

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 3-6

3
Induction proof of x+x’·y=x+y
• Use perfect induction to prove x+x’·y=x+y

x y x’y x+x’y x+y

0 0 0 0 0

0 1 1 1 1

1 0 0 1 1

1 1 0 1 1

equivalent

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 3-7

Perfect induction example


• Use perfect induction to prove (xy)’=x’+y’

x y xy (xy)’ x’ y’ x’+y’

0 0 0 1 1 1 1

0 1 0 1 1 0 1

1 0 0 1 0 1 1

1 1 1 0 0 0 0

equivalent

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 3-8

4
Proof (algebraic manipulation)
• Prove
– (X+A)(X’+A)(A+C)(A+D)X = AX
– (X+A)(X’+A)(A+C)(A+D)X
– (X+A)(X’+A)(A+CD)X (using 12b)
– (X+A)(X’+A)(A+CD)X
– (A)(A+CD)X (using 14b)
– (A)(A+CD)X
– AX (using 13b)

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 3-9

Algebraic manipulation
• Algebraic manipulation can be used to
simplify Boolean expressions
– Simpler expression => simpler logic circuit
• Not practical to deal with complex
expressions in this way
• However, the theorems & properties provide
the basis for automating the synthesis of
logic circuits in CAD tools
– To understand the CAD tools the designer should
be aware of the fundamental concepts

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 3-10

5
Venn diagrams
• Venn diagram: graphical illustration of
various operations and relations in an algebra
of sets
• A set s is a collection of elements that are
members of s (for us this would be a
collection of Boolean variables and/or
constants)
• Elements of the set are represented by the
area enclosed by a contour (usually a circle)

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 3-11

Venn diagrams

(a) Constant 1 (b) Constant 0

X X’ X’ X

(c) Variable X (d) X’

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 3-12

6
Venn diagrams

X Y X Y

(e) XY (f) X+Y

X Y
X Y
Z

(g) XY’ (h) XY+Z


Electrical & Computer Engineering Dr. D. J. Jackson Lecture 3-13

Venn diagrams (x+y)’= x’y’

X Y X Y

X Y X X’ Y’ Y

(X+Y)’ X’Y’
Equivalent
X Y X Y Venn diagrams
DeMorgan’s imply equivalent
Theorem functions

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 3-14

7
Notation and terminology
• Because of the similarity with arithmetic
addition and multiplication operations, the
OR and AND operations are often called the
logical sum and product operations
• The expression
– ABC+A’BD+ACE’
– Is a sum of three product terms
• The expression
– (A+B+C)(A’+B+D)(A+C+E’)
– Is a product of three sum terms

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 3-15

Precedence of operations
• In the absence of parentheses, operations in a logical
expression are performed in the order
– NOT, AND, OR
• Thus in the expression AB+A’B’, the variables in the second
term are complemented before being ANDed together. That
term is then ORed with the ANDed combination of A and B (the
AB term)

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 3-16

8
Precedence of operations
• Draw the circuit
diagrams for the
following

– f(a,b,c)=(a’+b)c

– f(a,b,c)=a’b+c

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 3-17

You might also like