ECE 2300 Digital Logic & Computer Organization

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

Systems I: Computer Organization and Architecture

Karnaugh Maps (K-Maps)

Philadelphia University Student Name: Student Number:

Computer Science Final Examination Friday December 14 th 2001

MODULAR CIRCUITS CHAPTER 7

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

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

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

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

Fundamentals of Digital Design

CprE 281: Digital Logic

CPE100: Digital Logic Design I

211: Computer Architecture Summer 2016

UNIVERSITI TENAGA NASIONAL. College of Information Technology

DIGITAL LOGIC CIRCUITS

UNIT II COMBINATIONAL CIRCUITS:

Philadelphia University Faculty of Engineering

Lecture 2 Review on Digital Logic (Part 1)

Homework Assignment #1 Solutions EE 477 Spring 2017 Professor Parker

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

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

Philadelphia University Student Name: Student Number:

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

COMBINATIONAL LOGIC FUNCTIONS

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

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

Digital Logic Design ENEE x. Lecture 14

Digital Logic Appendix A

DIGITAL LOGIC CIRCUITS

Logic Design Combinational Circuits. Digital Computer Design

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

Total Time = 90 Minutes, Total Marks = 50. Total /50 /10 /18

Written exam for IE1204/5 Digital Design with solutions Thursday 29/

Chap 2. Combinational Logic Circuits

Lecture 7: Karnaugh Map, Don t Cares

Combinational Logic. Review of Combinational Logic 1

CPE100: Digital Logic Design I

Part 1: Digital Logic and Gates. Analog vs. Digital waveforms. The digital advantage. In real life...

ENGIN 112 Intro to Electrical and Computer Engineering

Adders, subtractors comparators, multipliers and other ALU elements

Boolean Algebra. Digital Logic Appendix A. Postulates, Identities in Boolean Algebra How can I manipulate expressions?

Written exam with solutions IE Digital Design Friday 21/

CHAPTER1: Digital Logic Circuits Combination Circuits

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

Final Exam. ECE 25, Spring 2008 Thursday, June 12, Problem Points Score Total 90

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

Boolean Algebra. Digital Logic Appendix A. Boolean Algebra Other operations. Boolean Algebra. Postulates, Identities in Boolean Algebra

Unit 3 Session - 9 Data-Processing Circuits

Adders, subtractors comparators, multipliers and other ALU elements

COMBINATIONAL LOGIC CIRCUITS. Dr. Mudathir A. Fagiri

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

PG - TRB UNIT-X- DIGITAL ELECTRONICS. POLYTECHNIC-TRB MATERIALS

IT T35 Digital system desigm y - ii /s - iii

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

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

Design of Sequential Circuits

ELCT201: DIGITAL LOGIC DESIGN

ECE 341. Lecture # 3

Lecture A: Logic Design and Gates

CSE 140L Spring 2010 Lab 1 Assignment Due beginning of the class on 14 th April

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

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

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

MC9211 Computer Organization

Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4

Unit 2 Session - 6 Combinational Logic Circuits

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

ECE 545 Digital System Design with VHDL Lecture 1. Digital Logic Refresher Part A Combinational Logic Building Blocks

UNIT 1. BOOLEAN ALGEBRA AND COMBINATIONAL CIRCUITS

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

Combinational Logic. By : Ali Mustafa

14:332:231 DIGITAL LOGIC DESIGN

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CS6201 DIGITAL PRINCIPLES AND SYSTEM DESIGN

Chapter 5. Digital systems. 5.1 Boolean algebra Negation, conjunction and disjunction

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

Written exam with solutions IE1204/5 Digital Design Monday 23/

Midterm Examination # 1 Wednesday, February 25, Duration of examination: 75 minutes

Written exam with solutions IE1204/5 Digital Design Friday 13/

Chapter 4. Combinational: Circuits with logic gates whose outputs depend on the present combination of the inputs. elements. Dr.

