DSP Notes
DSP Notes
DSP Notes
Digital Computers
INSTRUCTOR'S GUIDE INTRODUCTION TO DSP
CHAPTER 1 1-8
Harvard Architecture
Fixed-Point Notation
Conventions
Why?
Fixed-Point Notation
CHAPTER 1 1-31
afterwards, but this is also far from efficient. An alternative
method is to add the product to itself,
effectively multiplying by 2. This is one of the difficulties of
using the fixed-point operation. The
programmer needs to think about these issues and plan
ahead.
Another important rule is that all numbers must be scaled to
the same Q format (Q15 in our examples),
placing the decimal points of both operands in the same
place, before an addition or subtraction is
performed. Generally, this is also practiced in multiplication.
However since the scaling coefficients are
multiplied, the correct fraction can be retrieved using yet
another scaling constant. Nevertheless, mixing Q
formats is not desired.
Floating-Point Formats
Although the C54x device is fixed-point, a popular floatingpoint format (used, for example, in
TMS320C67x devices) standard is IEEE 754. The
differences between various floating-point formats are
actually insignificant, and conversion can be performed in
ASIC hardware or software.
TMS320 Single-Precision Floating-Point Format
The preceding table shows an example of a TMS320C67x
floating-point bit assignments. The top eight bits
represent the exponent (e) in twos complement notation. Bit
23, (s), is the sign bit of the mantissa, and the