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

Similar documents
Carry Look Ahead Adders

Combinational Logic. By : Ali Mustafa

Adders - Subtractors

Chapter 5 Arithmetic Circuits

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

COE 202: Digital Logic Design Combinational Circuits Part 2. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

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

Binary addition by hand. Adding two bits

Combinational Logic Design Arithmetic Functions and Circuits

COMBINATIONAL LOGIC FUNCTIONS

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

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

ELCT201: DIGITAL LOGIC DESIGN

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

Looking at a two binary digit sum shows what we need to extend addition to multiple binary digits.

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

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

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

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

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

Addition and Subtraction

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

ELEN Electronique numérique

14:332:231 DIGITAL LOGIC DESIGN

1 Short adders. t total_ripple8 = t first + 6*t middle + t last = 4t p + 6*2t p + 2t p = 18t p

COMPUTERS ORGANIZATION 2ND YEAR COMPUTE SCIENCE MANAGEMENT ENGINEERING UNIT 3 - ARITMETHIC-LOGIC UNIT JOSÉ GARCÍA RODRÍGUEZ JOSÉ ANTONIO SERRA PÉREZ

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

Ex code

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

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

Adders, subtractors comparators, multipliers and other ALU elements

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

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

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

EECS150 - Digital Design Lecture 24 - Arithmetic Blocks, Part 2 + Shifters

The logic is straightforward. Adding two 0s will result in 0. Adding two 1s results in 10 where 1 is the carry bit and 0 is the sum bit.

Systems I: Computer Organization and Architecture

Fundamentals of Digital Design

CprE 281: Digital Logic

CprE 281: Digital Logic

XOR - XNOR Gates. The graphic symbol and truth table of XOR gate is shown in the figure.

CSEE 3827: Fundamentals of Computer Systems. Combinational Circuits

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

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

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

Adders, subtractors comparators, multipliers and other ALU elements

CprE 281: Digital Logic

ARITHMETIC COMBINATIONAL MODULES AND NETWORKS

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

Building a Computer Adder

CS 140 Lecture 14 Standard Combinational Modules

Total Time = 90 Minutes, Total Marks = 100. Total /10 /25 /20 /10 /15 /20

CMPUT 329. Circuits for binary addition

Chapter 4: Designing Combinational Systems Uchechukwu Ofoegbu

Introduction to Digital Logic Missouri S&T University CPE 2210 Subtractors

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

Number representation

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

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

Combinational Logic. Course Instructor Mohammed Abdul kader

Additional Gates COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

L8/9: Arithmetic Structures

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

CprE 281: Digital Logic

What s the Deal? MULTIPLICATION. Time to multiply

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

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

Sample Test Paper - I

Menu. 7-Segment LED. Misc. 7-Segment LED MSI Components >MUX >Adders Memory Devices >D-FF, RAM, ROM Computer/Microprocessor >GCPU

Philadelphia University Faculty of Engineering

UNIVERSITI TENAGA NASIONAL. College of Information Technology

ECE380 Digital Logic. Positional representation

UNIT II COMBINATIONAL CIRCUITS:

211: Computer Architecture Summer 2016

Digital Techniques. Figure 1: Block diagram of digital computer. Processor or Arithmetic logic unit ALU. Control Unit. Storage or memory unit

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

mith College Computer Science CSC270 Spring 16 Circuits and Systems Lecture Notes Week 2 Dominique Thiébaut

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

Design of Sequential Circuits

convert a two s complement number back into a recognizable magnitude.

3. Combinational Circuit Design

Hardware Design I Chap. 4 Representative combinational logic

Module half adder module half_adder(output S,C,input x,y); xor(s,x,y); and(c,x,y); endmodule

High Speed Time Efficient Reversible ALU Based Logic Gate Structure on Vertex Family

Solutions for Appendix C Exercises

EECS150 - Digital Design Lecture 22 - Arithmetic Blocks, Part 1

Review for Test 1 : Ch1 5

Hakim Weatherspoon CS 3410 Computer Science Cornell University

EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits)

CHAPTER1: Digital Logic Circuits Combination Circuits

