MODULE 5 - COMBINATIONAL LOGIC

Similar documents
Experiment 4 Boolean Functions Implementation

Chapter 2. Boolean Expressions:

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

Chapter 2 Combinational Logic Circuits

Ch. 5 : Boolean Algebra &

IT 201 Digital System Design Module II Notes

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

Boolean Analysis of Logic Circuits

Summary. Boolean Addition

Chapter 2 Combinational

4 KARNAUGH MAP MINIMIZATION

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

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

DKT 122/3 DIGITAL SYSTEM 1

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

Lecture 5. Chapter 2: Sections 4-7

Combinational Logic Circuits

1. Mark the correct statement(s)

ELCT201: DIGITAL LOGIC DESIGN

(Refer Slide Time 6:48)

ELCT201: DIGITAL LOGIC DESIGN

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

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

Digital Logic Design (3)

Simplification of Boolean Functions

Announcements. Chapter 2 - Part 1 1


Chapter 2 Boolean algebra and Logic Gates

Chapter 3. Boolean Algebra and Digital Logic

Experiment 3: Logic Simplification

Combinational Logic Circuits Part III -Theoretical Foundations

2.6 BOOLEAN FUNCTIONS

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

Chapter Three. Digital Components

Gate Level Minimization Map Method

Section 001. Read this before starting!

Standard Forms of Expression. Minterms and Maxterms

Combinational Logic Circuits

Chapter 3. Gate-Level Minimization. Outlines

Slide Set 5. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

Module -7. Karnaugh Maps

