Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

Similar documents
Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

Boolean Analysis of Logic Circuits

EEE130 Digital Electronics I Lecture #4_1

Philadelphia University Faculty of Information Technology Department of Computer Science. Computer Logic Design. By Dareen Hamoudeh.

Lecture 5. Chapter 2: Sections 4-7

IT 201 Digital System Design Module II Notes

2.6 BOOLEAN FUNCTIONS

Combinational Logic Circuits

Experiment 3: Logic Simplification

Standard Forms of Expression. Minterms and Maxterms

Menu. Algebraic Simplification - Boolean Algebra EEL3701 EEL3701. MSOP, MPOS, Simplification

Chapter 2. Boolean Expressions:

Summary. Boolean Addition

Points Addressed in this Lecture. Standard form of Boolean Expressions. Lecture 4: Logic Simplication & Karnaugh Map

CHAPTER-2 STRUCTURE OF BOOLEAN FUNCTION USING GATES, K-Map and Quine-McCluskey

DKT 122/3 DIGITAL SYSTEM 1

Announcements. Chapter 2 - Part 1 1

Digital Logic Lecture 7 Gate Level Minimization

To write Boolean functions in their standard Min and Max terms format. To simplify Boolean expressions using Karnaugh Map.

MODULE 5 - COMBINATIONAL LOGIC

LSN 4 Boolean Algebra & Logic Simplification. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology

Assignment (3-6) Boolean Algebra and Logic Simplification - General Questions

ELCT201: DIGITAL LOGIC DESIGN

ENGIN 112. Intro to Electrical and Computer Engineering

Chapter 2 Combinational Logic Circuits

SYNERGY INSTITUTE OF ENGINEERING & TECHNOLOGY,DHENKANAL LECTURE NOTES ON DIGITAL ELECTRONICS CIRCUIT(SUBJECT CODE:PCEC4202)

Lecture 4: Implementation AND, OR, NOT Gates and Complement

ELCT201: DIGITAL LOGIC DESIGN

Lecture 7 Logic Simplification

Digital Logic Design (CEN-120) (3+1)

Chapter 2 Boolean algebra and Logic Gates


Specifying logic functions

Boolean algebra. June 17, Howard Huang 1

1. Mark the correct statement(s)

Module -7. Karnaugh Maps

Lecture (05) Boolean Algebra and Logic Gates

Experiment 4 Boolean Functions Implementation

Ch. 5 : Boolean Algebra &

Spring 2010 CPE231 Digital Logic Section 1 Quiz 1-A. Convert the following numbers from the given base to the other three bases listed in the table:

Gate Level Minimization Map Method

A B AB CD Objectives:

Simplification of Boolean Functions

Combinational Logic Circuits Part III -Theoretical Foundations

2/8/2017. SOP Form Gives Good Performance. ECE 120: Introduction to Computing. K-Maps Can Identify Single-Gate Functions

Chap-2 Boolean Algebra

Unit-IV Boolean Algebra

Logic and Computer Design Fundamentals. Chapter 2 Combinational Logic Circuits. Part 3 Additional Gates and Circuits

EECS150 Homework 2 Solutions Fall ) CLD2 problem 2.2. Page 1 of 15

Digital Logic Design (3)

QUESTION BANK FOR TEST

Combinational Logic Circuits

Designing Computer Systems Boolean Algebra

Digital Circuits ECS 371

Review: Standard forms of expressions

X Y Z F=X+Y+Z

Simplification of Boolean Functions

BOOLEAN ALGEBRA. Logic circuit: 1. From logic circuit to Boolean expression. Derive the Boolean expression for the following circuits.

CMPE223/CMSE222 Digital Logic

Binary logic. Dr.Abu-Arqoub

Chapter 2 Combinational

Chapter 2: Combinational Systems

CprE 281: Digital Logic

Chapter 6. Logic Design Optimization Chapter 6

2.1 Binary Logic and Gates

Gate-Level Minimization. BME208 Logic Circuits Yalçın İŞLER

Chapter 3 Simplification of Boolean functions

Midterm Exam Review. CS 2420 :: Fall 2016 Molly O'Neil

S1 Teknik Telekomunikasi Fakultas Teknik Elektro FEH2H3 2016/2017

Lecture (04) Boolean Algebra and Logic Gates

Lecture (04) Boolean Algebra and Logic Gates By: Dr. Ahmed ElShafee

ECE380 Digital Logic

Gate Level Minimization

Circuit analysis summary

Literal Cost F = BD + A B C + A C D F = BD + A B C + A BD + AB C F = (A + B)(A + D)(B + C + D )( B + C + D) L = 10

