Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to find the minimum no of bits required to express the filter coefficients in fixed point format from Histogram plot?

Status
Not open for further replies.

himadri_debnath

Newbie level 6
Newbie level 6
Joined
Aug 23, 2020
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
108
I have designed a filter in MATLAB and now I have to convert the filter coefficient in fixed point format from floating point format. For that my professor asked me to find histogram first and then find how many bits I required for fixed point representation. But I am not sure how to find that from histogram plot.
 

First you have to have a criteria to work against, magnitude or phase or group
delay or.....that you will compare results against.

Say its magnitude, then we want a filter whose arithmetic does not saturate at
any node in the signal path, otherwise we have major distortion. IIR filters quite
involved on this topic.

Simple un-elegant way, look at max value filter is producing and pick
a binary size that can encompass that. Here your criteria is G of filter
at key freq of interest.

Or just pick 16 bits, run and compare the histogram against the floating point
result. Alter it up or down and see what works closest w/o being excessively large.

Analytically, there are reams of papers on net discussing numerical accuracy and effect
on pole zero locations for a filter, and to various criteria being looked. IEEE papers.....
and handbooks on digital filters.

There are other sophisticated ways of determining coefficients, like simple least squares,
or power curves or other estimation criteria, as stated at top of this post.

Your filter recursive or FIR ? Recursive can be very touchy to deal with.

Bottom conclusion comments -


This page shows references to the topic at bottom of page -




Regards, Dana.
 
Last edited:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top