Principles of Computer Architecture. Appendix B: Reduction of Digital Logic

Similar documents
BOOLEAN ALGEBRA & LOGIC GATES

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

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

Simplifying Logic Circuits with Karnaugh Maps

Lecture 8: Synchronous Digital Systems

CSE140: Midterm 1 Solution and Rubric

CSE140: Components and Design Techniques for Digital Systems

CHAPTER 3 Boolean Algebra and Digital Logic

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

Combinational Logic Design Process

Gates, Circuits, and Boolean Algebra

Lecture 5: Gate Logic Logic Optimization

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

Lesson 12 Sequential Circuits: Flip-Flops

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

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

2.0 Chapter Overview. 2.1 Boolean Algebra

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

3.Basic Gate Combinations

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

Digital Controller for Pedestrian Crossing and Traffic Lights

Chapter 2: Boolean Algebra and Logic Gates. Boolean Algebra

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

Counters and Decoders

Memory Elements. Combinational logic cannot remember

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

Digital Electronics Detailed Outline

ANALOG & DIGITAL ELECTRONICS

Boolean Algebra Part 1

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

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

Counters & Shift Registers Chapter 8 of R.P Jain

ASYNCHRONOUS COUNTERS

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

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

ECE232: Hardware Organization and Design. Part 3: Verilog Tutorial. Basic Verilog

Latches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012

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

Chapter 5. Sequential Logic

Sequential 4-bit Adder Design Report

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

Elementary Logic Gates

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

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

Two-level logic using NAND gates

CS311 Lecture: Sequential Circuits

A single register, called the accumulator, stores the. operand before the operation, and stores the result. Add y # add y from memory to the acc

Online EFFECTIVE AS OF JANUARY 2013

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

Lecture 10 Sequential Circuit Design Zhuo Feng. Z. Feng MTU EE4800 CMOS Digital IC Design & Analysis 2010

Chapter 2 Logic Gates and Introduction to Computer Architecture

CSE140: Components and Design Techniques for Digital Systems

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

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

Design: a mod-8 Counter

Flip-Flops and Sequential Circuit Design. ECE 152A Winter 2012

Flip-Flops and Sequential Circuit Design

ENGI 241 Experiment 5 Basic Logic Gates

EE360: Digital Design I Course Syllabus

Combinational circuits

Logic Reference Guide

Logic in Computer Science: Logic Gates

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

Course Requirements & Evaluation Methods

Combinational Logic Design

The components. E3: Digital electronics. Goals:

Understanding Logic Design

DESIGN OF GATE NETWORKS

BINARY CODED DECIMAL: B.C.D.

Gates & Boolean Algebra. Boolean Operators. Combinational Logic. Introduction

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

ENEE 244 (01**). Spring Homework 5. Due back in class on Friday, April 28.

Asynchronous Counters. Asynchronous Counters

A New Paradigm for Synchronous State Machine Design in Verilog

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

DEPARTMENT OF INFORMATION TECHNLOGY

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

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

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

Chapter 7 Memory and Programmable Logic

Chapter 9 Latches, Flip-Flops, and Timers

Unit 3 Boolean Algebra (Continued)

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

CS 61C: Great Ideas in Computer Architecture Finite State Machines. Machine Interpreta4on

Chapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

Sequential Circuits. Combinational Circuits Outputs depend on the current inputs

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1

CHAPTER 11 LATCHES AND FLIP-FLOPS

Register File, Finite State Machines & Hardware Control Language

Topics of Chapter 5 Sequential Machines. Memory elements. Memory element terminology. Clock terminology

Upon completion of unit 1.1, students will be able to

Lecture 11: Sequential Circuit Design

INTRODUCTION TO DIGITAL SYSTEMS. IMPLEMENTATION: MODULES (ICs) AND NETWORKS IMPLEMENTATION OF ALGORITHMS IN HARDWARE

Module 3: Floyd, Digital Fundamental

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

Lecture 10: Sequential Circuits

Transcription:

