CMSC 313 Lecture 19 Homework 4 Questions Combinational Logic Components Programmable Logic Arrays Introduction to Circuit Simplification

Similar documents
CMSC 313 Lecture 19 Combinational Logic Components Programmable Logic Arrays Karnaugh Maps

CMSC 313 Lecture 18 Midterm Exam returned Assign Homework 3 Circuits for Addition Digital Logic Components Programmable Logic Arrays

CMSC 313 Lecture 16 Announcement: no office hours today. Good-bye Assembly Language Programming Overview of second half on Digital Logic DigSim Demo

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

CMSC 313 Lecture 15 Good-bye Assembly Language Programming Overview of second half on Digital Logic DigSim Demo

CMSC 313 Lecture 18 Midterm Exam returned Assign Homework 3 Circuits for Addition Digital Logic Components Programmable Logic Arrays

Appendix A: Digital Logic. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V. Heuring

211: Computer Architecture Summer 2016

CMSC 313 Preview Slides

CMSC 313 Lecture 16 Postulates & Theorems of Boolean Algebra Semiconductors CMOS Logic Gates

CMSC 313 Lecture 17. Focus Groups. Announcement: in-class lab Thu 10/30 Homework 3 Questions Circuits for Addition Midterm Exam returned

Lecture 6: Gate Level Minimization Syed M. Mahmud, Ph.D ECE Department Wayne State University

for Digital Systems Simplification of logic functions Tajana Simunic Rosing Sources: TSR, Katz, Boriello & Vahid

UNIT 5 KARNAUGH MAPS Spring 2011

Karnaugh Maps (K-Maps)

Working with Combinational Logic. Design example: 2x2-bit multiplier

DIGITAL TECHNICS I. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute 5. LECTURE: LOGIC SYNTHESIS

ECE 2300 Digital Logic & Computer Organization

COSC3330 Computer Architecture Lecture 2. Combinational Logic

Appendix A: Digital Logic. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V. Heuring

CSE140: Components and Design Techniques for Digital Systems. Logic minimization algorithm summary. Instructor: Mohsen Imani UC San Diego

Prove that if not fat and not triangle necessarily means not green then green must be fat or triangle (or both).

Numbers & Arithmetic. Hakim Weatherspoon CS 3410, Spring 2012 Computer Science Cornell University. See: P&H Chapter , 3.2, C.5 C.

Combinational Logic (mostly review!)

CSE 140 Lecture 11 Standard Combinational Modules. CK Cheng and Diba Mirza CSE Dept. UC San Diego

WEEK 3.1 MORE ON KARNAUGH MAPS

Lecture 5. Karnaugh-Map

Systems I: Computer Organization and Architecture

Chapter 3 Combinational Logic Design

Possible logic functions of two variables

Logic. Basic Logic Functions. Switches in series (AND) Truth Tables. Switches in Parallel (OR) Alternative view for OR

Show that the dual of the exclusive-or is equal to its compliment. 7

3. Combinational Circuit Design

Digital Logic & Computer Design CS Professor Dan Moldovan Spring Copyright 2007 Elsevier 2-<101>

Ch 2. Combinational Logic. II - Combinational Logic Contemporary Logic Design 1

Minimization techniques

Digital Logic & Computer Design CS Professor Dan Moldovan Spring 2010

Appendix A: Digital Logic. CPSC 352- Computer Organization

Digital Logic. CS211 Computer Architecture. l Topics. l Transistors (Design & Types) l Logic Gates. l Combinational Circuits.

Logic Design Combinational Circuits. Digital Computer Design

Section 3: Combinational Logic Design. Department of Electrical Engineering, University of Waterloo. Combinational Logic

Unit 3 Session - 9 Data-Processing Circuits

Lecture 2 Review on Digital Logic (Part 1)

Digital System Design Combinational Logic. Assoc. Prof. Pradondet Nilagupta

COMP2611: Computer Organization. Introduction to Digital Logic

Digital Logic Design ENEE x. Lecture 14