COSC3330 Computer Architecture Lecture 2. Combinational Logic

Karnaugh Map & Boolean Expression Simplification

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

Review for Test 1 : Ch1 5

EE 209 Logic Cumulative Exam Name:

Cs302 Quiz for MID TERM Exam Solved

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

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

Gate-Level Minimization

SAMPLE ANSWERS MARKER COPY

BER KELEY D AV IS IR VINE LOS AN GELES RIVERS IDE SAN D IEGO S AN FRANCISCO

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

Numbers and Arithmetic

Practice Final Exam Solutions

Floating Point Representation and Digital Logic. Lecture 11 CS301

UNSIGNED BINARY NUMBERS DIGITAL ELECTRONICS SYSTEM DESIGN WHAT ABOUT NEGATIVE NUMBERS? BINARY ADDITION 11/9/2018

Written reexam with solutions for IE1204/5 Digital Design Monday 14/

Lecture 5: NAND, NOR and XOR Gates, Simplification of Algebraic Expressions

Simplifying Logic Circuits with Karnaugh Maps

Transcription:

ECE 23 Digital Logic & Computer Organization Spring 28 Combinational Building Blocks Lecture 5:

Announcements Lab 2 prelab due tomorrow HW due Friday HW 2 to be posted on Thursday Lecture 4 to be replayed on Thursday Instructor office hour moved to Friday (2/9) -:3am @ Rhodes 32 (one-time change) Lecture 5: 2

Example: K-Map to Simplify SOP C AB ABC Y C A B Lecture 5: 3

Review: K-Map to Simplify POS F=π A,B,C,D (, 2, 6, 7, 8, ) CD AB Corners: B+D Other: A+B +C F=(B+D) (A+B +C ) Lecture 5: 4

Don t Cares Combinations Sometimes the output for a particular input combination is unspecified or irrelevant Such as an input combination that will never happen Represent as a d (or x ) in the truth table Example: Detect all even decimal digits except 6 Four input bits are still required, but inputs -9 would appear -5 are don t care values Lecture 5: 5

Don t Cares in Karnaugh Map Represent as a d (or x ) in the K-Map Don t cares can be used as - or -cells as needed Only circle if doing so creates a larger prime implicant (and thus a more minimal expression) Lecture 5: 6

Don t-care Example Detect all even decimal digits except 6 Inputs -5 will never occur CD AB d d d d d d F = C D + B D Lecture 5: 7

Multi-Level Logic So far we have primarily focused on two-level representations for combinational logic Multi-level logic is typically more compact (i.e., cost-efficient) in practice Lecture 5: 8

Combinational Building Blocks More complex functions built from basic gates Comparators Multiplexers Decoders Encoders Typically tens to hundreds of transistors Used to be called Medium Scale Integration (MSI) Common building blocks for digital systems Lecture 5: 9

XOR Gate XOR: X Y XÅY (XÅY) F=X Y +X Y Similar to OR gate, except when inputs are Used for comparisons, error checking, etc. XNOR: F=X Y +X Y Complemented version of XOR Lecture 5:

Equality Comparators Using XOR -bit comparator X Y different 4-bit comparator A B A B A2 B2 A3 B3 different Lecture 5:

Multiplexer ( mux ) Connects one of n inputs to the output select control signals pick one of the n sources élog 2 nù select bits Useful when multiple data sources need to be routed to a single destination Often arises from resource sharing Example: select -of-n data inputs to an adder Lecture 5: 2

2-to- Mux Selects one of two inputs to appear at the output Y = S I + S I 2-to- mux I I Y = I I I S Y S= I I Y = I S= Lecture 5: 3

4-to- Mux Selects one of four inputs to appear at the output Y = S S I + S S I + S S I2 + S S I3 I3 I2 I I 4-to- mux I3 I2 Y I I S S I3 I2 I I Lecture 5: 4

