11.1 Boolean Functions. Boolean Algebra An algebra is a set with one or more operations defined on it. A boolean algebra has three main operations, and,

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

Presented by: Ms. Maria Estrellita D. Hechanova, ECE
Minimization of Circuits
Types of Logic Circuits
Gate-Level Minimization
ECE 3110: Introduction to Digital Systems Simplifying Sum of Products using Karnaugh Maps.
Boolean Algebra and Combinational Logic
ECE C03 Lecture 21 Lecture 2 Two Level Minimization Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Logic Gate Level Part 2. Constructing Boolean expression from truth table First method: write nonparenthesized OR of ANDs Each AND is a 1 in the result.
EECC341 - Shaaban #1 Lec # 5 Winter Switching Algebra: Principle of Duality Any theorem or identity in switching algebra remains true if.
1 Section 10.1 Boolean Functions. 2 Computers & Boolean Algebra Circuits in computers have inputs whose values are either 0 or 1 Mathematician George.
Example: Given a 4-bit input combination N=N 3 N 2 N 1 N 0, this function produces a 1 output for N=1,2,3,5,7,11,13, and 0 otherwise.  According to the.
Logic gate level Part 3: minimizing circuits. Improving circuit efficiency Efficiency of combinatorial circuit depends on number & arrangement of its.
Propositional Calculus Math Foundations of Computer Science.
Computer Programming Skills Revision Prepared by: Ghader Kurdi.
Section Section Summary Introduction to Boolean Algebra Boolean Expressions and Boolean Functions Identities of Boolean Algebra Duality The Abstract.
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
1 Fundamentals of Computer Science Propositional Logic (Boolean Algebra)
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Logic Design A Review. Binary numbers Binary numbers to decimal  Binary 2 decimal  Decimal 2 binary.
Boolean Algebra and Digital Circuits
1 Chapter 5 Karnaugh Maps Mei Yang ECG Logic Design 1.
CS1502 Formal Methods in Computer Science
1 Digital Logic Design Week 5 Simplifying logic expressions.
Discrete Mathematics and Its Applications.  The English mathematician George Boole ( ) sought to give symbolic form to Aristotle's system of.
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
Boolean Algebra 1854, George Boole created a two valued algebraic system which is now called Boolean algebra. 1938, Claude Shannon adapted Boolean algebra.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Chapter 3: Digital Logic Dr Mohamed Menacer Taibah University
Chapter 3 Gate-Level Minimization
ECE 2110: Introduction to Digital Systems PoS minimization Don’t care conditions.
Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
UM EECS 270 Spring 2011 – Taken from Dr.Karem Sakallah Logic Synthesis: From Specs to Circuits Implementation Styles –Random –Regular Optimization Criteria.
Circuit Minimization. It is often uneconomical to realize a logic directly from the first logic expression that pops into your head. Canonical sum and.
PRASAD A. PAWASKAR SPN. NO DETE 2 SEMESTER lec1-11.
Boolean Algebra Introduction Logical arguments are valid (or not) by virtue of their form, not content Example All men are mortal(premise 1) Harry is a.
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
LOGIC GATES & BOOLEAN ALGEBRA
Computer Arithmetic, K-maps Prof. Sin-Min Lee Department of Computer Science.
Discrete Mathematics CS 2610 September Equal Boolean Functions Two Boolean functions F and G of degree n are equal iff for all (x 1,..x n )  B.
CHAPTER 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
Logic Circuits Lecture 3 By Amr Al-Awamry. Basic Definitions Binary Operators  AND z = x y = x yz=1 if x=1 AND y=1  OR z = x + y z=1 if x=1 OR y=1 
ECE 3110: Introduction to Digital Systems Chapter #4 Review.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 9 Boolean Algebras and Combinatorial Circuits.
DKT 122/3 - DIGITAL SYSTEM I Chapter 4A:Boolean Algebra and Logic Simplification) Mohd ridzuan mohd nor
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
Lecture 3 Boolean algebra Topics Error Correcting Codes Boolean algebra Combinational circuits Algebraic analysis, Truth tables, Logic Diagrams Sums-of-Products.
K-maps and Decoders Prof. Sin-Min Lee Department of Computer Science.
Mu.com.lec 9. Overview Gates, latches, memories and other logic components are used to design computer systems and their subsystems Good understanding.
Chapter 12. Chapter Summary Boolean Functions Representing Boolean Functions Logic Gates Minimization of Circuits (not currently included in overheads)
Chapter 11 (Part 1): Boolean Algebra
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
ECE 2110: Introduction to Digital Systems
CS 105 Digital Logic Design
ECE 3110: Introduction to Digital Systems
Princess Sumaya University
CHAPTER 3 SETS AND BOOLEAN ALGEBRA
Jeremy R. Johnson Wed. Sept. 29, 1999
Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan
CSE 311 Foundations of Computing I
Propositional Calculus: Boolean Algebra and Simplification
EEL 3705 / 3705L Digital Logic Design
Discrete Mathematics CS 2610
CSE140 HW2 Preparation Xinyuan Wang 04/20/2018.
CSE 370 – Winter Combinational Logic - 1
Chapter 2 Introduction to Logic Circuits
Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
Presentation transcript:

