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



Similar documents
Elementary Logic Gates

Combinational Logic Design Process

Simplifying Logic Circuits with Karnaugh Maps

BOOLEAN ALGEBRA & LOGIC GATES

CSE140: Midterm 1 Solution and Rubric

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

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

CSE140: Components and Design Techniques for Digital Systems

Basic Logic Gates Richard E. Haskell

Binary full adder. 2-bit ripple-carry adder. CSE 370 Spring 2006 Introduction to Digital Design Lecture 12: Adders

DESIGN OF GATE NETWORKS

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

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

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

Two-level logic using NAND gates

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


2.0 Chapter Overview. 2.1 Boolean Algebra

earlier in the semester: The Full adder above adds two bits and the output is at the end. So if we do this eight times, we would have an 8-bit adder.

Sum-of-Products and Product-of-Sums expressions

Digital Electronics Detailed Outline

Upon completion of unit 1.1, students will be able to

Course Requirements & Evaluation Methods

NAND and NOR Implementation

BINARY CODED DECIMAL: B.C.D.

ENGI 241 Experiment 5 Basic Logic Gates

Chapter 2: Boolean Algebra and Logic Gates. Boolean Algebra

Digital Controller for Pedestrian Crossing and Traffic Lights

Figure 8-1 Four Possible Results of Adding Two Bits

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

Philadelphia University Faculty of Information Technology Department of Computer Science Semester, 2007/2008.

Binary Adders: Half Adders and Full Adders

Counters and Decoders

ELEC EXPERIMENT 1 Basic Digital Logic Circuits

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

3.Basic Gate Combinations

Understanding Logic Design

Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots

COMBINATIONAL CIRCUITS

A Course Material on DIGITAL PRINCIPLES AND SYSTEM DESIGN

Counters are sequential circuits which "count" through a specific state sequence.

EE360: Digital Design I Course Syllabus

Chapter 3 Digital Basics

SECTION C [short essay] [Not to exceed 120 words, Answer any SIX questions. Each question carries FOUR marks] 6 x 4=24 marks

Logic Reference Guide

Gray Code Generator and Decoder by Carsten Kristiansen Napier University. November 2004

Traffic Light Controller. Digital Systems Design. Dr. Ted Shaneyfelt

RUTGERS UNIVERSITY Department of Electrical and Computer Engineering 14:332:233 DIGITAL LOGIC DESIGN LABORATORY

Verification & Design Techniques Used in a Graduate Level VHDL Course

Lecture 8: Synchronous Digital Systems

Read-only memory Implementing logic with ROM Programmable logic devices Implementing logic with PLDs Static hazards

Lab 1: Full Adder 0.0

DEPARTMENT OF INFORMATION TECHNLOGY

Logic gates. Chapter. 9.1 Logic gates. MIL symbols. Learning Summary. In this chapter you will learn about: Logic gates

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

Lab #5: Design Example: Keypad Scanner and Encoder - Part 1 (120 pts)

6. BOOLEAN LOGIC DESIGN

Gates, Circuits, and Boolean Algebra

Lab 11 Digital Dice. Figure Digital Dice Circuit on NI ELVIS II Workstation

Traditional Conjoint Analysis with Excel

CHAPTER 3 Boolean Algebra and Digital Logic

Memory Elements. Combinational logic cannot remember

Combinational circuits

Boolean Algebra. Boolean Algebra. Boolean Algebra. Boolean Algebra

Combinational Logic Design

RAM & ROM Based Digital Design. ECE 152A Winter 2012

Jianjian Song LogicWorks 4 Tutorials (5/15/03) Page 1 of 14

SOLUTIONS MANUAL DIGITAL DESIGN FOURTH EDITION M. MORRIS MANO California State University, Los Angeles MICHAEL D.

Creating Relay Logic Diagrams

FORDHAM UNIVERSITY CISC Dept. of Computer and Info. Science Spring, Lab 2. The Full-Adder

Lecture 5: Gate Logic Logic Optimization

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

Implementation and Design of AES S-Box on FPGA

Name: Class: Date: Multiple Choice Identify the choice that best completes the statement or answers the question.

Set-Reset (SR) Latch

Decimal Number (base 10) Binary Number (base 2)

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