UNIT-4 BOOLEAN LOGIC. NOT Operator Operates on single variable. It gives the complement value of variable.

Boolean Algebra and Logic Gates

(Refer Slide Time 6:48)

Gate-Level Minimization

Chapter 2 Combinational Logic Circuits

Software Engineering 2DA4. Slides 2: Introduction to Logic Circuits

數位系統 Digital Systems 朝陽科技大學資工系. Speaker: Fuw-Yi Yang 楊伏夷. 伏夷非征番, 道德經察政章 (Chapter 58) 伏者潛藏也道紀章 (Chapter 14) 道無形象, 視之不可見者曰夷

Chapter 3. Gate-Level Minimization. Outlines

Austin Herring Recitation 002 ECE 200 Project December 4, 2013

4 KARNAUGH MAP MINIMIZATION

Combinational Circuits Digital Logic (Materials taken primarily from:

Karnaugh Map (K-Map) Karnaugh Map. Karnaugh Map Examples. Ch. 2.4 Ch. 2.5 Simplification using K-map

Chapter 2. Boolean Algebra and Logic Gates

A graphical method of simplifying logic

Chapter 3. Boolean Algebra and Digital Logic

Code No: 07A3EC03 Set No. 1

Definitions. 03 Logic networks Boolean algebra. Boolean set: B 0,

Review. EECS Components and Design Techniques for Digital Systems. Lec 05 Boolean Logic 9/4-04. Seq. Circuit Behavior. Outline.

Digital Fundamentals

UNIT 2 BOOLEAN ALGEBRA

2008 The McGraw-Hill Companies, Inc. All rights reserved.

Computer Organization

Chapter 2 Part 4 Combinational Logic Circuits

CS8803: Advanced Digital Design for Embedded Hardware

Combinational Logic & Circuits

Transcription:

Logic Design First Stage Lecture No.6 Boolean Algebra Bawar Abid Abdalla Assistant Lecturer Software Engineering Department Koya University

Outlines Boolean Operations Laws of Boolean Algebra Rules of Boolean Algebra DeMorgan s Theorem Boolean Analysis of Logic Circuites

BOOLEAN ANALYSIS OF LOGIC 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 combinations of input values. Boolean Expression for a Logic Circuit A logic circuit can be described by a Boolean equation. To derive the Boolean expression for a given logic circuit, begin at the leftmost inputs and work toward the final output, writing the expression for each gate. For the example circuit in Figure below (next slide), the Boolean expression is determined as follows:

BOOLEAN ANALYSIS OF LOGIC Gates 1. The expression for the left-most AND gate with inputs C and D is CD. 2. The output of the left-most AND gate is one of the inputs to the OR gate and B is the other input. Therefore, the expression for the OR gate is B + CD. 3. The output of the OR gate is one of the inputs to the right-most AND gate and A is the other input. Therefore, the expression for this AND gate is A(B + CD), which is the final output expression for the entire circuit.

Constructing a Truth Table for a Logic Circuit Once the Boolean expression for a given logic circuit has been determined, a truth table that shows the output for all possible values of the input variables can be developed. The procedure requires that you evaluate the Boolean expression for all possible combinations of values for the input variables. In the case of the circuit in Figure above (previous slide), there are four input variables (A, B, C, and D) and therefore sixteen (2^4 = 16) combinations of values are possible.

Evaluating the Expression

Putting the Results in Truth Table format The first step is to list the sixteen input variable combinations of 1s and 0s in a binary sequence as shown in Table below (Next Slide). Next, place a 1 in the output column for each combination of input variables that was determined in the evaluation. Finally, place a 0 in the output column for all other combinations of input variables. These results are shown in the truth table in next slide.

Truth Table

SIMPLIFICATION USING BOOLEAN ALGEBRA SIMPLIFICATION USING BOOLEAN ALGEBRA Many times in the application of Boolean algebra, you have to reduce a particular expression to its simplest form or change its form to a more convenient one to implement the expression most efficiently. The approach taken in this section is to use the basic laws, rules, and theorems of Boolean algebra to manipulate and simplify an expression.

SIMPLIFICATION USING BOOLEAN ALGEBRA

SIMPLIFICATION USING BOOLEAN ALGEBRA Part (a) shows that five gates are required to implement the expression in its original form; however, only two gates are needed for the simplified expression. shown in part (b).

Example : SIMPLIFICATION USING BOOLEAN ALGEBRA

SIMPLIFICATION USING BOOLEAN ALGEBRA

Example: SIMPLIFICATION USING BOOLEAN ALGEBRA

SIMPLIFICATION USING BOOLEAN ALGEBRA

Example: SIMPLIFICATION USING BOOLEAN ALGEBRA

SIMPLIFICATION USING BOOLEAN ALGEBRA

STANDARD FORMS OF BOOLEAN EXPRESSIONS All Boolean expressions, regardless of their form, can be converted into either of two standard forms: the sum-of-products form or the product-of-sums form. Standardization makes the evaluation, simplification, and implementation of Boolean expressions much more systematic and easier.

Sum-of-Products (SOP) The Sum-of-Products (SOP) Form A product term is consisting of the product (Boolean multiplication) of literals (variables or their complements). When two or more product terms are summed by Boolean addition. the resulting expression is a sum-of-products (SOP). Some examples are

Domain of a Boolean Expression

AND/OR Implementation of an SOP Expression AND/OR Implementation of an SOP Expression Implementing an SOP expression simply requires ORing the outputs of two or more AND gates. A product term is produced by an AND operation, and the sum (addition) of two or more product terms is produced by an OR operation. Therefore, an SOP expression can be implemented by AND-OR logic in which the outputs of a number (equal to the number of product terms in the expression) of AND gates connect to the inputs of an OR gate,

Sum-of-Products (SOP) Conversion of a General Expression to SOP Form Any logic expression can be changed into SOP form by applying Boolean algebra techniques. For example. the expression A(B + CD) can be converted to SOP form by applying the distributive law: A(B + CD) = AB + ACD Example:

Sum-of-Products (SOP)

Sum-of-Products (SOP) Step 1. Multiply each nonstandard product term by a term made up of the sum of a missing variable and its complement. This results in two product terms. As you know, you can multiply anything by 1 without changing its value. Step 2. Repeat Step 1 until all resulting product terms contain all variables in the domain in either complemented or uncomplemented form.

Sum-of-Products (SOP)

Sum-of-Products (SOP) Binary Representation of a Standard Product Term A standard product term is equal to 1 for only one combination of variable values. For example, the product term is equal to I when A = I, B = 0, C = I, D = 0, as shown below, and is 0 for all other combinations of values for the variables.

Example: Sum-of-Products (SOP)

The Product-of-Sums (POS) The Product-of-Sums (POS) Form A sum term was defined before as a term consisting of the sum (Boolean addition) of literals (variables or their complements). When two or more sum terms are multiplied, the resulting expression is a product-of-sums (POS). Some examples are

The Product-of-Sums (POS)

The Product-of-Sums (POS) The Standard POS Form So far, you have seen POS expressions in which some of the sum terms do not contain all of the variables in the domain of the expression. For example. the expression has a domain made up of the variables A, B, C, and D. Notice that the complete set of variables in the domain is not represented in the first two terms of the expression; A standard POS expression is one in which all the variables in the domain appear in each sum term in the expression. For example, is a standard POS expression.

The Product-of-Sums (POS)

Converting SOP Expressions to Truth Table Format

Converting POS Expressions to Truth Table Format

Converting POS Expressions to Truth Table Format

Standard Forms Standard Forms rely on two type of terms Product Terms Terms that are ANDed together XYZ (A+B)(C+D)(A+D) Sum Terms Terms that are ORed together X+Y+Z XYZ + VX

Minterm Each row of a truth table can be associated with a minterm, which is a product (AND) of all variables in the function, in direct or complemented form. A minterm has the property that it is equal to 1 on exactly one row of the truth table. Here is the three-variable truth table and the corresponding minterms (Next Slide):

Minterm

Minterm The subscript on the minterm is the number of the row on which it equals 1. The row numbers are obtained by reading the values of the variables on that row as a binary number Minterms provide a way to represent any boolean function algebraically, once its truth table is specified. The function is given by the sum (OR) of those minterms corresponding to rows where the function is 1.

Minterm Example: suppose a function F is defined by the following truth table: Since F=1 on rows 1, 2, 4, and 7, we obtain

Maxterm Each row of a truth table is also associated with a maxterm, which is a sum (OR) of all the variables in the function, in direct or complemented form. A maxterm has the property that it is equal to 0 on exactly one row of the truth table. Here is the three-variable truth table and the corresponding maxterms(next Slide):

Maxterm

Maxterm The function is given by the product (AND) of those maxterms corresponding to rows where the function is 0. By the maxterm property, the AND will contain a term equal to 0 (making the function 0) on exactly those rows where the function is supposed to be 0.

Maxterm Example: for the same function as previously, we observe that it is 0 on rows 0, 3, 5, and 6. So

Boolean Algebra Thank You!