Logic. Combinational. inputs. outputs. the result. system can

Philadelphia University Student Name: Student Number:

Lecture 6: Manipulation of Algebraic Functions, Boolean Algebra, Karnaugh Maps

Review. EECS Components and Design Techniques for Digital Systems. Lec 06 Minimizing Boolean Logic 9/ Review: Canonical Forms

The Karnaugh Map COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

Chapter 2 Combinational Logic Circuits

ELCT201: DIGITAL LOGIC DESIGN

Why digital? Overview. Number Systems. Binary to Decimal conversion

DESIGN AND IMPLEMENTATION OF ENCODERS AND DECODERS. To design and implement encoders and decoders using logic gates.

Floating Point Representation and Digital Logic. Lecture 11 CS301

Unit 2 Session - 6 Combinational Logic Circuits

UNIT III Design of Combinational Logic Circuits. Department of Computer Science SRM UNIVERSITY

Lecture 22 Chapters 3 Logic Circuits Part 1

Chap 2. Combinational Logic Circuits

Simlification of Switching Functions

ELCT201: DIGITAL LOGIC DESIGN

We are here. Assembly Language. Processors Arithmetic Logic Units. Finite State Machines. Circuits Gates. Transistors

DIGITAL LOGIC CIRCUITS

Contents. Chapter 3 Combinational Circuits Page 1 of 36

Reg. No. Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER Second Semester. Computer Science and Engineering

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

Review for Test 1 : Ch1 5

Combinational Logic. Mantıksal Tasarım BBM231. section instructor: Ufuk Çelikcan

Propositional Logic. Logical Expressions. Logic Minimization. CNF and DNF. Algebraic Laws for Logical Expressions CSC 173

Chapter 4 Optimized Implementation of Logic Functions

ELC224C. Karnaugh Maps

DIGITAL LOGIC CIRCUITS

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Digital Logic

Karnaugh Maps ف ر آ ا د : ا ا ب ا م آ ه ا ن ر ا

Basic Gate Repertoire

L4: Karnaugh diagrams, two-, and multi-level minimization. Elena Dubrova KTH / ICT / ES

Logic and Computer Design Fundamentals. Chapter 2 Combinational Logic Circuits. Part 2 Circuit Optimization

Simplification of Boolean Functions. Dept. of CSE, IEM, Kolkata

Textbook: Digital Design, 3 rd. Edition M. Morris Mano

Digital Circuit And Logic Design I. Lecture 4

Chapter 4: Designing Combinational Systems Uchechukwu Ofoegbu

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

CS/EE 181a 2008/09 Lecture 4

Boolean cubes EECS150. Mapping truth tables onto cubes. Simplification. The Uniting Theorem. Three variable example

II. COMBINATIONAL LOGIC DESIGN. - algebra defined on a set of 2 elements, {0, 1}, with binary operators multiply (AND), add (OR), and invert (NOT):

Week-I. Combinational Logic & Circuits

Combinational Logic Design/Circuits

CS/EE 181a 2010/11 Lecture 4

Vidyalankar S.E. Sem. III [CMPN] Digital Logic Design and Analysis Prelim Question Paper Solution

Spiral 1 / Unit 5. Karnaugh Maps

Outcomes. Spiral 1 / Unit 5. Logic Function Synthesis KARNAUGH MAPS. Karnaugh Maps

Chapter 2. Review of Digital Systems Design

9.1. Unit 9. Implementing Combinational Functions with Karnaugh Maps or Memories

Logic Design I (17.341) Fall Lecture Outline

Combinational logic. Possible logic functions of two variables. Minimal set of functions. Cost of different logic functions.

E&CE 223 Digital Circuits & Systems. Lecture Transparencies (Boolean Algebra & Logic Gates) M. Sachdev. Section 2: Boolean Algebra & Logic Gates

COMBINATIONAL LOGIC FUNCTIONS

CS470: Computer Architecture. AMD Quad Core

Digital Electronics Circuits 2017

Transcription:

