# Questions tagged [fixed-point]

The tag has no usage guidance.

52 questions
Filter by
Sorted by
Tagged with
42 views

### FFT error when number of samples growth - Matlab/octave

I see when I increase number of samples, the imaginary error part of the FFT growth due to the error of sin(n*pi)!=0 where n is the index of the sample in Matlab or octave. Is there anyway to force ...
26 views

### Do twiddle factors of the fixed-point DFT have to be scaled to the input signal?

I have sensor data that is digitized by a 12-bit ADC that has analog range -1.65 to 1.65 V. The digital sensor data has thus scaling $3.3\cdot 2^{-12}$. I need to perform fixed-point DFT using ...
18 views

### What is the meaning of these Fixed Point Properties e.g.CustomSectionInputDataType?

I was trying tom implement a Butterworth filter and i came across a example on Mathworks site which emphasizes to customize various terms related to the filter. Following are some of the terms i could ...
53 views

### Methods to evaluate the quality of an IIR Filter fixed-point implementation

I'm implementing a scattered look-ahead IIR filter in Matlab/VHDL, basically I convert an order-2 IIR filter into an order-4 IIR in order to take advantage of the pipelining of an FPGA. (reference ...
20 views

### CoeffFracLength negative or larger than the CoeffWordLength [Fixed-Point Filter Properties in Matlab]

I have been reading the fixed-point filter properties in Matlab and I have found that the parameter "CoeffFracLength" can be either zero, negative or positive. And also, it can be larger than the ...
31 views

### Reducing hardware demands for an adaptive and complex-coefficient FIR filter

I want to implement a complex-coefficient FIR filter with adaptive coefficients in hardware (FPGA). The inputs to this filter are the I and Q channel as separate wires. The outputs are the filtered I ...
147 views

### Floating point to fixed point in C

I've been trying to make a digital filter. I've used the following transfer function to get my digital coefficients https://gyazo.com/00195ef119f0b2ff93fa5855715abdc9 Which i've then transfered to ...
73 views

### Hyperbolic sine “sinh” in fixed-point?

As part of an audio peaking filter calculation, I need to implement hyperbolic sine ("sinh") function in a fixed-point arithmetic (fixed-point DSP processor). What is the proper way to do this?
320 views

### Conversion from Floating point representation to Fixed point representation

I have written a matlab function for a constellation mapper and I want to create a Fixed-point version of that code for implementation on FPGA. I know matlab has a specific toolbox for fixed-point ...
49 views

### How to calculate the magnitude of rounding error in N-bit signed fixed-point arithmetic?

In example take into consideration 11-bit <11,5> signed fixed-point arithmetic. 000000.11111 - 0.96875 000001.00000 - 1 so the error magnitude will ...
126 views

### VHDL fixed point implementation of IIR filter

I have a filter described by the following transfer function H(z): $$H(z) = \frac{156 - 156z^{-2}}{16384 - 32443z^{-1}+16073z^{-2}}$$ How will this be implemented with the first term in the ...
52 views

### Audio Bit Depth “mapping” from DAW to Audio card: is this correct?

Let say I'm generating a 1 kHz sine wave within my DAW, using some synth (Sytrus in my case). I normalize it, so it play at max "digital" amplitude 0db. Thus, any sample of the signal would gets a ...
524 views

### What is the correct way to handle Saturation on a DSP?

Let's say I have 16 bit fixed point DSP, and am performing a multiply accumulate operation in a loop- What would be the correct way to check for saturation of the accumulated value? As far as I ...
357 views

### How to convert floating point code to fixed point?

I am working on converting a floating point MATLAB code into fixed point C code. The code is to be run on a DSP platform, the specifics of which are yet to be decided. I'm new to floating point to ...
576 views

### Multiplication of fixed-point numbers

I'm trying to understand the professor who wrote about Q2-fixed-point number 1.01 and 1.11 which should be multiplied. I don't understand anything. Multiply the Q2-fixed-point number 1.01 and ...
35 views

### Is it necessary to scale a signal for quantization noise analysis?

I am doing a series of tests to analyse the round-off (quantization) noise performance of single and two stage biquad cascades (direct form 1), at different sampling rates. The system I am simulating ...
168 views

### Fixed point Error Spectrum Shaping (noise shaping) for biquads

Based on that article and all the resources on the internet that advise the use of noise shaping for fixed-point filter implementations, I tried to make a few simulations on Matlab for the biquad I'm ...
353 views

### Converting floating point IIR to fixed point arithmetic, given its difference equation

Is there some general way to perform the task given in the question? I have a filter given as follows: ...
702 views

### Trouble with fixed-point arithmetic 2nd order IIR implementation in c

DSP newcomer here! I am tinkering around with a TI DSP and am trying to implement a second order IIR filter in C. Input is 16 bit 2's complement, as is the output, the accumulator is 32 bit wide. I ...
197 views

### Optimization of Filter Coefficients to Given Word Length

It seems to me that this is a difficult mathematical problem where research is still carried on: Is there an efficient way to find fixed-point coefficients whose zeros are closest to those calculated ...
79 views

### Implementation of IIR Filter in dsPIC 33EP - Q15

I am implementing an IIR controller in dsPIC 33EP (16-bit, fixed-point, two's complement, wrap-around, 40-bit accumulator, 32-bit multiply, 12-bit ADC) and I am using cascaded, Direct Form I second ...
218 views

### Problems with implementation of a band-stop filter on an MCU (dsPIC) using fixed-point arithmetic

I'm trying to implement a band-stop (notch) filter on a microcontroller dsPIC33EP64GS506 to filter out a $100\textrm{ Hz}$ component from an input signal. The ...