# Simplifying Logic Circuits with Karnaugh Maps

 To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video
Save this PDF as:

Size: px
Start display at page:

Download "Simplifying Logic Circuits with Karnaugh Maps"

## Transcription

1 Simplifying Logic Circuits with Karnaugh Maps The circuit at the top right is the logic equivalent of the Boolean expression: f = abc + abc + abc Now, as we have seen, this expression can be simplified (reduced to fewer terms) from its original form, using the Boolean identities as shown at right. The circuit may be simplified as follows: f = abc + abc + abc f = abc + abc + abc + abc (since x=x+x) f = ( abc + abc) + ( abc + abc ) f = ac( b + b) + ab( c + c ) or, f = ac + ab a b c a b c f f

2 Simplifying Logic Circuits (2) Since you have now had some experience with simplification of Boolean expressions, this example is (hopefully) familiar and understandable. However, for more complex Boolean expressions, the identity/substitution approach can be VERY cumbersome (at least, for humans). Instead of this approach, we can use a graphical technique called the Karnaugh map. a b f c Original logic circuit a b f c Simplified equivalent logic circuit 2

3 3 The University of Texas at Dallas Karnaugh Maps Another approach to simplification is called the Karnaugh map, or K-map. A K-map is a truth table graph, which aids in visually simplifying logic. It is useful for up to 5 or 6 variables, and is a good tool to help understand the process of logic simplification. The algebraic approach we have used previously is also used to anale complex circuits in industry (computer analysis). At the right is a 2-variable K-map. This very simple K-map demonstrates that an n-variable K-map contains all the combination of the n variables in the K- map space. x x y y Two-Variable K-map, labeled for SOP terms. Note the four squares represent all the combinations of the two K-map variables, or minterms, in x & y (example above). This minterm is expressed as. f = xy

4 Three-Variable Karnaugh Map A useful K-map is one of three variables. Each square represents a 3-variable minterm or maxterm. All of the 8 possible 3-variable terms are represented on the K-map. When moving horizontally or vertically, only variable changes between adjacent squares, never 2. This property of the K- map, is unique and accounts for its unusual numbering system. The K-map shown is one labeled for SOP terms. It could also be used for a POS problem, but we would have to re-label the variables. x x As an example, this minterm cell (0) represents the minterm. f = x 4

5 Four Variable Karnaugh Map A 4-variable K-map can simplify problems of four Boolean variables.* The K-map has one square for each possible minterm (6 in this case). Migrating one square horizontally or vertically never results in more than one variable changing (square designations also shown in hex). * Note that on all K-maps, the left and right edges are a common edge, while the top and bottom edges are also the same edge. Thus, the top and bottom rows are adjacent, as are the left and right columns. Note that this is still an SOP K-map. 5

6 Exercise We will use the Karnaugh map to simplify Boolean expressions by placing minterm or maxterm values on the map and then grouping terms to develop simpler Boolean expressions. Let s practice placing some terms on the K-map shown. For the SOP Boolean expression below, place s and zeros on the map. f = Karnaugh map labeled for SOP problem solution. 6

7 7 The University of Texas at Dallas Karnaugh Map Comments K-maps can be labeled many ways, but in EE 230, always use this labeling! Each square is unique. We can label it in binary, decimal, or hex. We can also designate the Boolean function by the K-map squares it occupies. The minterms on the K-map can be labeled as f=σm(5, 7, 3, 5) in decimal, or f= Σm(5, 7, D, F) in hex.* Given the Sigma (Σ) coordinates, you could immediately deduce that the SOP function was: f = * Σm is the symbol for the Boolean sum (OR) coordinates of the squares. Observe that the Σ notations (in either SOP or POS) completely describe the Boolean function mapped on the K-map, as long as one knows what the input variables are.

8 Try your hand at developing the Boolean expression from the f = Σm designation on a K- map. The Σm designation of a Boolean function is given as f= Σm(9, B, D, F) (SOP). Find the Boolean expression by plotting the s on the chart and developing the expression from the minterms. Exercise 2 8

9 9 The University of Texas at Dallas Karnaugh Map Terminology In the K-map at right, each small square, or cell, represents one 4- variable Boolean AND function, or minterm (if we wanted, we could label it to represent OR functions or maxterms). Any square or rectangular group of cells that is a power of 2 (, 2, 4, 8, 6) is called an implicant. All of the groups of squares in the K-map to the left (including the single square) represent implicants of different sizes. Examples of various cell groupings, all of which represent K-map implicants.