14:332:231 DIGITAL LOGIC DESIGN. Why Binary Number System?

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)

Outline. EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) Combinational Logic (CL) Defined

WEEK 3.1 MORE ON KARNAUGH MAPS

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

Class Website:

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL INTEGRATED CIRCUITS (DIC) LABORATORY MANUAL III / IV B.E. (ECE) : I - SEMESTER

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

Transcription:

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

Objective To understand adder circuit Subtractor circuit Fast adder circuit 2

Adder Circuit 3

Full Adder Circuit 4

Ripple carry propagation addition method using full adder circuit Compute x i + y i + C i 1 Each bit output z i based on three bits the bits at the inputs and carry-in Carry-in Generated by the next-lower bit of computation 5

Ripple carry propagation in 8-bit adder circuit based on 8 full adders 6

Speed of Adder Speed of the circuit determined by time it takes for the carry signals to propagate through all the full adders Each full adder can t perform its part of the computation until all the full adders to the right of it have completed their parts The computation time grows linearly with the number of bits in the inputs 7

Subtractor Circuit 8

Subtraction Handled by similar methods, using adder modules that compute the difference between two numbers by adding the X and two s complement of Y An adder-based adder-cum-subtractor circuit based on an adder circuit Uses additional circuit of XOR gates 9

XOR gate in adder-cum-subtractor Finds the 1 s complement when subtraction of Y is to be done Does nothing when addition of Y is to be done used in the adder circuit 10

k-bit adder/subtractor Using Two s complement converter circuit with Y 11

Fast Adders (High Speed Adders) and Carry Look Ahead Addition 12

Design of Fast Adders (High Speed Adders) and Carry Look Ahead Addition Ripple carry adder computation time grows linearly with the number of bits in the inputs Use of binary logic cells Output stage sum bit = s i = x i.xor. y i. XOR. C i Output stage carry bit for input to (i + 1)th stage = C i +1 = (x i. AND. y i ). OR. (x i. AND. C i ). OR. (y i. AND. Ci) = C i +1 = (x i.and. y i ). OR. [(x i.or. y i.).and. C i )] 13

Design of Fast Adders (High Speed Adders) and Carry Look Ahead Addition Output stage sum bit = s i = x i.xor. y i. XOR. C i Output stage carry bit for input to (i + 1)th stage = C i +1 = (x i. AND. y i ). OR. (x i. AND. C i ). OR. (y i. AND. Ci) = C i +1 = (x i.and. y i ). OR. [(x i.or. y i.).and. C i )] Ripple carry adder computation time grows linearly with the number of bits in the inputs 14

Design of Fast Adders (High Speed Adders) and Carry Look Ahead Addition Use of binary logic cells Use k-full adders 0th to (k 1)th for k-bit addition An i-th stage adder circuit two logic terms Generating (using x bit and y bit) first term of expression Generating component g i = x i. AND. y i 15

Propagating component Propagating component (us carry, x and y) second term of expression p i = x i OR y i, An output stage carry, C i+1 = g i + pi.c i C i depends on C i 1 C i 1 depends on C i 2, and so on C i 1 is g i 1 + p i 1.C i 1 16

Generating and propoagating components and Carry in CGPS cell g i = x i. AND. y i and p i = x i OR y i, C i+1 = g i + p i. g i 1 + p i. p i 1. g i 2 + p i. p i 1. p i 2. g i 3 +.. + p i. p i 1. p i 2. p 0 C 0 C 4 can be computed ahead using a binary logic cell having p i sand g i s in the inputs C 4 input to next binary logic cell 17

Using Binary Logic Cell outputs g 0, p 0, p 1, g 1, 18

Use of 4-binary logic cells 19

Summary 20

We Learnt Full adder Each bit output z i based on three bits the bits at the inputs and carry-in Ripple carry adder computation time grows linearly with the number of bits in the inputs Adder cum subtractor using XORs for two s complement generation Fast addition by carry-look-ahead computations 21

End of Lesson 3 on Arithmetic Operations Adder and Subtractor circuits Design 22