Computer Engineering 290. Digital Design: I. Lecture Notes Summer 2002

VENDING MACHINE. ECE261 Project Proposal Presentaion. Members: ZHANG,Yulin CHEN, Zhe ZHANG,Yanni ZHANG,Yayuan

University of St. Thomas ENGR Digital Design 4 Credit Course Monday, Wednesday, Friday from 1:35 p.m. to 2:40 p.m. Lecture: Room OWS LL54

exclusive-or and Binary Adder R eouven Elbaz reouven@uwaterloo.ca Office room: DC3576

IE1204 Digital Design F12: Asynchronous Sequential Circuits (Part 1)

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

(1) /30 (2) /30 (3) /40 TOTAL /100

Digital Logic Design

Irrational Numbers. A. Rational Numbers 1. Before we discuss irrational numbers, it would probably be a good idea to define rational numbers.

Design and Development of Virtual Instrument (VI) Modules for an Introductory Digital Logic Course

DM74LS05 Hex Inverters with Open-Collector Outputs

ECE410 Design Project Spring 2008 Design and Characterization of a CMOS 8-bit Microprocessor Data Path

Logic in Computer Science: Logic Gates

Boolean Algebra Part 1

Hexadecimal and Numeric Indicators. Technical Data

Ladder and Functional Block Programming

EXPERIMENT 8. Flip-Flops and Sequential Circuits

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

6.004 Computation Structures Spring 2009

FORDHAM UNIVERSITY CISC Dept. of Computer and Info. Science Spring, The Binary Adder

Seven-Segment LED Displays

Switching Algebra and Logic Gates

Mixed Logic A B A B. 1. Ignore all bubbles on logic gates and inverters. This means

Transcription:

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 pplies most oolean theorems & postulates automatically (when procedure is followed) 0 2-variable form 1 2 3 form 2 1 K-Maps 2 3 1

Karnaugh Maps (K-map) lternate forms of 3-variable K-maps Note end-around adjacency Distance = 1 form 1 form 2 Note: is MS, is LS for minterm numbering 0 1 3 2 7 6 3 2 7 6 2 3 6 7 2 3 6 7 2

K-mapping & Minimization Steps Step 1: generate K-map Put a 1 in all specified minterms Put a 0 in all other boxes (optional) Step 2: group all adjacent 1s without including any 0s ll groups (aka prime implicants) must be rectangular and contain a power-of-2 number of 1s 1, 2, 4, 8, 16, 32, n essential group (aka essential prime implicant) contains at least 1 minterm not included in any other groups given minterm may be included in multiple groups Step 3: define product terms using variables common to all minterms in group Step 4: sum all essential groups plus a minimal set of remaining groups to obtain a minimum SOP 3

K-map Minimization Example Z=,, (1,3,6,7) Recall SOP minterm implementation 8 gates 27 gate I/O K-map results 4 gates gate I/O 0 1 0 3 2 1 0 7 6 1 essential prime implicants Z= + Note: this group not needed since 1s are already covered Z Row value 0 0 0 0 0 0 1 1 0 0 2 1 1 3 1 0 0 0 4 1 0 5 1 1 6 1 1 1 1 7 4

K-map Minimization Goals Larger groups: Smaller product terms Fewer variables in common Smaller ND gates In terms of number of inputs Fewer groups: Fewer product terms Fewer ND gates Smaller OR gate In terms of number of inputs lternate method: Group 0s ould produce fewer and/or smaller product terms Invert output Use NOR instead of OR gate 5

4-variable K-maps Note adjacency of 4 corners as well as sides Variable ordering for this minterm numbering: D D 12 13 8 9 3 2 7 6 15 14 12 13 8 9 3 2 7 6 15 14 form 1 D form 2 6

5-variable K-map Note adjacency between maps when overlayed distance=1 Variable order for this minterm numbering:,,,d,e ( is MS, E is LS) DE 3 2 7 6 DE 16 17 20 21 19 18 23 22 12 13 8 9 15 14 28 29 24 25 31 30 27 26 =0 =1 7

5-variable K-map hanging the variable used to separate maps changes minterm numbering Same variable order for this minterm numbering:,,,d,e ( is MS, E is LS) D 0 2 8 6 4 14 12 D 1 3 9 7 5 15 13 24 26 16 18 30 28 22 20 25 27 17 19 31 29 23 21 E=0 E=1 8