Combinational Circuits Digital Logic (Materials taken primarily from:

A graphical method of simplifying logic

Review: Standard forms of expressions

EEE130 Digital Electronics I Lecture #4_1

Chapter 2 Combinational Logic Circuits

Lecture (03) Binary Codes Registers and Logic Gates

Specifying logic functions

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

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

At this point in our study of digital circuits, we have two methods for representing combinational logic: schematics and truth tables.

Incompletely Specified Functions with Don t Cares 2-Level Transformation Review Boolean Cube Karnaugh-Map Representation and Methods Examples

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

Chapter 2: Combinational Systems

Boolean algebra. June 17, Howard Huang 1

UNCA CSCI 255 Exam 1 Spring February, This is a closed book and closed notes exam. It is to be turned in by 1:45 PM.

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

Digital Fundamentals

QUESTION BANK FOR TEST

1. Fill in the entries in the truth table below to specify the logic function described by the expression, AB AC A B C Z

Combinational Devices and Boolean Algebra

LAB #1 BASIC DIGITAL CIRCUIT

S1 Teknik Telekomunikasi Fakultas Teknik Elektro FEH2H3 2016/2017

Logic Gates and Boolean Algebra ENT263

Unit-IV Boolean Algebra

Circuit analysis summary

Read this before starting!

Lecture (05) Boolean Algebra and Logic Gates

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

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

Objectives: 1. Design procedure. 2. Fundamental circuits. 1. Design procedure

ENGIN 112 Intro to Electrical and Computer Engineering

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:

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

9/10/2016. The Dual Form Swaps 0/1 and AND/OR. ECE 120: Introduction to Computing. Every Boolean Expression Has a Dual Form

CprE 281: Digital Logic

Section 001. Read this before starting! You may use one sheet of scrap paper that you will turn in with your test.

LECTURE 4. Logic Design

DIGITAL CIRCUIT LOGIC UNIT 7: MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES

Binary logic. Dr.Abu-Arqoub

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

ENGIN 112. Intro to Electrical and Computer Engineering

Learning Objectives: Topic Karnaugh Maps. At the end of this topic you will be able to;

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

Combinational Logic & Circuits

MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR

Combinational Logic Worksheet

UNIT 2 BOOLEAN ALGEBRA

Dr. Chuck Cartledge. 10 June 2015

Chap-2 Boolean Algebra

Digital Techniques. Lecture 1. 1 st Class

CS8803: Advanced Digital Design for Embedded Hardware

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

Breakup Algorithm for Switching Circuit Simplifications

Lecture 10: Floating Point, Digital Design

Henry Lin, Department of Electrical and Computer Engineering, California State University, Bakersfield Lecture 7 (Digital Logic) July 24 th, 2012

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

ENGINEERS ACADEMY. 7. Given Boolean theorem. (a) A B A C B C A B A C. (b) AB AC BC AB BC. (c) AB AC BC A B A C B C.

(Refer Slide Time 3:31)

Transcription:

Introduction to Digital Electronics Module 5: Combinational Logic 1 MODULE 5 - COMBINATIONAL LOGIC OVERVIEW: For any given combination of input binary bits or variables, the logic will have a specific output. A truth table is used to show the input variables and all possible combinations of ones and zeros that can occur as a result of the possible input combinations. For each combination of input variable ones and zeros that results in a "1" output, a Boolean algebra expression of that combination is generated. Each of these terms are logically Ored together so that the term will produce a "1" output. CONCEPT 5.1: AND, OR, INVERT Combinational Logic For AND-OR logic, each individual term in a truth table that generates a "1" output is ANDed together. Inverters, or NOT gates, are used to turn each "0" input variable into a "1", so the final group can be input into an AND gate in order to generate the desired "1" output. As an example, consider a 3 variable truth table with a "1" output at the input variable location 010. The two zeros on either end must be converted to "1"s before this number can be input into an AND gate, resulting in a "1" output. If the input variables are labeled A, B & C, and the output X; the resulting Boolean Algebra expression would be: X = A B C The lines over the top of the A and C terms indicate that they must go through an Inverter, or NOT gate, before X will be true, or "1". If other terms exist where X will output a "1", they will be described in the same way, and logically ORed together to produce the final logic design. Example 5.1: A Three Variable Truth Table & Resulting Logic Design

Introduction to Digital Electronics Module 5: Combinational Logic 2 For the resulting three combinations of input variables that result in a "1" output, an AND OR digital logic circuit can be designed that will produce a "1" output if any of the three combinations come up: CONCEPT 5.2: The Result of Increasing the Number of Variables If you have three input variables, you will have eight possible combinations. Four input variables will give you sixteen possible combinations; five will yield thirty two, and so on. Increasing the number of variables increases the number of possible outcomes, but it also increases the complexity of the design. When designing using classical logic gates, you will want to make your design as simple as possible. You will apply some of the simplification techniques from Module 4 and do everything possible to reduce the number of gates. If a design must use more than three or four input variables, the designer must consider using computer aided design tools and programmable logic devices to realize the design. We will study these devices and design techniques in some depth in Module 7.

Introduction to Digital Electronics Module 5: Combinational Logic 3 CONCEPT 5.3: Simplifying Three and Four Variable Designs Three and four variable designs can be simplified using three and four variable K maps. Three and four variable truth tables can be simplified by mapping the truth table outputs onto a K map, and simplifying the Boolean algebra by grouping adjacent states, and eliminating redundant variables. The techniques are described in Module 4, but will be reviewed in this section. Consider the design from Concept 5.1. The resulting digital design required three, 3 input AND gates and two, 2 input OR gates. This expression can be simplified down to two, 2 input AND gates, and a single 2 input OR gate. The resulting logic will generate the same truth table outputs as the more complex version of the design, so it represents a significant savings in both work and the number of required gates.

Introduction to Digital Electronics Module 5: Combinational Logic 4 For a four variable design, consider the truth table below: To implement this design would require eight 4 input AND gates, and seven 2 input OR gates. If this were to be burned into a programmable logic array, there would be no reason to simplify unless the array had fewer gates than needed.

Introduction to Digital Electronics Module 5: Combinational Logic 5 CONCEPT 5.4: Truth Table and K Map Circuit Design Outline When designing a digital circuit that must be simplified, and which contains six variables or less, a truth table and a K map are powerful tools. The truth table catalogs all of the combinations of input variables with all allowed outcomes. For each 1 output, the corresponding combination of input variables becomes one term of the Boolean algebra expression that defines the design. The 1 and 0 outputs are mapped onto a K map corresponding to their cell locations or input binary combinations. By grouping these adjacent 1 s in groups of 2, 4, 8, or 16, the redundant variables cancel, leaving only the simplified combinations, which will produce the same output as the truth table. 1. On the right side of the truth table, the outputs are listed and receive a "1" for the combinations where they are active or true, and a "0" for the combinations where they are off, inactive or false. This allows you to specify when a machine turns "on" or "off", and for what combinations of input variables. 2. After you have specified the states of the output variables as a function of the input variable combinations, you can extract the active or control terms, or combinations of input states from your truth table. 3. Extract the Boolean algebra expression of the input variables for the corresponding "1" outputs, or true states. Convert these terms into their equivalent combinational logic circuits of either AND OR logic, NAND logic or NOR logic gates. All three different types of logic circuits can be used to produce the same results. The combinational logic circuit designed directly from the truth table may not be the simplest design, but the truth table is always the starting point for digital design. 4. Simplify the circuit by mapping the 1 s in a K map and canceling out redundant terms. The "1"s map directly into the K map cells that correspond to that combination of input variables.

Introduction to Digital Electronics Module 5: Combinational Logic 6 CONCEPT 5.5: K Mapping Boolean Algebra Expressions Directly A K map can be used to directly simplify a complex Boolean algebra expression, and to convert it directly to SOP form. The simple rule is to put a 1 on the K map everywhere a term would be true. After each term of the expression has been mapped, the 1 s can be simplified in exactly the same way as the truth table entries. Prior to mapping the Boolean algebra expressions directly onto a K map, it may be necessary to use Boolean algebra and/or DeMorgan s Theorem to reorganized the expression and to isolate terms into an SOP form. After you have manipulated the expression and changed it into a series of terms separated by + (OR) signs, you are ready to map the expression. Once the expression has been mapped onto the K map, it can be simplified by grouping the 1 s and canceling out the redundant terms.

Introduction to Digital Electronics Module 5: Combinational Logic 7 CONCEPT 5.6: Analyzing Combinational Logic Circuits A combinational logic circuit can be analyzed and tested for the simplest form, using a K map. Starting with the input variables, let each gate operate on the variables. At the output of each gate, write the resulting output expression. This expression is put into the next gate, and so on. The best way to understand combinational logic circuit analysis is to do it. We will analyze the following simple circuit: To know if this is the simplest design, the next step is to map the unsimplified expression, and use the K map to simplify it.

Introduction to Digital Electronics Module 5: Combinational Logic 8 CONCEPT 5.7: Shorthand SOP and POS Form The shorthand form of SOP and POS equations require only the cell number to be presented, and not the individual terms as in a Boolean algebra expression. As an example, consider the 4 variable truth table shown below. The truth table and the Boolean algebra form are both shown: Notice that the truth table has positive results at cells 1,3,4,5,7,10,11, and 13. The shorthand uses the Greek letter capital sigma (S), to indicate SOP, and the final shorthand form is: X(ABCD) = S(1,3,4,5,7,10,11,13) The POS form of the equation is derived by grouping those cells that are 0"s. They are 0,2,6,8,9,14, and 15. The POS form of the equation uses the capital Greek letter pi (P). The resulting POS shorthand equation is: X(A B C D) = P(0,2,6,8,9,14,15)