Division Circuits Jan 2013 Shmuel Wimer Bar Ilan University, Engineering Faculty Technion, EE Faculty 1.

Slides:



Advertisements
Similar presentations
Iterative Integer Division Techniques Shantanu Dutt UIC.
Advertisements

Cosc 2150: Computer Organization Chapter 9, Part 2 Integer multiplication and division.
Arithmetic Intro Computer Organization 1 Computer Science Dept Va Tech February 2008 © McQuain Algorithm for Integer Division The natural (by-hand)
Integer division Pencil and paper binary division (dividend)(divisor) 1000.
HOW TO DIVIDE FRACTIONS
THE ARITHMETIC-LOGIC UNIT. BINARY HALF-ADDER BINARY HALF-ADDER condt Half adder InputOutput XYSC
Lecture 15: Computer Arithmetic Today’s topic –Division 1.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3:
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3: IT Students.
Floating Point Numbers
CS 447 – Computer Architecture Lecture 3 Computer Arithmetic (2)
UNIVERSITY OF MASSACHUSETTS Dept
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)
division algorithm Before we study divisibility, we must remember the division algorithm. r dividend = (divisor ⋅ quotient) + remainder.
Fractions Day 4.
ECE 645 – Computer Arithmetic Lecture 10: Fast Dividers ECE 645—Computer Arithmetic 4/15/08.
ECE 645 – Computer Arithmetic Lecture 9: Basic Dividers ECE 645—Computer Arithmetic 4/1/08.
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
Computer Arithmetic. Instruction Formats Layout of bits in an instruction Includes opcode Includes (implicit or explicit) operand(s) Usually more than.
Computer Arithmetic.
Number Systems. Why binary numbers? Digital systems process information in binary form. That is using 0s and 1s (LOW and HIGH, 0v and 5v). Digital designer.
Oct. 18, 2007SYSC 2001* - Fall SYSC2001-Ch9.ppt1 See Stallings Chapter 9 Computer Arithmetic.
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.
Pipeline Extensions prepared and Instructed by Shmuel Wimer Eng. Faculty, Bar-Ilan University MIPS Extensions1May 2015.
Conversion to Larger Number of Bits Ex: Immediate Field (signed 16 bit) to 32 bit Positive numbers have implied 0’s to the left. So, put 16 bit number.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3:
Lecture notes Reading: Section 3.4, 3.5, 3.6 Multiplication
Partial Quotient Method In this division algorithm the children record on the right side of the problem. The first thing they do is divide. They ask themselves.
Basic Dividers Lecture 10. Required Reading Chapter 13, Basic Division Schemes 13.1, Shift/Subtract Division Algorithms 13.3, Restoring Hardware Dividers.
1 Basic Dividers Lecture 9. Required Reading Chapter 13, Basic Division Schemes 13.1, Shift/Subtract Division Algorithms 13.3, Restoring Hardware Dividers.
CDA 3101 Spring 2016 Introduction to Computer Organization
Dividing Rational Numbers Rational Numbers ~. Dividing Rational Numbers RULES: RULES: 1. When multiplying or dividing integers with the same signs, the.
Integer Operations Computer Organization and Assembly Language: Module 5.
Chapter 9 Computer Arithmetic
William Stallings Computer Organization and Architecture 8th Edition
More Binary Arithmetic - Multiplication
Multiplication and Division basics
Computer Architecture & Operations I
Integer Division.
Morgan Kaufmann Publishers
Morgan Kaufmann Publishers
CDA 3101 Summer 2007 Introduction to Computer Organization
William Stallings Computer Organization and Architecture 7th Edition
Topic 3d Representation of Real Numbers
Lecture 8: Addition, Multiplication & Division
Lecture 8: Addition, Multiplication & Division
HOW TO DIVIDE FRACTIONS
CSCI206 - Computer Organization & Programming
Topic 3c Integer Multiply and Divide
ECEG-3202 Computer Architecture and Organization
Chapter 8 Computer Arithmetic
Binary to Decimal Conversion
Topic 3d Representation of Real Numbers
Division Opposite of multiplication.
Radix –Two Division Most complex of the four arithmetic operations (addition, subtraction, multiplication and division). Requires the most in terms of.
Presentation transcript:

Division Circuits Jan 2013 Shmuel Wimer Bar Ilan University, Engineering Faculty Technion, EE Faculty 1

Jan Sequential Division Like sequential multiplication of k-bit operands, yielding a 2k-bit product, the division of 2k-bit dividend by k-bit divisor can be realized in k cycles of shift and subtraction.

Jan k bitsk bits First subtraction must consider k+1 MSBs for non negative difference. Considering k bits would mean that quotient is 2 k at least, which requires k+1 bits at least.

Jan Since for unsigned division we have q<2 k and s<d, to avoid overflow we must have z<(2 k -1)d+d=2 k d d must be strictly greater than the k MSBs of z, as otherwise the quotient would have more than k bit. This is called overflow detection and done prior to division and can be used also to detect division by zero.

Jan Fractional Division Unsigned integer and unsigned fractional can be converted to each other as follows Since z is 2k-bit and d, q, and s are k-bit, we obtain We can therefore divide fractions just as integers, except that the reminder is right shifted by k bits. Overflow detects that z frac < d frac, as otherwise the quotient would be no smaller than 1.

Sequential Bit-at-a-Time Division Jan It is performed by initializing s (0) =z, and successively subtracting from it the properly shifted terms q k-j d. Rather than shifting q k-j d rightwards, we shift the partial quotient leftward, leading to left-shift division algorithm. shift left subtract

Jan shift left subtract 2 k pre multiplies d to unsure proper alignment. After k iterations the above recursion turn into In the fractional version the dividend is aligned to the radix point. The bits of the quotient begin from -1.

multiply divisor by 2 k initialize reminder left-shift subtract left-shift subtract left-shift subtract left-shift subtract Jan 20138

9 In fractional division the dividend is aligned to the radix point. The bits of the quotient begin from -1.

Jan Unlike multiplication that can be done by right and left shifts, division can be done only by left shift. This follows from the bit of the quotient that are known progressively, starting from MSB. In multiplication, then multiplier bits are known in the outset.

Jan The partial reminder is left shifted and its MSB is loaded into a special FF. A trial difference 2s (j-1) -q k-j (2 k d) is computed.

Jan

Jan

Jan

Jan

Jan