6-variable K-map Variable order for minterm numbers: DEF =0 =1 EF D 12 13 8 9 =0 3 2 7 6 15 14 EF D 32 33 36 37 44 45 40 41 35 34 39 38 47 46 43 42 EF D 16 17 20 21 28 29 24 25 =1 19 18 23 22 31 30 27 26 EF D 48 49 52 53 60 61 56 57 51 50 55 54 63 62 59 58 9

Don t are onditions Sometimes input combinations are of no concern ecause they may not exist Example: D uses only of possible 16 input combinations Since we don t care what the output, we can use these don t care conditions for logic minimization The output for a don t care condition can be either 0 or 1 WE DON T RE!!! Don t are conditions denoted by: X, -, d, 2 X is probably the most often used an also be used to denote inputs Example: = 1X1 = can be a 0 or a 1

Don t are onditions Truth Table K-map Minterm Z=,, (1,3,6,7)+d(2) Maxterm Z=,, (0,4,5)+d(2) Notice Don t ares are same for both minterm & maxterm 0 1 X 3 2 1 0 7 6 1 Z= + Z=+ Z 0 0 0 0 0 1 0 X 1 1 1 0 0 0 1 0 1 1 1 1 1 1 ircuit analysis: G=3 G IO =8 (compared to G=4 & G IO = w/o don t care)

Design Example Hexadecimal to 7-segment display decoder common circuit in calculators 7-segments (-G) to represent digits (0-9 & -F) logic 1 turns on given segment F G E D 7 segments Hex to 7-segment decoder D F F G active (on) segments for a given HEX value = don t care ircuit block diagram 12

HEX to 7-seg Design Example reate truth table from specification F E G D = don t care D E F G 0 0 0 1 1 1 1 1 0 0 0 1 0 0 0 0 0 1 1 0 1 1 1 1 1 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 X 0 1 0 0 1 1 1 1 1 1 1 0 1 1 1 X 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 0 0 1 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 1 13

HEX to 7-seg Design Example Generate K-maps & obtain logic equations D E F G 0 0 0 1 1 1 1 1 0 0 0 1 0 0 0 0 0 1 1 0 1 1 1 1 1 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 1 0 0 1 1 1 1 1 1 1 0 1 1 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 0 0 1 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 = + + + + + 1 0 0 0 1 1 K-map for output K-map for output = + + + + 14

HEX to 7-seg Design Example K-maps & logic equations for outputs -G 1 1 1 0 1 1 1 0 1 0 0 0 1 1 1 1 0 0 1 1 X 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 X 1 0 1 1 1 1 1 1 K-map for output K-map for D output K-map for E output K-map for F output = + + + + D = + + + + E = + + + F = + + + + G = + + + + 0 1 1 1 1 1 1 1 1 1 K-map for G output 15

HEX to 7-seg Design Example Remaining steps to complete design: Draw logic diagram (sharing common gates) nalyze for optimization metirc: G, G IO, G del, P del See next page for logic diagram & circuit analysis Simulate circuit for design verification Debug & fix problems when output is incorrect heck truth table against K-map population heck K-map groups against logic equation product terms heck logic equations against schematic Optimize circuit for area and/or performance Use oolean postulates & theorems Re-simulate & verify optimized design 16

# loads on PIs 9 9 9 9 HEX to 7-seg Design Example 1+8 1+7 1+9 1+9 2+3 G1 2+3 G2 G3 G4 G5 G6 G7 G8 G9 2+2 2+2 G G G12 G13 G14 G15 G16 G17 G18 G19 3+2 G20 G21 G22 G23 G24 G25 G26 G27 G1 G2 G3 G4 G17 G18 G6 G7 G5 G G G1 G8 G9 G12 G6 G9 G14 G15 G27 6+0 5+0 4+0 5+0 G1 G5 G19 G20 G21 G22 G23 G24 G25 G26 E G6 G G12 G13 G16 G Prop delay in gates #inputs + # loads 5+0 5+0 5+0 ircuit nalysis G = 38 G IO = 141 G del = 3 P del = 30 worst case path: G1 17 D F