Cascading Multiplexers Large multiplexers can be implemented by cascading smaller ones S S S2??? I7 I6 I5 I4 I3 I2 I I 4: mux 4: mux 2: mux 8: mux Y I7 I6 I5 I4 I3 I2 I I 2: mux 2: mux 2: mux 2: mux 4: mux Y Lecture 5: 5

Lecture 5: 6 Any function of n variables can be implemented with a 2 n : multiplexer Logic Functions Using Muxes Cin A B 2 3 4 5 6 7 S2 8: MUX S S Cout Cout S Cin B A Cout S Cin B A Cout S Cin B A Cout S Cin B A Input variables connected to select inputs Data inputs tied to or according to truth table

Getting Away with a Smaller Mux Can use 2 n- : multiplexer and at most one inverter Connect n- input variables to select inputs Data inputs tied to,, n th variable, or inverted n th variable A B C D Y D D 8: MUX 2 3 4 5 6 7 S2 S S A B C Y Lecture 5: 7

Binary decoders n inputs, 2 n outputs Decoder Each output corresponds to a unique input value At most one output asserted at a time Example: A -to-2 decoder A Y Y Lecture 5: 8

2-to-4 Decoder A A 2:4 Decoder Y 3 Y 2 Y Y A A Y 3 A A Y 3 Y 2 Y Y Y3 = A A Y2 = A A Y = A A Y = A A Y 2 Y Y Lecture 5: 9

Logic Functions Using Decoders n:2 n decoder can be used to implement any function of n variables Connect variables to inputs Appropriate minterms summed using extra gates to form the function A B C D 5 4:6 Decoder 4 3 2 I3 I2 9 I 8 I 7 6 5 4 3 2 ABCD ABCD' ABC'D ABC'D' AB'CD AB'CD' AB'C'D AB'C'D' A'BCD A'BCD' A'BC'D A'BC'D' A'B'CD A'B'CD' A'B'C'D A'B'C'D' Lecture 5: 2

Logic Functions Using Decoders F = A B C D + AB CD + ABC D F2 = A B C + A B CD F3 = A+B+C+D = (A B C D ) A B C D 5 4:6 Decoder 4 3 2 I3 I2 9 I 8 I 7 6 5 4 3 2 ABCD ABCD' ABC'D ABC'D' AB'CD AB'CD' AB'C'D AB'C'D' A'BCD A'BCD' A'BC'D A'BC'D' A'B'CD A'B'CD' A'B'C'D A'B'C'D' F3 F F2 Lecture 5: 2

Decoder with Enable A A E 2:4 Decoder Y 3 Y 2 Y Y E A A Y 3 Y 2 Y Y X X X: don t care input Here XX covers,,, Lecture 5: 22

Decoder with Enable (2) E A A Y3 = A A E Y2 = A A E Y = A A E Y = A A E Y 3 Y 2 Y Y Lecture 5: 23

Opposite of decoders Encoders Binary encoders: 2 n inputs and n outputs Decoder Encoder Lecture 5: 24

4-to-2 Encoder Exactly one input is asserted at any given time I3 I2 I I Y Y I3 I2 I I Y Y I2 I3 I Y Y Lecture 5: 25

Priority Encoder Highest numbered inputs have priority when multiple inputs are asserted at the same time Example: 4-to-2 priority encoder I3 I2 I I Y Y None X X X X X X I3 I2 I I Y Y None Y=I3+I3 I2=I3+I2 Y=I3+I3 I2 I=I3+I2 I None=I3 I2 I I Lecture 5: 26

Example: Microprocessor Interrupts In order for devices to get service, they interrupt the microprocessor Most important requests are given priority I/O device requests power failure disk error I7 I6 I5 I4 I3 I2 I I 8:3 Priority Encoder Y2 Y Y None Microprocessor Lecture 5: 27

Before Next Class H&H 3.-3.2 Next Time Sequential Logic: Clocks, Latches, Flip-Flops Lecture 5: 28