10 Prime Implicants 0 We will be simplifying Boolean functions plotting their values on a K-map and grouping them into prime implicants. What is a prime implicant? It is an implicant that covers as many values (SOP K-map) or 0 values (POS K-map) as possible, yet still retains the identity of implicant (# of cells = power of 2, rectangular or square shape). Some SOP prime implicants are shown on the adjoining K-map

11 More Karnaugh Map Terminology Distinguished -cell: A single minterm that can be covered by only one prime implicant. Essential prime implicant: A prime implicant that covers one or more distinguished -cells. Note: Every fully minimized Boolean expression must include all of the essential prime implicants of f. In the K-map at right, the Boolean minterm f = is a distinguished -cell, and the essential prime implicant f = y is the only prime implicant that includes it. Another prime implicant Essential prime implicant that Distinguished -cell covers distinguished -cell

12 2 The University of Texas at Dallas As noted two slides back, a prime implicant is the largest square or rectangular implicant of cells occupied by a (SOP) or 0 (POS). Thus a prime implicant will have, 2, 4, or 8 cells (6 is a trivial prime). How do we determine the Boolean expression for a prime implicant? The Boolean expression for an SOP prime implicant is determined by creating a new minterm whose only variables are those that do NOT change value (0 or 0) over the extent of the prime implicant. Thus the prime implicant at right may be represented by the Boolean expression: f = xz. Prime Implicants Since x & z do not change value over the implicant, they are the variables in the new Boolean minterm. Example of a prime implicant

13 3 The University of Texas at Dallas Logic Simplification an SOP Example We simplify a Boolean expression by finding its prime implicants on a K-Map. To do this, populate the K-map as follows: For an SOP expression,* find the K-Map cell for each minterm of function f, and place a one () in it. Ignore 0 s. Circle groups of cells that contain s. The number of cells enclosed in a circle must be a power of 2 and square or rectangular. It is okay for groups of cells to overlap. Each circled group of cells corresponds to a prime implicant of f. Note that the more cells a given circle * A POS example will follow. encloses, the fewer variables needed to specify the implicant!

14 4 The University of Texas at Dallas Using the K Map for Logic Simplification (2) Another example: The implicants of f are 4, 6, 2, 4. This corresponds to the function: f = We create a prime implicant by grouping the 4 cells representing f. On the axis, the cells are whether or not w is one, and always when x is (w not needed). On the axis, the cells are whether or not y is one, and always when z is 0 (y not needed). Thus the simplified expression for f is:. f = xz Remember: For purposes of grouping implicants, the top and bottom rows of the K-map are considered adjacent, as are the right and left columns. This grouping takes advantage of the fact that the left and right columns are adjacent.

15 A POS K-Map On a POS K-map, the procedure is the same, except that we map 0 s. Let: f = ( w+ x+ y+ z) ( w+ x+ y+ z) ( w+ x+ y+ z) ( w+ x+ y+ z) We find prime implicants exactly the same way except that we look for variable that produce 0 s. As shown, w and y do not change over the extent of the function. The simplified expression is: f = ( w+ y). The simplified circuit is shown at right. w + x w+ x w w + + x x y+ z y+ z y+ z y+ z f 5

16 6 The University of Texas at Dallas Summary of Karnaugh Map Procedure In summary, to simplify a Boolean expression using a K-Map:. Start with the truth table or Boolean expression, if you have one. 2. If starting from the truth table, write the Boolean expression for each truth table term that is (if SOP) or 0 (if POS). 3. (Develop the full Boolean expression, if necessary, by OR-ing the AND terms together if SOP or AND-ing OR terms if POS.) 4. On the K-Map, plot s (for SOP) or 0 s (for POS). 5. Group implicants together to get the largest set of prime implicants possible. Prime implicants may overlap each other. They will always be square or rectangular groups of cells that are powers of 2 (, 2, 4, 8). 6. The variables that make up the term(s) of the new expression will be those which do not vary in value over the extent of each prime implicant. 7. Write the Boolean expression for each prime implicant and then OR (for SOP) or AND (for POS) terms together to get the new expression.

17 K-Map Example of Prime Implicants The Boolean expression represented is: f = Note that since prime implicants must be powers of 2, the largest group of squares we can circle is 4. Thus we circle three groups of 4 (in red). The circles may overlap. We now write the new SOP simplified expression. It is: f = xy + xz + wz NOT a prime implicant! 7

18 Another SOP Minimization, Given the Truth Table w x y z f

19 Minterms Plotted on K-Map The four minterms are plotted on the truth table. Note that they easily group into one prime implicant. Over the extent of the prime implicant, variables w & z vary, so they cannot be in the Boolean expression for the prime implicant. Variables x and y do not vary. Thus the expression for the minimum SOP representation must be. f = xy The original Boolean expression is: f =

20 Original and Simplified Circuits Logic circuit from truth table. Equivalent circuit after reduction using Karnaugh map. 20

21 Exercise 3 The truth table below was developed from a spec. Show the SOP expression and then minimize it using a K-map and draw the minimized circuit. x y z f x x

22 Another Example: Biggest Prime Implicants w x y z f

23 Minimization Using Four-Variable K-Map 23 Incorrect solution (partial minimization): f x = + Remember: Prime implicants should overlap, if this means that they can be made larger. Correct Solution: f = xz +

24 Resulting Circuit x y z f Note that the resulting circuit uses 3 logic gates, whereas the original expression, with six minterms, would have used a minimum of seven gates and four inverters. 24

25 Sometimes Major Simplification is Not Possible Using the Σ notation: f = Σm(,2,3,5,7,,3) Note that there are 3 distinguished one-cells (in red). There must therefore be at least 3 prime implicants (4 in this case, 3 essential). The simplified expression (and not very simplified at that) is: f = wz+ y+ x+ x 25

26 26 The University of Texas at Dallas Exercise 4 A truth table and its Boolean expression are shown below, along with the circuit of this unsimplified expression. Use the K-map on the following page to simplify and draw the simplified circuit. w x y z f Original Circuit f = + + +

27 Karnaugh Map of Last Example 27

28 The Concept of Don t Cares The six implicants on the K-Map shown can be represented by the simplified expression f = x y + x z. Suppose for our particular logic system, we know that y and z will never be 0 together. Then the implicants do not matter, since they cannot happen. To show the condition cannot occur, we put X s in the column -- they are don t cares -- conditions that cannot happen. X X X X 28

29 Don t Cares (2) Since the function will never get into the left column, we don t care how those minterms are represented. Why not make them s? Doing that, we can make a much larger prime implicant and a simpler Boolean expression. For this implicant, f = x. The expression is valid, since the forbidden condition will never allow the two left squares to be occupied. Don t cares let us further simplify an expression. 29

30 Don t Cares Another Example Assume the Boolean expression is as shown on the K-map (black s and black prime implicants). The simplest SOP expressions for the function is f = z + y. Also assume that and cannot occur. Since these cannot ever happen, they are don t cares, and since they are don t cares, make them (red)! We can then further simplify the expression to f = w x + x z (larger prime implicants). 30

31 Don t Cares -- Summary Don t Cares occur when there are variable combinations, represented by squares on a Karnaugh map, that cannot occur in a digital circuit or Boolean expression. Such a square is called a Don t Care. Since it can never happen, we can assign a value of to the square and use that to (possibly) construct larger prime implicants, further simplifying the circuit (you could assign it the value 0 in a POS representation). Circuits or Boolean expressions derived using Don t Care squares are as valid as any other expression or circuit. We will see later in sequential logic that the concept of Don t Cares will help in simplifying counter circuits. 3

32 Exercise 5 An SOP Boolean expression is defined as f=σ m (2, 6, C, D, F, E). The inputs are such that w is never when x = 0. Find the simplified expression and draw the simplified circuit. 32

### Karnaugh Map. Alternative way to Boolean Function Simplification. Karnaugh Map. Description of Kmap & Terminology

Alternative way to Boolean Function Simplification Karnaugh Map CIT 595 Spring 2010 Simplification of Boolean functions leads to simpler (and usually faster) digital circuits Simplifying Boolean functions

### Karnaugh Maps. Circuit-wise, this leads to a minimal two-level implementation

Karnaugh Maps Applications of Boolean logic to circuit design The basic Boolean operations are AND, OR and NOT These operations can be combined to form complex expressions, which can also be directly translated

### Karnaugh Maps & Combinational Logic Design. ECE 152A Winter 2012

Karnaugh Maps & Combinational Logic Design ECE 52A Winter 22 Reading Assignment Brown and Vranesic 4 Optimized Implementation of Logic Functions 4. Karnaugh Map 4.2 Strategy for Minimization 4.2. Terminology

### Computer Organization I. Lecture 8: Boolean Algebra and Circuit Optimization

Computer Organization I Lecture 8: Boolean Algebra and Circuit Optimization Overview The simplification from SOM to SOP and their circuit implementation Basics of Logic Circuit Optimization: Cost Criteria

### BOOLEAN ALGEBRA & LOGIC GATES

BOOLEAN ALGEBRA & LOGIC GATES Logic gates are electronic circuits that can be used to implement the most elementary logic expressions, also known as Boolean expressions. The logic gate is the most basic

### The equation for the 3-input XOR gate is derived as follows

The equation for the 3-input XOR gate is derived as follows The last four product terms in the above derivation are the four 1-minterms in the 3-input XOR truth table. For 3 or more inputs, the XOR gate

### Reading and construction of logic gates

Reading and construction of logic gates A Boolean function is an expression formed with binary variables, a binary variable can take a value of 1 or 0. Boolean function may be represented as an algebraic

### CSEE 3827: Fundamentals of Computer Systems. Standard Forms and Simplification with Karnaugh Maps

CSEE 3827: Fundamentals of Computer Systems Standard Forms and Simplification with Karnaugh Maps Agenda (M&K 2.3-2.5) Standard Forms Product-of-Sums (PoS) Sum-of-Products (SoP) converting between Min-terms

### Basics of Digital Systems. Boolean algebra Truth tables Karnaugh maps

Basics of Digital Systems Boolean algebra Truth tables Karnaugh maps Boolean Algebra In digital systems we deal with the binary number system. This means that the value of an element can be either 0 or

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

Points Addressed in this Lecture Lecture 5: Logic Simplication & Karnaugh Map Professor Peter Cheung Department of EEE, Imperial College London (Floyd 4.5-4.) (Tocci 4.-4.5) Standard form of Boolean Expressions

### Exclusive OR/Exclusive NOR (XOR/XNOR)

Exclusive OR/Exclusive NOR (XOR/XNOR) XOR and XNOR are useful logic functions. Both have two or more inputs. The truth table for two inputs is shown at right. a XOR b = 1 if and only if (iff) a b. a XNOR

### Analog & Digital Electronics Course No: PH-218

Analog & Digital Electronics Course No: PH-218 Lec-29: Combinational Logic Modules Course Instructor: Dr. A. P. VAJPEYI Department of Physics, Indian Institute of Technology Guwahati, India 1 Combinational

### CSE140: Midterm 1 Solution and Rubric

CSE140: Midterm 1 Solution and Rubric April 23, 2014 1 Short Answers 1.1 True or (6pts) 1. A maxterm must include all input variables (1pt) True 2. A canonical product of sums is a product of minterms

### 4 BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION

4 BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION BOOLEAN OPERATIONS AND EXPRESSIONS Variable, complement, and literal are terms used in Boolean algebra. A variable is a symbol used to represent a logical quantity.

### Karnaugh Maps (K-map) Alternate representation of a truth table

Karnaugh Maps (K-map) lternate representation of a truth table Red decimal = minterm value Note that is the MS for this minterm numbering djacent squares have distance = 1 Valuable tool for logic minimization

### Combinational Logic Circuits

Chapter 2 Combinational Logic Circuits J.J. Shann Chapter Overview 2-1 Binary Logic and Gates 2-2 Boolean Algebra 2-3 Standard Forms 2-4 Two-Level Circuit Optimization 2-5 Map Manipulation 補 充 資 料 :Quine-McCluskey

### EE 110 Practice Problems for Exam 2: Solutions, Fall 2008

EE 110 Practice Problems for Exam 2: Solutions, Fall 2008 1. Circle T (true) or F (false) for each of these Boolean equations. (a). T FO An 8-to-1 multiplexer requires 2 select lines. (An 8-to-1 multiplexer

### Basics of Digital Logic Design

CSE 675.2: Introduction to Computer Architecture Basics of Digital Logic Design Presentation D Study: B., B2, B.3 Slides by Gojko Babi From transistors to chips Chips from the bottom up: Basic building

### Gate-Level Minimization

Chapter 3 Gate-Level Minimization 3- Outline! Karnaugh Map Method! NAND and NOR Implementations! Other Two-Level Implementations! Exclusive-OR Function! Hardware Description Language 3-2 Why Logic Minimization?!

### Sum of Products (SOP) Expressions

Sum of Products (SOP) Expressions The Sum of Products (SOP) form of Boolean expressions and equations contains a list of terms (called minterms) in which all variables are ANDed (products). These minterms

### 1. Digital Logic Circuits

1 Digital Logic ircuits 1. Digital Logic ircuits Many scientific, industrial and commercial advances have been made possible by the advent of computers. Digital Logic ircuits form the basis of any digital

### Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

Take-Home Exercise Assume you want the counter below to count mod-6 backward. That is, it would count 0-5-4-3-2-1-0, etc. Assume it is reset on startup, and design the wiring to make the counter count

### LAB 2: BOOLEAN THEOREMS

LAB 2: BOOLEAN THEOREMS OBJECTIVES 1. To implement DeMorgan's theorems in circuit simplification. 2. To design a combinational logic circuit with simplest logic gates representation using Karnaugh Mapping

### Gates, Circuits, and Boolean Algebra

Gates, Circuits, and Boolean Algebra Computers and Electricity A gate is a device that performs a basic operation on electrical signals Gates are combined into circuits to perform more complicated tasks

### Quine-McClusky Minimization Procedure

Quine-McClusky Minimization Procedure This is basically a tabular method of minimization and as much it is suitable for computer applications. The procedure for optimization as follows: Step : Describe

### l What have discussed up until now & why: l C Programming language l More low-level then Java. l Better idea about what s really going on.

CS211 Computer Architecture l Topics Digital Logic l Transistors (Design & Types) l Logic Gates l Combinational Circuits l K-Maps Class Checkpoint l What have discussed up until now & why: l C Programming

### Digital circuits make up all computers and computer systems. The operation of digital circuits is based on

Digital Logic Circuits Digital circuits make up all computers and computer systems. The operation of digital circuits is based on Boolean algebra, the mathematics of binary numbers. Boolean algebra is

### EXPERIMENT NO.1:INTRODUCTION TO BASIC GATES AND LOGIC SIMPLIFICATION TECHNIQUES

DEPARTMENT OF ELECTRICAL AND ELECTROINC ENGINEERING BANGLADESH UNIVERSITY OF ENGINEERING & TECHNOLOGY EEE 304 : Digital Electronics Laboratory EXPERIMENT NO.1:INTRODUCTION TO BASIC GATES AND LOGIC SIMPLIFICATION

### Karnaugh Maps (K Maps) K Maps with 3 and 4 Variables

Karnaugh Maps (K Maps) Karnugh map is a graphical representation of a truth table The map contains one cell for each possible minterm adjacent cells differ in onl one literal, i.e., or Two variables, F

### CHAPTER 3 Boolean Algebra and Digital Logic

CHAPTER 3 Boolean Algebra and Digital Logic 3.1 Introduction 121 3.2 Boolean Algebra 122 3.2.1 Boolean Expressions 123 3.2.2 Boolean Identities 124 3.2.3 Simplification of Boolean Expressions 126 3.2.4

### Basic Logic Gates Richard E. Haskell

BASIC LOGIC GATES 1 E Basic Logic Gates Richard E. Haskell All digital systems are made from a few basic digital circuits that we call logic gates. These circuits perform the basic logic functions that

### Chapter 4 Boolean Algebra and Logic Simplification

ETEC 23 Programmable Logic Devices Chapter 4 Boolean Algebra and Logic Simplification Shawnee State University Department of Industrial and Engineering Technologies Copyright 27 by Janna B. Gallaher Boolean

### Boolean Algebra Part 1

Boolean Algebra Part 1 Page 1 Boolean Algebra Objectives Understand Basic Boolean Algebra Relate Boolean Algebra to Logic Networks Prove Laws using Truth Tables Understand and Use First Basic Theorems

### Chapter 4 BOOLEAN ALGEBRA AND THEOREMS, MIN TERMS AND MAX TERMS

Chapter 4 BOOLEAN ALGEBRA AND THEOREMS, MIN TERMS AND MAX TERMS Lesson 5 BOOLEAN EXPRESSION, TRUTH TABLE and product of the sums (POSs) [MAXTERMS] 2 Outline POS two variables cases POS for three variable

### Review of ECE 230 Material Prof. A. Mason, Michigan State University

Review of ECE 230 Material Prof. A. Mason, Michigan State University Preface This document was developed for students taking ECE 331 to review material covered in ECE 230. It will be assumed that ECE 331

### CSE140: Components and Design Techniques for Digital Systems

CSE4: Components and Design Techniques for Digital Systems Tajana Simunic Rosing What we covered thus far: Number representations Logic gates Boolean algebra Introduction to CMOS HW#2 due, HW#3 assigned

### Steps of sequential circuit design (cont'd)

Design of Clocked Synchronous Sequential Circuits Design of a sequential circuit starts with the verbal description of the problem (scenario). Design process is similar to computer programming. First,

### ON THE USE OF ASHENHURST DECOMPOSITION CHART AS AN ALTERNATIVE TO ALGORITHMIC TECHNIQUES IN THE SYNTHESIS OF MULTIPLEXER-BASED LOGIC CIRCUITS

Nigerian Journal of Technology, Vol. 18, No. 1, September, 1997 OSUAGWU 28 ON THE USE OF ASHENHURST DECOMPOSITION CHART AS AN ALTERNATIVE TO ALGORITHMIC TECHNIQUES IN THE SYNTHESIS OF MULTIPLEXER-BASED

### 2.0 Chapter Overview. 2.1 Boolean Algebra

Thi d t t d ith F M k 4 0 2 Boolean Algebra Chapter Two Logic circuits are the basis for modern digital computer systems. To appreciate how computer systems operate you will need to understand digital

### 1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

File: chap04, Chapter 04 1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1. 2. True or False? A gate is a device that accepts a single input signal and produces one

### Karnaugh Maps. Example A B C X 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 1 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 1. each 1 here gives a minterm e.g.

Karnaugh Maps Yet another way of deriving the simplest Boolean expressions from behaviour. Easier than using algebra (which can be hard if you don't know where you're going). Example A B C X 0 0 0 0 0

### CSE 220: Systems Fundamentals I Unit 7: Logic Gates; Digital Logic Design: Boolean Equations and Algebra

CSE 220: Systems Fundamentals I Unit 7: Logic Gates; Digital Logic Design: Boolean Equations and Algebra Logic Gates Logic gatesare simple digital circuits that take one or more binary inputs and produce

### Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

Digital Logic Design Basics Combinational Circuits Sequential Circuits Pu-Jen Cheng Adapted from the slides prepared by S. Dandamudi for the book, Fundamentals of Computer Organization and Design. Introduction

### Digital Circuits. Frequently Asked Questions

Digital Circuits Frequently Asked Questions Module 1: Digital & Analog Signals 1. What is a signal? Signals carry information and are defined as any physical quantity that varies with time, space, or any

### VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 603 203. DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGINEERING QUESTION BANK SUBJECT CODE/NAME YEAR/ SEMESTER : EC6302/ DIGITAL ELECTRONICS : II

### Rita Lovassy. Digital Technics

Rita Lovassy Digital Technics Kandó Kálmán Faculty of Electrical Engineering Óbuda University Budapest, 2013 Preface Digital circuits address the growing need for computer networking communications in

### DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING

DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING Lab Manual Digital Electronics Laboratory (EC-39) BACHELOR OF TECHNOLOGY Subject Code: EC 39 Subject Name: Digital Electronics Laboratory Teaching

### Combinational logic lab

ECE2883 HP: Lab 3- Logic Experts (LEs) Combinational logic lab Implementing combinational logic with Quartus We should be starting to realize that you, the SMEs in this course, are just a specific type

### MODULE 11- DESIGN OF SYNCHRONOUS SEQUENTIAL COUNTERS AND STATE MACHINES

Introduction to Digital Electronics Module 11: Design of Sequential Counters and State Machines 1 MODULE 11- DESIGN OF SYNCHRONOUS SEQUENTIAL COUNTERS AND STATE MACHINES OVERVIEW: A synchronous sequential

### Basics of Digital Logic Design

Basics of Digital Logic Design Dr. Arjan Durresi Louisiana State University Baton Rouge, LA 70810 Durresi@Csc.LSU.Edu LSUEd These slides are available at: http://www.csc.lsu.edu/~durresi/csc3501_07/ Louisiana

### ENEE244 (sec ) Spring Time alloted: 50 minutes. Student ID: Maximum score: 50 points

ENEE244 (sec -4) Spring 26 Midterm Examination II Pages: 7 printed sides Name: Answer key Time alloted: 5 minutes. Student ID: Maximum score: 5 points University rules dictate strict penalties for any

### Tutorial 5 Special Combinational Logic Circuit

Tutorial 5 Special Combinational Logic Circuit Question 1 a) What is the function of an adder circuit? b) A half-adder adds two binary bits, true or false? c) A half-adder has a sum output only, true or