CMSC 33 Lecture 9 Homework 4 Questions Combinational Logic Components Programmable Logic rrays Introduction to Circuit Simplification UMC, CMSC33, Richard Chang <chang@umbc.edu>

CMSC 33, Computer Organization & ssembly Language Programming, section Fall 23 Homework 4 Due: Thursday, November 6, 23. ( points) Question 3.8, page 96, Murdocca & Heuring 2. ( points) Question 3.9, page 96, Murdocca & Heuring 3. (2 points) Read the instructions on how to run the DigSim digital simulator on the course web page: http://www.csee.umbc.edu/~chang/cs33.f3/digsim-info.shtml Using DigSim, wire up the following circuit diagram, play with the switches, create a text box with your name, and save the circuit diagram. (This is the same as the circuit we used in the in-class lab.) The file which has your circuit diagram should be a plain text file that starts with something like: # Digsim file version describe component TwoNandPort pos 23 3 Use a text editor to look at the file and make sure that the file is not empty and has some data similar to the above. Next, use DigSim to load the file and make sure that this still works. If all is well, submit the circuit file using the Unix submit command as in previous assignments. The submission name for this assignment is: digsim.the UNIX command to do this should look something like: submit cs33_ digsim xor.sim

Last Time & efore In-class lab: next time Tuesday /8 Half adders & full adders Ripple carry adders vs carry lookahead adders Propagation delay UMC, CMSC33, Richard Chang <chang@umbc.edu>

-26 ppendix : Digital Logic Digital Components High level digital circuit designs are normally created using collections of logic gates referred to as components, rather than using individual logic gates. Levels of integration (numbers of gates) in an integrated circuit (IC) can roughly be considered as: Small scale integration (SSI): - gates. Medium scale integration (MSI): to gates. Large scale integration (LSI): -, logic gates. Very large scale integration (VLSI):,-upward logic gates. These levels are approximate, but the distinctions are useful in comparing the relative complexity of circuits. 999 M. Murdocca and V. Heuring

Data Inputs -27 ppendix : Digital Logic Multiplexer D D D 2 D 3 F F D D D 2 D 3 Control Inputs F = D + D + D 2 + D 3 999 M. Murdocca and V. Heuring

-28 ppendix : Digital Logic ND-OR Implementation of MUX D D D 2 F D 3 999 M. Murdocca and V. Heuring

-29 ppendix : Digital Logic MUX Implementation of Majority Principle: Use the 3 MUX control inputs to select (one at a time) the 8 data inputs. C M F C 999 M. Murdocca and V. Heuring

-3 ppendix : Digital Logic 4-to- MUX Implements 3-Var Function Principle: Use the and inputs to select a pair of minterms. The value applied to the MUX data input is selected from {,, C, C} to achieve the desired behavior of the minterm pair. C F C C C C F 999 M. Murdocca and V. Heuring

-3 ppendix : Digital Logic Demultiplexer D F = D F = D F F F 2 F 3 F 2 = D F 3 = D D F F F 2 F 3 999 M. Murdocca and V. Heuring

-32 ppendix : Digital Logic Gate-Level Implementation of DEMUX F D F F 2 F 3 999 M. Murdocca and V. Heuring

-33 ppendix : Digital Logic Decoder Enable = Enable = D D Enable D 2 D 3 D D D 2 D 3 D D D 2 D 3 D = D = D 2 = D3 = 999 M. Murdocca and V. Heuring

-34 ppendix : Digital Logic Gate-Level Implementation of Decoder D D D 2 D 3 Enable 999 M. Murdocca and V. Heuring

-35 ppendix : Digital Logic Decoder Implementation of Majority Function Note that the enable input is not always present. We use it when discussing decoders for memory. C M 999 M. Murdocca and V. Heuring

-36 Priority Encoder ppendix : Digital Logic n encoder translates a set of inputs into a binary encoding. Can be thought of as the converse of a decoder. priority encoder imposes an order on the inputs. i has a higher priority than i+ 2 3 F F 2 3 F F F = 3 + 2 F = 2 3 + 999 M. Murdocca and V. Heuring