B-1 Appendix B - Reduction of Digital Logic Principles of Computer Architecture Miles Murdocca and Vincent Heuring Appendix B: Reduction of Digital Logic

B-2 Appendix B - Reduction of Digital Logic Chapter Contents B.1 Reduction of Combinational Logic and Sequential Logic B.2 Reduction of Two-Level Expressions B.3 State Reduction

B-3 Appendix B - Reduction of Digital Logic Reduction (Simplification) of Boolean Expressions It is usually possible to simplify the canonical SOP (or POS) forms. A smaller Boolean equation generally translates to a lower gate count in the target circuit. We cover three methods: algebraic reduction, Karnaugh map reduction, and tabular (Quine-McCluskey) reduction.

B-4 Appendix B - Reduction of Digital Logic Reduced Majority Function Circuit Compared with the AND-OR circuit for the unreduced majority function, the inverter for C has been eliminated, one AND gate has been eliminated, and one AND gate has only two inputs instead of three inputs. Can the function by reduced further? How do we go about it?

B-5 Appendix B - Reduction of Digital Logic The Algebraic Method Consider the majority function, F. We apply the algebraic method to reduce F to its minimal two-level form:

B-6 Appendix B - Reduction of Digital Logic The Algebraic Method This majority circuit is functionally equivalent to the previous majority circuit, but this one is in its minimal two-level form:

B-7 Appendix B - Reduction of Digital Logic Karnaugh Maps: Venn Diagram Representation of Majority Function Each distinct region in the Universe represents a minterm. This diagram can be transformed into a Karnaugh Map.

B-8 Appendix B - Reduction of Digital Logic K-Map for Majority Function Place a 1 in each cell that corresponds to that minterm. Cells on the outer edge of the map wrap around

B-9 Appendix B - Reduction of Digital Logic Adjacency Groupings for Majority Function F = BC + AC + AB

B-10 Appendix B - Reduction of Digital Logic Minimized AND-OR Majority Circuit F = BC + AC + AB The K-map approach yields the same minimal two-level form as the algebraic approach.

B-11 Appendix B - Reduction of Digital Logic K-Map Groupings Minimal grouping is on the left, non-minimal (but logically equivalent) grouping is on the right. To obtain minimal grouping, create smallest groups first.

B-12 Appendix B - Reduction of Digital Logic K-Map Corners are Logically Adjacent

B-13 Appendix B - Reduction of Digital Logic K-Maps and Don t Cares There can be more than one minimal grouping, as a result of don t cares.

B-14 Appendix B - Reduction of Digital Logic Five-Variable K-Map Visualize two 4-variable K-maps stacked one on top of the other; groupings are made in three dimensional cubes.

B-15 Appendix B - Reduction of Digital Logic Six-Variable K-Map Visualize four 4-variable K-maps stacked one on top of the other; groupings are made in three dimensional cubes.

B-16 Appendix B - Reduction of Digital Logic 3-Level Majority Circuit K-Kap Reduction results in a reduced two-level circuit (that is, AND followed by OR. Inverters are not included in the two-level count). Algebraic reduction can result in multi-level circuits with even fewer logic gates and fewer inputs to the logic gates.

B-17 Appendix B - Reduction of Digital Logic Map-Entered Variables An example of a K-map with a map-entered variable D.

B-18 Appendix B - Reduction of Digital Logic Two Map-Entered Variables A K-map with two map-entered variables D and E. F = BC + AC D + BE + _ A BC E

B-19 Appendix B - Reduction of Digital Logic Truth Table with Don t Cares A truth table representation of a single function with don t cares.

B-20 Appendix B - Reduction of Digital Logic Tabular (Quine-McCluskey) Reduction Tabular reduction begins by grouping minterms for which F is nonzero according to the number of 1 s in each minterm. Don t cares are considered to be nonzero. The next step forms a consensus (the logical form of a cross product) between each pair of adjacent groups for all terms that differ in only one variable.

B-21 Appendix B - Reduction of Digital Logic Table of Choice The prime implicants form a set that completely covers the function, although not necessarily minimally. A table of choice is used to obtain a minimal cover set.

