

















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















































































Number Representation
Numbers and ArithmeticRepresenting Signed Numbers Redundant Number SystemsResidue Number Systems
Addition / Subtraction
Basic Addition and CountingCarry-Look ahead Adders Variations in Fast AddersMultioperand Addition
Multiplication
Basic Multiplication SchemesHigh-Radix Multipliers Tree and Array MultipliersVariations in Multipliers
Division
Basic Division SchemesHigh-Radix Dividers Variations in DividersDivision by Convergence
Real Arithmetic
Floating-Point ReperesentationsFloating-Point Operations Errors and Error ControlPrecise and Certifiable Arithmetic
Function Evaluation
Square-Rooting MethodsThe CORDIC Algorithms Variations in Function EvaluationArithmetic by Table Lookup
Implementation Topics
High-Throughput ArithmeticLow-Power Arithmetic Fault-Tolerant ArithmeticPast, Present, and Future
Parts Chapters I.
II.
III.
IV.
V.
VI.
VII.
1.2. 3.4. 5.6. 7.8.
10.9. 11.12.
25.26. 27.28.
21.22. 23.24.
17.18. 19.20.
13.14. Elementary Operations 15.16.
1 Numbers and Arithmetic
Numbers and Arithmetic: Topics
1.1 What is Computer Arithmetic?
1.2 Motivating Examples
1.3 Numbers and Their Encodings
1.4 Fixed-Radix Positional Number Systems
1.5 Number Radix Conversion
1.6 Classes of Number Representations
Humor, circa 1995 (in the wake of the floating-point division bug)
Fig. 1.1 The scope of computer arithmetic.
Hardware (our focus in this book) Software โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Design of efficient digital circuits for Numerical methods for solving primitive and other arithmetic operations systems of linear equations, such as +, โ , ๏ด, ๏ธ, ๏, log, sin, and cos partial differential eqโns, and so on
Issues: Algorithms Issues: Algorithms Error analysis Error analysis Speed/cost trade-offs Computational complexity Hardware implementation Programming Testing, verification Testing, verification
General-purpose Special-purpose โโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ Flexible data paths Tailored to application Fast primitive areas such as: operations like Digital filtering +, โ , ๏ด, ๏ธ, ๏ Image processing Benchmarking Radar tracking
Source http://www.ima.umn.edu/~arnold/disasters/disasters.html
American Patriot Missile battery in Dharan, Saudi Arabia, failed to intercept incoming Iraqi Scud missile
The Scud struck an American Army barracks, killing 28
Cause, per GAO/IMTEC-92-26 report: โsoftware problemโ (inaccurate calculation of the time since boot)
Problem specifics:
Time in tenths of second as measured by the systemโs internal clock was multiplied by 1/10 to get the time in seconds
Internal registers were 24 bits wide
1/10 = 0.0001 1001 1001 1001 1001 100 (chopped to 24 b)
Error โ 0.1100 1100 ๏ด 2 โ^23 โ 9.5 ๏ด 10 โ^8
Error in 100-hr operation period
โ 9.5 ๏ด 10 โ^8 ๏ด 100 ๏ด 60 ๏ด 60 ๏ด 10 = 0.34 s
Distance traveled by Scud = (0.34 s) ๏ด (1676 m/s) โ 570 m
Source http://www.ima.umn.edu/~arnold/disasters/disasters.html
Unmanned Ariane 5 rocket of the European Space Agency veered off its flight path, broke up, and exploded only 30 s after lift-off (altitude of 3700 m)
The $500 million rocket (with cargo) was on its first voyage after a decade of development costing $7 billion
Cause: โsoftware error in the inertial reference systemโ
Problem specifics:
A 64 bit floating point number relating to the horizontal velocity of the rocket was being converted to a 16 bit signed integer
An SRI* software exception arose during conversion because the 64-bit floating point number had a value greater than what could be represented by a 16-bit signed integer (max 32 767)
*SRI = Systรจme de Rรฉfรฉrence Inertielle or Inertial Reference System
Fig. 1.2 Some of the possible ways of assigning 16 distinct codes to represent numbers. Small triangles denote the radix point locations.
Unsigned integers Signed-magnitude
3 + 1 fixed-point, xxx.x
Signed fraction, ๏ฑ.xxx
2โs-compl. fraction, x.xxx
2 + 2 floating-point, s ๏ด 2 e in [-2, 1], s in [0, 3]
2 + 2 logarithmic (log = xx.xx)
๏ฑ
๏ฑ
Number format
log x
e e s
1.4 Fixed-Radix Positional Number Systems
One can generalize to: Arbitrary radix (not necessarily integer, positive, constant) Arbitrary digit set, usually {โa, โ a+1,... , bโ1, b} = [โa, b]
Example 1.1. Balanced ternary number system: Radix r = 3, digit set = [โ1, 1]
Example 1.2. Negative-radix number systems: Radix โ r , r ๏ณ 2, digit set = [0, r โ 1] The special case with radix โ 2 and digit set [0, 1] is known as the negabinary number system
๏ฅ
๏ฝ-
k 1
i l
1.5 Number Radix Conversion
Whole part Fractional part
Example: (31)eight = (25)ten 31 Oct. = 25 Dec. Halloween = Xmas
**(((((3 / 5) + 3) / 5 + 0) / 5 + 2) / 5 + 2) / 5 |-----| : : : : 0.6 : : : : |-----------| : : : 3.6 : : : |---------------------| : : 0.72 : : |-------------------------------| : 2.144 : |-----------------------------------------|
|-----------------------------------------------| 0.**
Fig. 1.3 Hornerโs rule used to convert (0.220 33)five to decimal.
1.6 Classes of Number Representations
Integers (fixed-point), unsigned: Chapter 1
Integers (fixed-point), signed Signed-magnitude, biased, complement: Chapter 2 Signed-digit, including carry/borrow-save: Chapter 3 (but the key point of Chapter 3 is using redundancy for faster arithmetic, not how to represent signed values) Residue number system: Chapter 4 (again, the key to Chapter 4 is use of parallelism for faster arithmetic, not how to represent signed values)
Real numbers, floating-point: Chapter 17 Part V deals with real arithmetic
Real numbers, exact: Chapter 20 Continued-fraction, slash,...
For the most part you need:
However, knowing the rest of the material (including RNS) provides you with more options when designing custom and special-purpose hardware systems