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

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

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

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

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

Overview. Arithmetic circuits. Binary half adder. Binary full adder. Last lecture PLDs ROMs Tristates Design examples

Module 2. Basic Digital Building Blocks. Binary Arithmetic & Arithmetic Circuits Comparators, Decoders, Encoders, Multiplexors Flip-Flops

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

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

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

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

Combinational Logic. By : Ali Mustafa

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

Digital Logic Design ENEE x. Lecture 14

Systems I: Computer Organization and Architecture

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

Fundamentals of Computer Systems

Chapter 5 Arithmetic Circuits

COMBINATIONAL LOGIC FUNCTIONS

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

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

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

CSE140: Components and Design Techniques for Digital Systems. Decoders, adders, comparators, multipliers and other ALU elements. Tajana Simunic Rosing

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

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

Midterm Exam Two is scheduled on April 8 in class. On March 27 I will help you prepare Midterm Exam Two.

Combinational Logic. Jee-Hwan Ryu. School of Mechanical Engineering Korea University of Technology and Education

Combinational Logic. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C.

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

Chapter 2 (Lect 2) Canonical and Standard Forms. Standard Form. Other Logic Operators Logic Gates. Sum of Minterms Product of Maxterms

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

Combinational Logic. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C.

Arithmetic Circuits How to add and subtract using combinational logic Setting flags Adding faster

Chapter 4: Designing Combinational Systems Uchechukwu Ofoegbu

Slides for Lecture 19

Combinational Logic Design Arithmetic Functions and Circuits

CprE 281: Digital Logic

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

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

Adders - Subtractors

ว ตถ ประสงค ของบทเร ยน

ELCT201: DIGITAL LOGIC DESIGN

Chapter 3 Combinational Logic Design

Chapter 03: Computer Arithmetic. Lesson 03: Arithmetic Operations Adder and Subtractor circuits Design

Appendix A: Digital Logic. CPSC 352- Computer Organization

ECE 2300 Digital Logic & Computer Organization

CSEE 3827: Fundamentals of Computer Systems. Combinational Circuits

COSC3330 Computer Architecture Lecture 2. Combinational Logic

Digital- or Logic Circuits. Outline Logic Circuits. Logic Voltage Levels. Binary Representation

COMBINATIONAL LOGIC CIRCUITS. Dr. Mudathir A. Fagiri

Function of Combinational Logic ENT263

Fundamentals of Digital Design

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

Sample Test Paper - I

Chapter 2. Review of Digital Systems Design

Chapter 4: Combinational Logic Solutions to Problems: [1, 5, 9, 12, 19, 23, 30, 33]

14:332:231 DIGITAL LOGIC DESIGN

Floating Point Representation and Digital Logic. Lecture 11 CS301

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

9/29/2016. Task: Checking for a Lower-Case Letter. ECE 120: Introduction to Computing. Change C 5 to C 5 to Obtain L(C) from U(C)

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

Ch 4. Combinational Logic Technologies. IV - Combinational Logic Technologies Contemporary Logic Design 1

EEA051 - Digital Logic 數位邏輯 吳俊興高雄大學資訊工程學系. September 2004

Menu. Binary Adder EEL3701 EEL3701. Add, Subtract, Compare, ALU

Adders allow computers to add numbers 2-bit ripple-carry adder

Binary addition (1-bit) P Q Y = P + Q Comments Carry = Carry = Carry = Carry = 1 P Q

Digital Electronics Circuits 2017

CPE100: Digital Logic Design I

Adders, subtractors comparators, multipliers and other ALU elements

Combina-onal Logic Chapter 4. Topics. Combina-on Circuit 10/13/10. EECE 256 Dr. Sidney Fels Steven Oldridge

Chapter 2 Boolean Algebra and Logic Gates

Combinational Logic Design Combinational Functions and Circuits

Advanced Information Storage 02

211: Computer Architecture Summer 2016

ECE 341. Lecture # 3

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

3. Combinational Circuit Design

COSC 243. Introduction to Logic And Combinatorial Logic. Lecture 4 - Introduction to Logic and Combinatorial Logic. COSC 243 (Computer Architecture)

Digital Logic Design. Midterm #2

CMPUT 329. Circuits for binary addition

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

Review. EECS Components and Design Techniques for Digital Systems. Lec 18 Arithmetic II (Multiplication) Computer Number Systems