-37 ppendix : Digital Logic ND-OR Implementation of Priority Encoder F 2 3 F 999 M. Murdocca and V. Heuring

-38 C ppendix : Digital Logic Programmable Logic rray OR matrix PL is a customizable ND matrix followed by a customizable OR matrix. lack box view of PL: C PL F F Fuses ND matrix F F 999 M. Murdocca and V. Heuring

-39 C ppendix : Digital Logic Simplified Representation of PL Implementation of Majority Function C C C C F (Majority) F (Unused) 999 M. Murdocca and V. Heuring

-4 ppendix : Digital Logic Full dder i i C i S i C i+ i i C i+ Full adder S i C i 999 M. Murdocca and V. Heuring

-43 C in ppendix : Digital Logic PL Realization of Full dder Sum C out 999 M. Murdocca and V. Heuring

-3 ppendix : Reduction of Digital Logic Reduction (Simplification) of oolean Expressions It is usually possible to simplify the canonical SOP (or POS) forms. smaller oolean 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. 999 M. Murdocca and V. Heuring

-7 ppendix : 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. C C C C C C C C C 999 M. Murdocca and V. Heuring

-8 ppendix : Reduction of Digital Logic K-Map for Majority Function Place a in each cell that corresponds to that minterm. Cells on the outer edge of the map wrap around Minterm Index 2 3 4 5 6 7 C F C -side -side balance tips to the left or right depending on whether there are more s or s. 999 M. Murdocca and V. Heuring

-9 ppendix : Reduction of Digital Logic djacency Groupings for Majority Function C F = C + C + 999 M. Murdocca and V. Heuring

- ppendix : Reduction of Digital Logic Minimized ND-OR Majority Circuit C F F = C + C + The K-map approach yields the same minimal two-level form as the algebraic approach. 999 M. Murdocca and V. Heuring

- ppendix : 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. CD CD 2 4 5 2 3 3 4 F = C + C D + C + C D F = D + C + C D + C + C D 999 M. Murdocca and V. Heuring

Example Requiring More Rules CD 4 2 8 5 3 9 3 7 5 D 2 6 4 C UMC, CMSC33, Richard Chang <chang@umbc.edu>

-2 ppendix : Reduction of Digital Logic K-Map Corners are Logically djacent CD F = C D + D + 999 M. Murdocca and V. Heuring

-3 ppendix : 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. CD d CD d d d F = C D + D F = D + D 999 M. Murdocca and V. Heuring

Two bits:,,, Gray Code Three bits:,,,,,,, Successive bit patterns only differ at position For Karnaugh maps, adjacent s represent minterms that can be simplified using the rule: C + C = ( + )C = C = C C UMC, CMSC33, Richard Chang <chang@umbc.edu>

Karnaugh Maps Implicant: rectangle with, 2, 4, 8, 6... s Prime Implicant: an implicant that cannot be extended into a larger implicant Essential Prime Implicant: the only prime implicant that covers some K-map lgorithm (not from M&H):. Find LL the prime implicants. e sure to check every and to use don t cares. 2. Include all essential prime implicants. 3. Try all possibilities to find the minimum cover for the remaining s. UMC, CMSC33, Richard Chang <chang@umbc.edu>

K-map Example CD 4 2 8 d CD 4 2 8 d 5 3 9 d 3 7 5 d D 5 3 9 d 3 7 5 d D 2 6 4 2 6 4 C C + C D + D UMC, CMSC33, Richard Chang <chang@umbc.edu>

Notes on K-maps lso works for POS Takes 2 n time for formulas with n variables Only optimizes two-level logic Reduces number of terms, then number of literals in each term ssumes inverters are free Does not consider minimizations across functions Circuit minimization is generally a hard problem Quine-McCluskey can be used with more variables CD tools are available if you are serious UMC, CMSC33, Richard Chang <chang@umbc.edu>

Next Time Continue Circuit Simplification Homework 4 due Homework 5 assigned UMC, CMSC33, Richard Chang <chang@umbc.edu>