12/7/2018 1.

Slides:



Advertisements
Similar presentations
THE ARITHMETIC-LOGIC UNIT. BINARY HALF-ADDER BINARY HALF-ADDER condt Half adder InputOutput XYSC
Advertisements

Princess Sumaya Univ. Computer Engineering Dept. Chapter 3:
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3: IT Students.
Binary Addition Rules Adding Binary Numbers = = 1
Computer ArchitectureFall 2008 © August 25, CS 447 – Computer Architecture Lecture 3 Computer Arithmetic (1)
1 Lecture 8: Binary Multiplication & Division Today’s topics:  Addition/Subtraction  Multiplication  Division Reminder: get started early on assignment.
ECE 301 – Digital Electronics
COE 308: Computer Architecture (T041) Dr. Marwan Abu-Amara Integer & Floating-Point Arithmetic (Appendix A, Computer Architecture: A Quantitative Approach,
DIGITAL SYSTEMS TCE1111 Representation and Arithmetic Operations with Signed Numbers Week 6 and 7 (Lecture 1 of 2)
IT Systems Number Operations EN230-1 Justin Champion C208 –
FIGURES FOR CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
©2008 The McGraw-Hill Companies, Inc. All rights reserved. Digital Electronics Principles & Applications Seventh Edition Chapter 10 Arithmetic Circuits.
ECE 645 – Computer Arithmetic Lecture 9: Basic Dividers ECE 645—Computer Arithmetic 4/1/08.
The Binary Number System
Data Representation Number Systems.
1 Arithmetic and Logical Operations - Part II. Unsigned Numbers Addition in unsigned numbers is the same regardless of the base. Given a pair of bit sequences.
Data Representation – Binary Numbers
Computer Arithmetic Nizamettin AYDIN
Binary Arithmetic Stephen Boyd March 14, Two's Complement Most significant bit represents sign. 0 = positive 1 = negative Positive numbers behave.
Integer Conversion Between Decimal and Binary Bases Conversion of decimal to binary more complicated Task accomplished by –Repeated division of decimal.
Multiplication of signed-operands
July 2005Computer Architecture, The Arithmetic/Logic UnitSlide 1 Part III The Arithmetic/Logic Unit.
Division Harder Than Multiplication Because Quotient Digit Selection/Estimation Can Have Overflow Condition – Divide by Small Number OR even Worse – Divide.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3:
Lecture notes Reading: Section 3.4, 3.5, 3.6 Multiplication
Bits, Data types, and Operations: Chapter 2 COMP 2610 Dr. James Money COMP
CO5023 Introduction to Digital Circuits. What do we know so far? How to represent numbers (integers and floating point) in binary How to convert between.
1 Basic Dividers Lecture 9. Required Reading Chapter 13, Basic Division Schemes 13.1, Shift/Subtract Division Algorithms 13.3, Restoring Hardware Dividers.
©2010 Cengage Learning SLIDES FOR CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION Click the mouse to move to the next page. Use the ESC key to exit.
Chapter 8 Computer Arithmetic. 8.1 Unsigned Notation Non-negative notation  It treats every number as either zero or a positive value  Range: 0 to 2.
Arithmetic Circuits I. 2 Iterative Combinational Circuits Like a hierachy, except functional blocks per bit.
1. Copyright  2005 by Oxford University Press, Inc. Computer Architecture Parhami2 Figure 11.1 Multiplication of 4-bit numbers in dot notation.
1 Lecture 5Multiplication and Division ECE 0142 Computer Organization.
William Stallings Computer Organization and Architecture 8th Edition
Computer System Design Lecture 3
More Binary Arithmetic - Multiplication
COMPUTER ARITHMETIC Arithmetic with Signed-2's Complement Numbers
Array multiplier TU/e Processor Design 5Z032.
Part III The Arithmetic/Logic Unit
Integer Multiplication and Division
Digital Systems and Number Systems
Lecture 8: Binary Multiplication & Division
William Stallings Computer Organization and Architecture 7th Edition
Principles & Applications
Lecture 9 Basic Dividers.
Radix 2 Sequential Multipliers
Integers in 2’s compliment Floating point
Digital Building Blocks
CSCI206 - Computer Organization & Programming
Topic 3c Integer Multiply and Divide
Computer Organization and Design
Part III The Arithmetic/Logic Unit
Instructor: Alexander Stoytchev
ECEG-3202 Computer Architecture and Organization
Computer Architecture
Chapter 5 -Part 3.
Overview Part 1 – Design Procedure Part 2 – Combinational Logic
Instructor: Alexander Stoytchev
Chapter 8 Computer Arithmetic
Binary to Decimal Conversion
Arithmetic Logic Unit A.R. Hurson Electrical and Computer Engineering Missouri University of Science & Technology A.R. Hurson.
Appendix J Authors: John Hennessy & David Patterson.
Adder Circuits By: Asst Lec. Basma Nazar
Half & Full Subtractor Half Subtractor Full Subtractor.
Half & Full Subtractor Half Subtractor Full Subtractor.
Presentation transcript:

12/7/2018 1

11.1 Shift-Add Multiplication Figure 11.1 Multiplication of 4-bit numbers in dot notation.

Example shift-add multiplication: Works basically like you do "long-hand" multiplication except that you (1) add partial products together as you get them, and (2) shift running total to the right after it is recalculated. This eliminates need to add digits of the partial product to nothing. It also ensures same column of digits are always added. Digits shifted to the right of these columns are simply carried down.

Recurrence equation describing above process add Shift right

Shift-add example: 10100011 Figure 11.2 Step-by-step multiplication examples for 4-digit unsigned binary and decimal numbers.

Signed integer multiplication Signed-magnitude numbers can be multiplied by using the shift-add algorithm discussed above, and deriving the sign of the products as XOR of the two input sign bits. In the last multiplication step, we must subtract, rather than add, the partial product yk-1x. e.g., x  (1011)2’s-compl = -8x +2x+x = -5x

Example: Two’s-complement multiplication Figure 11.3 Step-by-step multiplication examples for 4-digit 2’s-complement numbers.

11.2 Hardware Multipliers Figure 11.4 Hardware multiplier based on the shift-add algorithm.

Figure 11.5 Shifting incorporated in the connections to the partial product register rather than as a separate phase.

Fast hardware multiplication Full-tree multiplier Array muplier HA: half adder, FA: full adder, MA: modified full adder

Figure 11.6 Schematic diagrams for full-tree and partial-tree multipliers.

Figure 11.7 Array multiplier for 4-bit unsigned operands.

8-bit array multiplier (unsiged)

Figure 11.9 Division of an 8-bit number by a 4-bit number in dot notation.

Recurrence equation describing above process shift subtract

Unsigned operands, z: 2k-bit, x: k-bit 1 1 Figure 11.10 Step-by-step division examples for 8/4-digit unsigned binary integers and decimal fractional numbers.

Unsigned operands, z: k-bit, x: k-bit Figure 11.11 Step-by-step division examples for 4/4-digit unsigned binary integers and fractional numbers.

Dividing signed number: (1) Convert operands to into unsigned values, perform unsigned division (2) At then end, adjust signs for y (quotient) and s (remainder)

11.5 Hardware Dividers k cycle for 2k/k division Figure 11.12 Hardware divider based on the shift-subtract algorithm

Figure 11.13 Shifting incorporated in the connections to the partial remainder register rather than as a separate phase.

Figure 11.14 Array divider for 8/4-bit unsigned integers.

Array Divider (unsigned)

Conditional Subtractor q = 0 co = majority ( r, d, ci ) ; s = r // identity q = 1 s = r XOR d XOR ci // subtraction

11.6Programmed Division Figure 11.15 Register usage for programmed division superimposed on the block diagram for a hardware divider.