### A Little Perspective Combinational Logic Circuits

A Little Perspective Combinational Logic Circuits COMP 251 Computer Organization and Architecture Fall 2009 Motivating Example Recall our machine s architecture: A Simple ALU Consider an ALU that can perform

### Implementation of SOP and POS Form Logic Functions

Implementation of SOP and POS Form Logic Functions By: Dr. A. D. Johnson Lab Assignment #3 EECS: 1100 Digital Logic Design The University of Toledo 1. Objectives - becoming familiar with two standard forms

### Introduction. Digital Logic Design 1. Simplifying Logic Circuits. Sum-of-Products Form. Algebraic Simplification

2007 Introduction BK TP.HCM Tran Ngoc Thinh HCMC University of Technology http://www.cse.hcmut.edu.vn/~tnthinh Basic logic gate functions will be combined in combinational logic circuits. Simplification

Binary Adders: Half Adders and Full Adders In this set of slides, we present the two basic types of adders: 1. Half adders, and 2. Full adders. Each type of adder functions to add two binary bits. In order

### 4.203 Write the truth table for each of the following logic functions:

3e4.5 4.201 According to DeMorgan s theorem, the complement of X + Y Z is X Y +Z. Yet both functions are 1 for XYZ = 110. How can both a function and its complement be 1 for the same input combination?

### Chapter 18. Sequential Circuits: Flip-flops and Counters

Chapter 18 Sequential Circuits: Flip-flops and Counters 1. Design a counter that has the following repeated binary sequence:, 1, 2, 3, 4, 5, 6, 7. Use RS flip-flops. Fig. 1.1 State diagram of a 3-bit binary

### Lecture 8: Synchronous Digital Systems

Lecture 8: Synchronous Digital Systems The distinguishing feature of a synchronous digital system is that the circuit only changes in response to a system clock. For example, consider the edge triggered

### United States Naval Academy Electrical and Computer Engineering Department. EC262 Exam 1

United States Naval Academy Electrical and Computer Engineering Department EC262 Exam 29 September 2. Do a page check now. You should have pages (cover & questions). 2. Read all problems in their entirety.

### Grade 9 Mathematics Unit #1 Number Sense Sub-Unit #1 Rational Numbers. with Integers Divide Integers

Page1 Grade 9 Mathematics Unit #1 Number Sense Sub-Unit #1 Rational Numbers Lesson Topic I Can 1 Ordering & Adding Create a number line to order integers Integers Identify integers Add integers 2 Subtracting

### COMBINATIONAL LOGIC CIRCUITS

COMBINATIONAL LOGIC CIRCUITS 4.1 INTRODUCTION The digital system consists of two types of circuits, namely: (i) Combinational circuits and (ii) Sequential circuits A combinational circuit consists of logic