11.1 Boolean Functions

Boolean Algebra An algebra is a set with one or more operations defined on it. A boolean algebra has three main operations, and, or, and not, (typically operating on the set {0,1}). Rules of precedence for Boolean operators: PCoPS- parentheses, complements, products, sums OR+a+b AND∙ab NOTcomplement

Examples:

Laws of Boolean Algebra Double Complement Idempotent Identity Domination

More Laws of Boolean Algebra Commutative Associative Distributive

Laws of Boolean Algebra Concluded DeMorgan’s Laws Absorption Laws Unit Property Zero Property

“Proving” the Laws of Boolean Algebra If the underlying set is just {0,1}, we can prove these laws with truth tables, just as we did with propositional logic.

Duals and the Duality Principle The dual of a boolean expression is obtained by replacing all sums by products, all products by sums, all 0’s by 1’s, and all 1’s by 0’s. Example: The duality principle says that if an equation in a boolean algebra is an identity, i.e. always true no matter what the values of the variables, then the equation obtained by replacing both sides by their duals is also an identity.

Boolean Functions of Degree n on the Boolean algebra {0, 1}

Example: Boolean Function Table

Lattices and Boolean Algebra A lattice is a partially ordered set in which every pair of elements has both a least upper bound (lub) and a greatest lower bound (glb). The supremum a  b is defined as lub(a,b) and the infimum a  b is defined as glb(a,b) A lattice is said to be distributive if each of  and  distributes over the other. For a distributive lattice to be a Boolean algebra, there must be (a) a largest element 1, (b) a least element 0, and (c) for each element x a complement with the property that

11.2 Representing Boolean Functions ( n-ary functions on the set {0, 1} )

Disjunctive Normal Form Pick out all the ones in the “function table” column corresponding to the function value. Translate each to an “and” of n literals (a literal is a Boolean variable of the form x or ) Each such product is called a “minterm”. The desired function is the sum of these minterms, and is called the sum-of-products expansion or disjunctive normal form of the function.

Example

Another Example Find the DNF expansion of

Laws of Boolean Algebra Concluded DeMorgan’s Laws Absorption Laws Unit Property Zero Property

Functional Completeness A set of operators on an algebra is said to be functionally complete if any function of any degree on that algebra can be expressed in terms of those operators The set is functionally complete in any boolean algebra. But since, so is Also, since, is also functionally complete

The NAND Operation

The NOR Operation

11.3 Logic Gates Boolean algebra is the algebra of circuits. The elementary operations of the algebra correspond to circuit elements called gates.

Basic Types of Gates

Combinations of gates Branching and multiple inputs

Example Three switches x, y, and z, controlling a light xyzF(x,y,z)

Half-Adder Circuit

Full Adder

11.4 Minimization of Circuits Minimizing a circuit is minimizing the number of gates necessary to achieve the required outputs Equivalent to minimizing the Boolean function, i.e. to finding the least number of Boolean operations needed to compute the function Recall that any such function can be expressed as a sum of minterms –Note that the number of possible minterms is exponential in the number n of variables. –Note also that the number of functions is exponential in the number of minterms.

Karnaugh Maps for Two Variables Variables x and y Label rows with x and x, columns with y and y

Another Example

Karnaugh Maps (K-Maps) for Three Variables Variables x, y, and z Use x and x as row labels Use all possible products of y and z literals, arranged in a Gray code, as column labels The geometric picture is that of a band, since the last and first cells in each row are to be considered adjacent

Examples

Implicants, Prime Implicants, and Essential Prime Implicants

Example

K-Maps for Four Variables Variables w, x, y, and z Use all possible products of w and x literals, arranged in a Gray code, as row labels Use all possible products of y and z literals, arranged in a Gray code, as row labels Geometric picture is that of a torus

Example

Another Example

A light controlled by 4 switches:

The Quine-McCluskey Method Map each min-term into a bit string. E.g. map wxyz to Generate implicants as bit strings with wild card characters, such as 0–01 Prime implicants are those which are not generalized by any other implicant Essential prime implicants are those which generalize a min-term not generalized by any other implicant

Example wxyz, wxyz, wxyz, wxyz, wxyz, wxyz, wxyz

Check with Karnaugh Map

Link