02.10.2019 Views

UploadFile_6417

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

260 Chapter 6 IMPLEMENTATION OF DISCRETE-TIME FILTERS<br />

and, as such, there is no overflow. Hence we will consider the following<br />

representation:<br />

ˆx = A(± xxxxxx<br />

} {{<br />

···x<br />

}<br />

) (6.37)<br />

B fraction bits<br />

where A is a positive scaling factor.<br />

□ EXAMPLE 6.15 Represent the number ˆx = −10.4375 in Example 6.14 using a fraction-only<br />

arrangement.<br />

Solution<br />

Choose A =2 4 =16and B =9.Then<br />

ˆx = −10.4375 = 16 (1101001110)<br />

Hence by properly choosing A and B, one can obtain any fraction-only representation.<br />

Note: The scalar A need not be a power of 2. In fact, by choosing any real number<br />

A we can obtain an arbitrary range. The power-of-2 choice for A,however, makes<br />

hardware implementation a little easier.<br />

□<br />

As discussed in the previous section, there are three main formats for<br />

fixed-point arithmetic, depending on how negative numbers are obtained.<br />

For all these formats, positive numbers have exactly the same representation.<br />

In the following we assume the fraction-only arrangement.<br />

Sign-magnitude format As the name suggests, the magnitude is<br />

given by the B-bit fraction, and the sign is given by the MSB. Thus,<br />

ˆx =<br />

{ 0x 1 x 2 ···x B if x ≥ 0<br />

1x 1 x 2 ···x B if x

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!