

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!


There are three important categories of arithmetic data types used in various kinds of computers:
z Integers (signed and unsigned) z Fractions (signed and unsigned) z Mixed integers / fractions (e.g., accumulator types)
z Of various precisions. Even 16-bit floating point!
z Fixed point z Floating point
•Signal data often originates from A/D conversion •An analog signal is sampled at fixed time intervals (see clock below) •A stream of numbers emerges from the A/D converter •These numbers lie in a fixed range, and represent the instaneous amplitude of the signal
Fixed Point Types
MAGNITUDE .
MAGNITUDE .
SIGN
UNSIGNED INTEGER:
INTEGER:SIGNED
MAGNITUDE .
MAGNITUDE .
SIGN
UNSIGNED FRACTION:
SIGNED FRACTION:
0 .. 2N^ -
-2N-1^ .. 2N-1-
0 .. 1 - 2-N
-1 .. 1 - 2-N+
Binary point
Unsigned Fixed Point
Fractions
z But: discard the lower bits if the final value has same preceision as the inputs!
z If saturating arithmetic is used, 1.0000 is rounded to the nearest reprentable value, .1111 in this case.
Signed Fixed Point Fractions
Multiplication
Multiplication Continued
Accumulator Types
S GUARD MAGNITUDE
S MAGNITUDE
S GUARD MAGNITUDE
S MAGNITUDE
ACCUMULATOR:
REGISTER:
•Guard bits are initialized by sign-extending the 1. form. I.e., guard bits = sign bit initially •1.31 values are sign- extended to 9.31 in order to add them to the accumulator •Only when 8 digits of overflow have occurred are we at risk of overflowing the accumulator. •By bounding the number of adds that are done to the accumulator we can guarantee against overflow.