Truncated Coefficients


please dont rip this site

The design program calculates and displays the filter coefficients as floating-point numbers. If you intend to execute your filter on a floating-point process, you can use the coefficients directly. If however you are targetting a fixed-point processor, or a dedicated FIR chip which uses fixed-point, then you will have to convert the coefficients to fixed-point numbers. This entails truncation of the coefficients, so that they will fit in a given number of bits. This truncation will affect the response of the filter to some extent. The ``truncate to ... bits'' option allows you to investigate the extent of this distortion of the response.

Entering a value (an integer, n say) in the ``truncate to ... bits'' box tells the filter generation program to generate coefficients which can be represented exactly in 1:(n-1) fixed-point, that is with a sign bit and n-1 bits after the binary point. It doesn't actually display the coefficients in that form: that's up to you. (C doesn't have a syntax for fixed-point.)

In more detail, what happens is this. First, the coefficients are all scaled so that they lie in the range

Then each coefficient x is adjusted to the closest value which can be represented in 1:(n-1) fixed-point, namely where fix denotes ``nearest integer to''.


Tony Fisher / fisher@minster.york.ac.uk


file: /Techref/uk/ac/york/cs/www-users/http/~fisher/mkfilter/trunc.htm, 1KB, , updated: 2003/2/13 03:29, local time: 2024/4/20 04:31,
TOP NEW HELP FIND: 
3.135.190.101:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://www.piclist.com/techref/uk/ac/york/cs/www-users/http/~fisher/mkfilter/trunc.htm"> Truncated Coefficients </A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

  PICList 2024 contributors:
o List host: MIT, Site host massmind.org, Top posters @none found
- Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
 

Welcome to www.piclist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .