Karnaugh Maps Ellen Spertus MCS 111 September 2, 2003.

Slides:



Advertisements
Similar presentations
Digital Circuits. Review – Getting the truth table The first step in designing a digital circuit usually is to get the truth table. That is, for every.
Advertisements

Digital Circuits.
Combinational Circuits
Combinational Circuits ENEL 111. Common Combinationals Circuits NAND gates and Duality Adders Multiplexers.
1 Combinational Logic Design&Analysis. 2 Introduction We have learned all the prerequisite material: – Truth tables and Boolean expressions describe functions.
التصميم المنطقي Second Course
Cosc 2150: Computer Organization Chapter 3: Boolean Algebra and Digital Logic.
1 Homework Reading –Tokheim, Section 5-10, 7-4 Machine Projects –Continue on MP4 Labs –Continue labs with your assigned section.
08/07/041 CSE-221 Digital Logic Design (DLD) Lecture-8:
Sequential Logic Design
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
Introduction to Digital Design Lab Project
Digital Logic Lecture 08 By Amr Al-Awamry. Combinational Logic 1 A combinational circuit consists of an interconnection of logic gates. Combinational.
1 Fundamentals of Computer Science Propositional Logic (Boolean Algebra)
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Chapter 3.5 Logic Circuits. How does Boolean algebra relate to computer circuits? Data is stored and manipulated in a computer as a binary number. Individual.
ECE 3130 – Digital Electronics and Design
Logic Design A Review. Binary numbers Binary numbers to decimal  Binary 2 decimal  Decimal 2 binary.
CS1Q Computer Systems Lecture 8
Discrete Mathematics CS 2610 February 19, Logic Gates: the basic elements of circuits Electronic circuits consist of so-called gates connected.
1 The Chinese University of Hong Kong Faculty of Education Diploma in Education (Part-Time) Winter 1997 Educational Communications and Technology Assignment.
The Digital Logic Level
Digital Circuits. Review – Getting the truth table The first step in designing a digital circuit usually is to get the truth table. That is, for every.
1 © 2015 B. Wilkinson Modification date: January 1, 2015 Designing combinational circuits Logic circuits whose outputs are dependent upon the values placed.
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
LOGIC GATES.
Digital Systems: Combinational Logic Circuits Wen-Hung Liao, Ph.D.
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
CS1Q Computer Systems Lecture 7
Ellen Spertus MCS 111 October 16, 2001 Review. 2 What you will learn this semester Given devices that implement simple boolean functions… Understand how.
1 CS 151: Digital Design Chapter 3: Combinational Logic Design 3-1Design Procedure CS 151: Digital Design.
Combinational Circuits
CS1Q Computer Systems Lecture 8
Digital Systems Section 11 Decoders and Encoders.
Digital Design Module 2 Decoder Amit Kumar AP SCSE, GU Greater Noida.
ELECTRICAL ENGINEERING: PRINCIPLES AND APPLICATIONS, Third Edition, by Allan R. Hambley, ©2005 Pearson Education, Inc. Chapter 7 Logic Circuits.
1 Review Ellen Spertus MCS 111 December 3, Bedichek follow-up Guests –Rob Bedichek –Annie Warren Bedichek
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Full Adders Vector Notation Multiplexers and Decoders Ellen Spertus MCS 111 September 6, 2001.
1 COMP541 Sequential Logic – 2: Finite State Machines Montek Singh Feb 29, 2016.
Combinational Circuits and Boolean
CHAPTER 3 Simplification of Boolean Functions
Multiplexer.
Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables, logic gates,
Combinational Circuits
Computer Architecture CST 250
Reading: Hambley Chapters
Karnaugh Maps (K-Maps)
Computer Science 210 Computer Organization
Instructor: Alexander Stoytchev
Digital Circuits.
Instructor: Alexander Stoytchev
Digital Logic.
Homework Reading Tokheim, Section 5-10, 7-4.
Dr. Clincy Professor of CS
Logic Gates.
Digital Systems Section 17 Decoders and Encoders.
13 Digital Logic Circuits.
ECB2212-Digital Electronics K-Map
Digital Logic.
Instructor: Alexander Stoytchev
Chapter 10.3 and 10.4: Combinatorial Circuits
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Special Gates Combinational Logic Gates
XOR Function Logic Symbol  Description  Truth Table 
Digital System Design Combinational Logic
Karnaugh Maps (K maps).
Digital Circuits.
Digital Circuits.
Presentation transcript:

Karnaugh Maps Ellen Spertus MCS 111 September 2, 2003

2 Big Picture Any number can be represented as 0s and 1s Functions can be represented as a table Any table of 0s and 1s can be interpreted as a truth table Any truth table can be converted into a boolean function We can implement boolean functions with switches

3 Homework 1

4 Sum of products form Product refers to and (·) Sum refers to or (+)

5 Practice

6 Homework 3: Nand is universal “Universal” means that you can build any boolean function out of it You must be able to construct –and –or –not All you need is nand gates!

7 Optimizing formulas Why is it better to have simpler formulas? What makes one function simpler than another? Given a truth table, is there a way to automatically generate the simplest possible function?

8 Building a Karnaugh map

9 Using a Karnaugh map Circle each horizontal/vertical region of 1s. Convert each term into a boolean product (i.e., and the variables or their negations together). Build a sum of the products (i.e., or the products together).

10 Practice

11 Rules for Karnaugh maps Label each axis with a gray code, i.e., only change one bit at a time. Regions can stretch horizontally or vertically. Each side of a region must be a power of 2 (e.g., 1, 2, or 4). For simplest formula, choose ________region and make use of “don’t care”s. Regions may wrap around the edges. Practice with 4-input Karnaugh map…

12 Putting it together Definitions: –An integer greater than 1 is prime if it has no divisors besides 1 and itself. –An integer greater than 1 is composite if it is not prime. Let’s design a circuit that will tell whether its 3-digit binary input is composite or prime Result should be 0 for composite, 1 for prime.

13 Big Picture Any number can be represented as 0s and 1s. Any table of 0s and 1s can be interpreted as a truth table. We can implement boolean functions with switches. Any truth table can be converted into a boolean function. 

14 4-variable Karnaugh map

15

16 Karnaugh map for primes

17 Lab 1 Get familiar with your lab kit and logic gates Build a full adder Make use of a 4-bit adder The voice of experience says: –Read the directions carefully –Draw your wiring diagram properly

18 Wiring diagrams 1/2 The drawing is neat, with straight horizontal and vertical (not diagonal) lines. (Use rulers and templates.) Chips are drawn not as rectangles but in shapes that suggest their function. Chips are labeled with their part number (e.g., LS283). Signal names (e.g., A3) appear inside the chip, pin numbers outside.

19 Wiring diagrams 2/2 The connections of the upper-right pin to power and the lower-left pin to ground are not shown. Inputs and outputs are clearly labeled and grouped together. If colors are used, they should be used logically and consistently.

20