B-22 Appendix B - Reduction of Digital Logic Reduced Table of Choice In a reduced table of choice, the essential prime implicants and the minterms they cover are removed, producing the eligible set. F = _ A BC + A _ B C + BD + _ A D

B-23 Appendix B - Reduction of Digital Logic Multiple Output Truth Table The power of tabular reduction comes into play for multiple functions, in which minterms can be shared among the functions.

B-24 Appendix B - Reduction of Digital Logic Multiple Output Table of Choice F 0 (A,B,C) = ABC + BC F 1 (A,B,C) = AC + AC + BC F 2 (A,B,C) = B

B-25 Appendix B - Reduction of Digital Logic Speed and Performance The speed of a digital system is governed by: the propagation delay through the logic gates and the propagation delay across interconnections. We will look at characterizing the delay for a logic gate, and a method of reducing circuit depth using function decomposition.

B-26 Appendix B - Reduction of Digital Logic Propagation Delay for a NOT Gate (From Hamacher et. al. 1990)

B-27 Appendix B - Reduction of Digital Logic MUX Decomposition

B-28 Appendix B - Reduction of Digital Logic OR-Gate Decomposition Fanin affects circuit depth.

B-29 Appendix B - Reduction of Digital Logic State Reduction Description of state machine M 0 to be reduced.

B-30 Appendix B - Reduction of Digital Logic A next state tree for M 0. Distinguishing Tree

B-31 Appendix B - Reduction of Digital Logic Reduced State Table A reduced state table for machine M 1.

B-32 Appendix B - Reduction of Digital Logic The State Assignment Problem Two state assignments for machine M 2.

B-33 Appendix B - Reduction of Digital Logic State Assignment SA 0 Boolean equations for machine M 2 using state assignment SA 0.

B-34 Appendix B - Reduction of Digital Logic State Assignment SA 1 Boolean equations for machine M 2 using state assignment SA 1.

B-35 Appendix B - Reduction of Digital Logic Sequence Detector State Transition Diagram

B-36 Appendix B - Reduction of Digital Logic Sequence Detector State Table

B-37 Appendix B - Reduction of Digital Logic Sequence Detector Reduced State Table

B-38 Appendix B - Reduction of Digital Logic Sequence Detector State Assignment

B-39 Appendix B - Reduction of Digital Logic Excitation Tables In addition to the D flip-flop, the S-R, J-K, and T flip-flops are used as delay elements in finite state machines. A Master-Slave J-K flip-flop is shown below.

B-40 Appendix B - Reduction of Digital Logic Sequence Detector K-Maps K-map reduction of next state and output functions for sequence detector.

B-41 Appendix B - Reduction of Digital Logic Clocked T Flip-Flop Logic diagram and symbol for a T flip-flop.

B-42 Appendix B - Reduction of Digital Logic Sequence Detector Circuit

B-43 Appendix B - Reduction of Digital Logic Excitation Tables Each table shows the settings that must be applied at the inputs at time t in order to change the outputs at time t+1.

B-44 Appendix B - Reduction of Digital Logic Serial Adder

B-45 Appendix B - Reduction of Digital Logic Serial Adder Next-State Functions Truth table showing next-state functions for a serial adder for D, S- R, T, and J-K flip-flops. Shaded functions are used in the example.

B-46 Appendix B - Reduction of Digital Logic J-K Flip-Flop Serial Adder Circuit

B-47 Appendix B - Reduction of Digital Logic D Flip-Flop Serial Adder Circuit

B-48 Appendix B - Reduction of Digital Logic Majority Finite State Machine

B-49 Appendix B - Reduction of Digital Logic Majority FSM State Table (a) State table for majority FSM; (b) partitioning; (c) reduced state table.

B-50 Appendix B - Reduction of Digital Logic Majority FSM State Assignment (a) State assignment for reduced majority FSM using D flipflops; and (b) using T flip-flops.

B-51 Appendix B - Reduction of Digital Logic Majority FSM Circuit