### Introduction to Logic Circuits

April 5, 999 4:05 g02-ch2 Sheet number Page number 7 black chapter 2 Introduction to Logic Circuits 2. d2 d4, d7 d5 7 April 5, 999 4:05 g02-ch2 Sheet number 2 Page number 8 black 8 CHAPTER 2 Introduction

### WEEK 2.2 CANONICAL FORMS

WEEK 2.2 CANONICAL FORMS 1 Canonical Sum-of-Products (SOP) Given a truth table, we can ALWAYS write a logic expression for the function by taking the OR of the minterms for which the function is a 1. This

### Digital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell

Digital Electronics Part I Combinational and Sequential Logic Dr. I. J. Wassell Introduction Aims To familiarise students with Combinational logic circuits Sequential logic circuits How digital logic gates

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

CSEE E6861y Prof. Steven Nowick The Quine-McCluskey Method Handout 5 January 21, 2016 Introduction The Quine-McCluskey method is an exact algorithm which finds a minimum-cost sum-of-products implementation

### DESIGN OF GATE NETWORKS

DESIGN OF GATE NETWORKS DESIGN OF TWO-LEVEL NETWORKS: and-or and or-and NETWORKS MINIMAL TWO-LEVEL NETWORKS KARNAUGH MAPS MINIMIZATION PROCEDURE AND TOOLS LIMITATIONS OF TWO-LEVEL NETWORKS DESIGN OF TWO-LEVEL

