Introduction to Microprocessors and Digital Logic (ME262) Boolean Algebra and Logic Equations. Spring 2011

Similar documents
Chapter 2 Combinational Logic Circuits

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

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

Quine-McCluskey Algorithm

Module -7. Karnaugh Maps

Digital Fundamentals

5. Minimizing Circuits

Chapter 2 Combinational Logic Circuits

Combinational Circuits Digital Logic (Materials taken primarily from:

Digital Logic Lecture 7 Gate Level Minimization

Gate-Level Minimization. section instructor: Ufuk Çelikcan

Chapter 3 Simplification of Boolean functions

3.3 Hardware Karnaugh Maps

Chapter 2. Boolean Expressions:

Combinational Logic & Circuits

Summary. Boolean Addition

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

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

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

Combinational Logic Circuits

CSE 140: Logic Minimization Lecture

Combinational Logic Circuits

Switching Circuits & Logic Design

Simplification of Boolean Functions

Chapter 2 Combinational

3.4 QUINE MCCLUSKEY METHOD 73. f(a, B, C, D, E)¼AC ĒþB CD þ BCDþĀBD.

DKT 122/3 DIGITAL SYSTEM 1

Combinational Logic Circuits Part III -Theoretical Foundations

Computer Science. Unit-4: Introduction to Boolean Algebra

Gate Level Minimization Map Method

A B AB CD Objectives:

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

Gate-Level Minimization

Experiment 4 Boolean Functions Implementation

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

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

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

UNIT II. Circuit minimization

Identity. p ^ T p p _ F p. Idempotency. p _ p p p ^ p p. Associativity. (p _ q) _ r p _ (q _ r) (p ^ q) ^ r p ^ (q ^ r) Absorption

CprE 281: Digital Logic

Chapter 2 Part 5 Combinational Logic Circuits

Graduate Institute of Electronics Engineering, NTU. CH5 Karnaugh Maps. Lecturer: 吳安宇教授 Date:2006/10/20 ACCESS IC LAB

Date Performed: Marks Obtained: /10. Group Members (ID):. Experiment # 04. Boolean Expression Simplification and Implementation

Unit-IV Boolean Algebra

Boolean Function Simplification

Gate-Level Minimization

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

Logic Design: Part 2

DIGITAL CIRCUIT LOGIC UNIT 5: KARNAUGH MAPS (K-MAPS)

MUX using Tri-State Buffers. Chapter 2 - Part 2 1

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

Simplification of Boolean Functions

Contents. Chapter 3 Combinational Circuits Page 1 of 34

IT 201 Digital System Design Module II Notes

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

Review: Standard forms of expressions

Chapter 3. Gate-Level Minimization. Outlines

Boolean algebra. June 17, Howard Huang 1


1. Mark the correct statement(s)

Chapter 6. Logic Design Optimization Chapter 6

2.1 Binary Logic and Gates

CS470: Computer Architecture. AMD Quad Core

Introduction. The Quine-McCluskey Method Handout 5 January 24, CSEE E6861y Prof. Steven Nowick

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

ENGIN 112 Intro to Electrical and Computer Engineering


A graphical method of simplifying logic

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

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

Gate-Level Minimization

Boolean Logic CS.352.F12

2.6 BOOLEAN FUNCTIONS

User s Manual. Ronwaldo A. Collado Diosdado Y. Tejoso Jr. CMSC 130 Logistic Design and Digital Computer Circuits Second Semester, A. Y.

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

X Y Z F=X+Y+Z

CS8803: Advanced Digital Design for Embedded Hardware

Pearson Education Limited Edinburgh Gate Harlow Essex CM20 2JE England and Associated Companies throughout the world

4 KARNAUGH MAP MINIMIZATION

ELCT201: DIGITAL LOGIC DESIGN

I. This material refers to mathematical methods designed for facilitating calculations in matrix

Digital Logic Design (3)

ENGIN 112. Intro to Electrical and Computer Engineering

Gate Level Minimization

Lecture 7 Logic Simplification

CS6201 DIGITAL PRINCIPLES AND SYSTEM DESIGN Lecture Notes

B.Tech II Year I Semester (R13) Regular Examinations December 2014 DIGITAL LOGIC DESIGN

UNIT 2 BOOLEAN ALGEBRA

Ch. 5 : Boolean Algebra &

24 Nov Boolean Operations. Boolean Algebra. Boolean Functions and Expressions. Boolean Functions and Expressions

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

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY CS 2202 DIGITAL PRINCIPLES AND SYSTEM DESIGN

R.M.D. ENGINEERING COLLEGE R.S.M. Nagar, Kavaraipettai

Digital Circuits ECS 371

Final Examination (Open Katz, asynchronous & test notes only, Calculators OK, 3 hours)

ELCT201: DIGITAL LOGIC DESIGN

Chapter 3. Boolean Algebra and Digital Logic

Synthesis 1. 1 Figures in this chapter taken from S. H. Gerez, Algorithms for VLSI Design Automation, Wiley, Typeset by FoilTEX 1

Larger K-maps. So far we have only discussed 2 and 3-variable K-maps. We can now create a 4-variable map in the

Introduction to Boolean Algebra

Transcription:

Introduction to Microprocessors and Digital (ME262) lgebra and Spring 2

Outline. lgebra 2. 3. Karnaugh Maps () 4. Two-variable 5. 6. 7. 2

lgebra s of Simplifying equations are defined in terms of inary variables and algebra. Two-variable logic equation logic equation logic equation F(, Y) Y Y F(, Y, Z) Z YZ F(, Y, Z, W) W YZ WZ W, Y, Z, and W are binary variables defined in the set of {, } 3

lgebra s of Simplifying Y F F (,Y)? F(, Y, Z) YZ YZ YZ What is the most simplified F(, Y, Z) m2 m3 m6 m(2,3,6 ) form? 4

lgebra s of Simplifying lgebra Karnaugh Map (K-map) 5

6 Comparison between governing laws in real number algebra and algebra Law Real Number lgebra lgebra ssociative law ) ( ) ( ) ( ) ( z y z y z y z y ) ( ) ( ) ( ) ( Z Y Z Y YZ Z Y Commutative law y y y y Y Y Y Y Identity Elements. Inverse ) ( - Distributive law z y z y ) ( ) )( ( ) ( ) ( ) ( ) ( Z Y YZ Z Y Z Y Indempotence law Complement element lgebra Simplifying lgebra

lgebra lgebra Unity Theorem ( Y ) ( Y ) Y ( Y)( Y) Y bsorption Theorem ( Y ) ( Y) ( Y ) Y ( Y) Y Consensus Theorem Y Z YZ Y Z 7

lgebra lgebra Eample : Prove Unity, bsorption, and Consensus theorems. 8

lgebra lgebra Eample 2: Simplify the following equations.. CD D CD C CD 2. 9

lgebra graphical way to represent a logic equation. In order to do this, we use: - square to show the binary space 2- circle to show a binary variable 3- The area inside the circle to represent a true value and the area outside the circle to represent a false value.

lgebra For eample, the following figures show and.

lgebra Venn Diagram for 3 variables: C There was some struggle as to how to generalize too many sets. You can use as far as four sets by using ellipses: 2

lgebra Eample 3: What is the Venn Diagram of the following epression? YZ YZ YZ 3

lgebra Eample 4: What is the epression of the following Venn diagram? 4

lgebra Karnaugh Map (K-map) Karnaugh map (or K-map ) is a simple graphical method for simplifying logic equations. The method is useful for functions that contain up to four logical variables. For logic equations with more than four variables a tabular method is used. K-map was invented by Maurice Karnaugh in 953. 5

Two-variable K-map lgebra 6

Two-variable K-map lgebra z y w y y w 7

lgebra Two-variable K-map Eample 5: Mark the cell(s) associated with Z= in a two-variable K-map. Z= 8

Two-variable K-map lgebra F 2 2 3 Rules for construction of Two-variable : 3 - Circle adjacent s, horizontally or vertically but not diagonally. 2- The sum of minterms inside each circle is the common variable among the minterms 3- The logic equation is obtained by OR ing the results of step 2 and the minterms which are not included in any of the circles. 9

lgebra Eample 6: Use a K-map to simplify the following truth tables Z Two-variable K-map Z Z Z 2

K-map lgebra C C C C C C 2

lgebra C F 2 3 4 5 6 7 K-map C C C C C y C C 3 C 2 4 5 7 6 y C C 22

lgebra Eample 7: Simplify the following equation using K-map F K-map ( 6, Y, Z) m2 m3 m m(2,3,6 ) YZ Z Z Z YZ YZ YZ Y YZ Y YZ Y F(, Y, Z) Y YZ 23

lgebra K-map Rules for construction of : - Circle as many adjacent s as possible in groups of (2,4,8), horizontally or vertically but not diagonally. 2- The sum of minterms inside each circle is the common variable among the minterms 3- The logic equation is obtained by OR ing the results of step 2 and the minterms which are not included in any of the circles. 24

lgebra K-map Hints: s in the same row in the first and last columns are adjacent. For eample, consider the following K-map YZ Z Z Z Y Y F(, Y, Z) Z 25

K-map lgebra C D F 2 3 4 5 6 7 8 9 CD D D D 3 2 4 5 7 6 2 3 5 4 8 9 2 3 C C 4 5 26

lgebra K-map Rules for construction of : - Circle as many adjacent s as possible in groups of (2,4,8,6), horizontally or vertically but not diagonally. 2- The sum of minterms inside each circle is the common variable among the minterms 3- The logic equation is obtained by OR ing the results of step 2 and the minterms which are not included in any of the circles. 27

lgebra Hints: s in in the top and bottom row in the same column are adjacent, as leftmost and rightmost columns. For eample, consider the following K-map W YZ YZ Z Z Z W W W WYZ F( W, K-map Y, Y, Z) Y WZ Z WYZ WYZ WYZ WYZ WZ WYZ WYZ 28

lgebra Eample: K-map WZ YZ Z Z Z W W W Y Y F( W, W Z, Y, Z) WZ WZ Z 29

lgebra K-map Eample 8: (p3.) Simplify the following logic equations by K- maps: F( W,, Y, Z) m(,3,5,7,8,9,,2,3) m(,,2,3,5,7,8,5) WYZ m(,,4,5,7,,,5) m(,,2,3,4,5,6,7,8,9,,,2,3,4,5) 3

lgebra (Quine-McCluskey ) In order to apply tabular method, the function must be given as a sum of minterms. Consider the following two minterms, which differ in eactly one variable. They can be combined as CD CD C - the dash indicates a missing variable Now, consider the two following minterms: CD CD will not combine will not combine This concept can be epanded to sum of minterms by sorting the minterms into groups according to the number of s in each term. For eample: 3

Group Group Group 2 Group 3 F( W,, Y, Z) m(,,2,5,6,7,8,9,,4) Column Column 2 Column 3 2 8 5 6 9 7 4, -,,8,9 --,2 -,2,8, --,8 -,8,,9 --,5 -,9 -,8,2, -- 2,6-2,6,,4 -- 2, - 2,,6,4 -- 8,9-8, - 5,7-6,7-6,4 -,4-32

F( W,, Y, Z) WYZ WZ WY Y Z YZ Note that this equation has 6 implicants. We can use the following table to simplify the equation further. Implicant Covered Minterms -,5-5,7-6,7 --,,8,9 --,2,8, -- 2,6,,4 Minterms 2 5 6 7 8 9 4 Three implicants can be ignored since the minterms used in them are also used in other implicants. This can be proven using Consensus theorem, which eliminates the redundant terms. F( W,, Y, Z) WZ Y YZ 33

lgebra Eample 9: (P3.3) For the following function, find all the essential implicants using the tabular method: F( W,, Y, Z) m(,4,5,9,,3) WYZ Study: Eamples of Chapter 3 of the course package Solve: P3.,3.4, 3.5, 3.9, 3., 3.5 34