Class Website:

Logic and Computer Design Fundamentals. Chapter 5 Arithmetic Functions and Circuits

EC 413 Computer Organization

Arithmetic Circuits Didn t I learn how to do addition in the second grade? UNC courses aren t what they used to be...

Carry Look Ahead Adders

CPE100: Digital Logic Design I

Addition and Subtraction

S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques s complement 2 s complement 1 s complement

ELCT201: DIGITAL LOGIC DESIGN

Arithmetic and Logic Unit First Part

ENGIN 112 Intro to Electrical and Computer Engineering

Problem Set 6 Solutions

CHAPTER1: Digital Logic Circuits Combination Circuits

Chapter 5. Digital Design and Computer Architecture, 2 nd Edition. David Money Harris and Sarah L. Harris. Chapter 5 <1>

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

Unit 3 Session - 9 Data-Processing Circuits

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

EECS150 - Digital Design Lecture 10 - Combinational Logic Circuits Part 1

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

Transcription:

CMSC 33 Lecture 8 Midterm Exam returned ssign Homework 3 Circuits for ddition Digital Logic Components Programmable Logic rrays UMC, CMSC33, Richard Chang <chang@umbc.edu>

Half dder Inputs: and Outputs: S = lower bit of +, c out = carry bit S c out Using Sum-of-Products: S = +, c out =. lternatively, we could use XOR: S =.

dder Inputs:, and c in Outputs: S = lower bit of +, c out = carry bit c in S c out S = C + C + C + C = C. c out =MJ3= + C + C. 2

3-6 Ripple Carry dder Chapter 3: rithmetic Two binary numbers and are added from right to left, creating a sum and a carry at the outputs of each full for each bit position. b 3 a 3 c 3 b 2 a 2 c 2 b a c b a c c 4 s 3 s 2 s s

3-7 Constructing Larger dders Chapter 3: rithmetic 6-bit can be made up of a cascade of four 4-bit ripplecarry s. a 5 a 4 a 3 a 2 b 5 b 4 b 3 b 2 b 3 a 3 b 2 a 2 b a b a c 6 4-it dder #3 c 2 c 4 c... 4-it dder # s 5 s 4 s 3 s 2 s 3 s 2 s s

3-8 Subtractor Chapter 3: rithmetic Truth table and schematic symbol for a ripple-borrow subtractor: a i b i bor i diff i bor i+ b i a i bor i+ subtractor diff i (a i b i ) bori

3-9 Ripple-orrow Subtractor Chapter 3: rithmetic ripple-borrow subtractor can be composed of a cascade of full subtractors. Two binary numbers and are subtracted from right to left, creating a difference and a borrow at the outputs of each full subtractor for each bit position. b 3 a 3 b 2 a 2 b a b a bor subtractor subtractor subtractor subtractor bor 4 diff 3 diff 2 diff diff

3- Combined dder/subtractor Chapter 3: rithmetic single ripple-carry can perform both addition and subtraction, by forming the two s complement negative for when subtracting. (Note that + is added at c for two s complement.) b 3 b 2 b b DD / SUTRCT a 3 a 2 a a c c 4 s 3 s 2 s s

3-2 Carry-Lookahead ddition Chapter 3: rithmetic Carries are represented in terms of G i (generate) and P i (propagate) expressions. G i = a i b i and P i = a i + b i c = c = G c 2 = G + P G c 3 = G 2 + P 2 G + P 2 P G c 4 = G 3 + P 3 G 2 + P 3 P 2 G + P 3 P 2 P G

3-22 Carry Lookahead dder Chapter 3: rithmetic b 3 a 3 b 2 a 2 b a b a G 3 P 3 G 2 P 2 G P G Maximum gate delay for the carry generation is only 3. The full s introduce two more gate delays. Worst case path is 5 gate delays. c 4 c 3 c 2 c c s 3 s 2 s s

-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.

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

-28 ppendix : Digital Logic ND-OR Implementation of MUX D D D 2 F D 3

-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

-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

-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

-32 ppendix : Digital Logic Gate-Level Implementation of DEMUX F D F F 2 F 3

-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 = D 3 =

-34 ppendix : Digital Logic Gate-Level Implementation of Decoder D D D 2 D 3 Enable

-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