### Chapter 4. Gates and Circuits. Chapter Goals. Chapter Goals. Computers and Electricity. Computers and Electricity. Gates

Chapter Goals Chapter 4 Gates and Circuits Identify the basic gates and describe the behavior of each Describe how gates are implemented using transistors Combine basic gates into circuits Describe the

### Arithmetic Circuits Addition, Subtraction, & Multiplication

Arithmetic Circuits Addition, Subtraction, & Multiplication The adder is another classic design example which we are obliged look at. Simple decimal arithmetic is something which we rarely give a second

### Logic gate implementation and circuit minimization

Logic gate implementation and circuit minimization Lila Kari The University of Western Ontario Logic gate implementation and circuit minimization CS2209, Applied Logic for Computer Science 1 / 48 Why binary?

### Lesson 14 Design of Sequential Circuits Using D Flip-Flops

Lesson 4 esign of Sequential Circuits Using Flip-Flops. esign Procedure This lesson is another example of it all coming together. In this lesson, you will learn how to design state machines out of flip-flops

### Digital Logic Design

Digital Logic Design ENGG1015 1 st Semester, 2010 Dr. Kenneth Wong Dr. Hayden So Department of Electrical and Electronic Engineering Determining output level from a diagram Implementing Circuits From Boolean

### Chapter 3: Combinational Logic Design

