Number Formats
Number Formats
Fractional formats
Examples
Comparision
TMS320 Family
Example
Special case
Dynamic range
The dynamic range of a signal is the ratio of the maximum value to the minimum value that the signal can take in the given number representation scheme. The dynamic range of a signal is proportional to the number of bits used to represent it and increases by 6dB for every additional bit used for the representation.
Precision
The number of bits used to represent a signal also determines the resolution or the precision with which the signal can be represented. Resolution is the minimum value that can be represented using a number representation format.For instance, if N bits are used to represent a number from 0 to 1 , the smallest value it can take is the resolution and is given as Resolution =1/2^N for large N
Dynamic Range
Example
Example
Example
Example: The following 12-bit binary fractions are to be stored in an 8-bit memory. Show how they can be represented in block floating point format as to improve accuracy. 000001110011 000011110000 000000111111 000010101010
Solution
If these fractions are represented using an 8bit fixed-point format, they will be represented as 00000111 00001111 00000011 00001010
Solution
The last 4 bits of the numbers would have been discarded, thereby losing the precision corresponding to those 4 bits. 01110011 x 2^-4 11110000 x 2^-4 00111111 x 2^-4 10101010 x 2^-4
Problems
Example: Calculate the dynamic range and precision of each of the following number representation formats. a. 24-bit, single precision, fixed-point format b.48-bit, double precision, fixed point format c. A floating point format with a 16-bit mantissa and an 8-bit exponent.
Solution
a. Since each bit gives a dynamic range of 6dB, the total dynamic range is 24 x 6 =144dB. Percentage resolution is (1/2^24) x100 = 6 x 10^-6 b. Since each bit gives a dynamic range of 6dB , the total dynamic range is 48 x6 =288dB. Percentage resolution is (1/2^48) x 100 =4 x 10 ^-13.
Solution
C. For floating point representation , the dynamic range is determined by the number of bits in the exponent . Since there are 8 exponent bits, the dynamic range is (2^8-1) x 6=255 x 6 =1530 dB. The percentage resolution depends upon the number of bits in the mantissa. Since there are 16 bits in the mantissa, the resolution is (1/2^16) x 100 =1.5 x 10 ^ -3 %