Chapter 3: Combinational Logic Design 1 Introduction We have learned all the prerequisite material: Truth tables and Boolean expressions describe functions Expressions can be converted into hardware circuits

### Notes on Matrix Multiplication and the Transitive Closure

ICS 6D Due: Wednesday, February 25, 2015 Instructor: Sandy Irani Notes on Matrix Multiplication and the Transitive Closure An n m matrix over a set S is an array of elements from S with n rows and m columns.

### CS61c: Representations of Combinational Logic Circuits

CS61c: Representations of Combinational Logic Circuits J. Wawrzynek October 12, 2007 1 Introduction In the previous lecture we looked at the internal details of registers. We found that every register,

### L2: Combinational Logic Design (Construction and Boolean Algebra)

L2: Combinational Logic Design (Construction and oolean lgebra) cknowledgements: Materials in this lecture are courtesy of the following sources and are used with permission. Prof. Randy Katz (Unified

### NOT AND OR XOR NAND NOR

NOT AND OR XOR NAND NOR Expression 1: It is raining today Expression 2: Today is my birthday X Meaning True False It is raining today It is not raining Binary representation of the above: X Meaning 1 It

### EE 110 Practice Problems for Final Exam: Solutions

EE 1 Practice Problems for Final Exam: Solutions 1. Finite State Machines: Sequence Recognizer You want to build a finite state machine that will recognize the sequence x = and output the sequence z =

### Most decoders accept an input code and produce a HIGH ( or a LOW) at one and only one output line. In otherworlds, a decoder identifies, recognizes,

Encoders Encoder An encoder is a combinational logic circuit that essentially performs a reverse of decoder functions. An encoder accepts an active level on one of its inputs, representing digit, such

### Programmable Logic Devices (PLDs)

Programmable Logic Devices (PLDs) Lesson Objectives: In this lesson you will be introduced to some types of Programmable Logic Devices (PLDs): PROM, PAL, PLA, CPLDs, FPGAs, etc. How to implement digital

### Final Exam review: chapter 4 and 5. Supplement 3 and 4

Final Exam review: chapter 4 and 5. Supplement 3 and 4 1. A new type of synchronous flip-flop has the following characteristic table. Find the corresponding excitation table with don t cares used as much

### Logic Reference Guide

Logic eference Guide Advanced Micro evices INTOUCTION Throughout this data book and design guide we have assumed that you have a good working knowledge of logic. Unfortunately, there always comes a time

### Java-based Instructional Materials for Introductory Logic Design Courses

Java-based Instructional Materials for Introductory Logic Design Courses Sally Wood Ronald Danielson School of Engineering Santa Clara University Santa Clara, California 95053 Abstract - Introductory logic

### Digital Logic Circuits

Digital Logic Circuits Digital describes any system based on discontinuous data or events. Typically digital is computer data or electronic sampling of an analog signal. Computers are digital machines

### EXPONENTS. To the applicant: KEY WORDS AND CONVERTING WORDS TO EQUATIONS

To the applicant: The following information will help you review math that is included in the Paraprofessional written examination for the Conejo Valley Unified School District. The Education Code requires

### Gates and Logic: From switches to Transistors, Logic Gates and Logic Circuits

Gates and Logic: From switches to Transistors, Logic Gates and Logic Circuits Hakim Weatherspoon CS 3410, Spring 2013 Computer Science Cornell University See: P&H ppendix C.2 and C.3 (lso, see C.0 and

### Combinational Logic Design Process

Combinational Logic Design Process Create truth table from specification Generate K-maps & obtain logic equations Draw logic diagram (sharing common gates) Simulate circuit for design verification Debug

### INTRODUCTION TO EXCEL

INTRODUCTION TO EXCEL 1 INTRODUCTION Anyone who has used a computer for more than just playing games will be aware of spreadsheets A spreadsheet is a versatile computer program (package) that enables you

### ECE 331 Digital System Design

ECE 331 Digital System Design Introduction to and Analysis of Sequential Logic Circuits (Lecture #21) The slides included herein were taken from the materials accompanying Fundamentals of Logic Design,

### 3.Basic Gate Combinations

3.Basic Gate Combinations 3.1 TTL NAND Gate In logic circuits transistors play the role of switches. For those in the TTL gate the conducting state (on) occurs when the baseemmiter signal is high, and

### Class One: Degree Sequences

Class One: Degree Sequences For our purposes a graph is a just a bunch of points, called vertices, together with lines or curves, called edges, joining certain pairs of vertices. Three small examples of

### Logic Design 2013/9/5. Introduction. Logic circuits operate on digital signals

Introduction Logic Design Chapter 2: Introduction to Logic Circuits Logic circuits operate on digital signals Unlike continuous analog signals that have an infinite number of possible values, digital signals

### Examples of Solved Problems for Chapter3,5,6,7,and8

Chapter 3 Examples of Solved Problems for Chapter3,5,6,7,and8 This document presents some typical problems that the student may encounter, and shows how such problems can be solved. Note that the numbering

### 2 1 Implementation using NAND gates: We can write the XOR logical expression A B + A B using double negation as

Chapter 2 Digital Logic asics 2 Implementation using NND gates: We can write the XOR logical expression + using double negation as + = + = From this logical expression, we can derive the following NND

### 1.4. Arithmetic of Algebraic Fractions. Introduction. Prerequisites. Learning Outcomes

Arithmetic of Algebraic Fractions 1.4 Introduction Just as one whole number divided by another is called a numerical fraction, so one algebraic expression divided by another is known as an algebraic fraction.

### Digital Electronics Detailed Outline

Digital Electronics Detailed Outline Unit 1: Fundamentals of Analog and Digital Electronics (32 Total Days) Lesson 1.1: Foundations and the Board Game Counter (9 days) 1. Safety is an important concept

### IOWA STATE UNIVERSITY Department of Community and Regional Planning

IOWA STATE UNIVERSITY Department of Community and Regional Planning CRP274 PLANNING ANALYSIS AND TECHNIQUES II INTRODUCTION TO EXCEL FOR WINDOWS 1 Basic Components of Spreadsheet 1.1 Worksheet An Excel

### (Refer Slide Time: 2:14)

(Refer Slide Time: 2:14) Digital Circuits and Systems Prof. S. Srinivasan Professor Department of Electrical Engineering Indian Institute of Technology, Madras Lecture # 24 Design of Synchronous Sequential