Questions tagged [floating-point]

22 questions
7
votes
1 answer

How to avoid denormalized numbers?

The same floating-point AMD X86-64 digital signal processing system mentioned in my previous question has a problem where it sometimes slows down substantially when signals attain values very near (but not exactly) zero. The problem is that…
nibot
  • 3,583
  • 4
  • 26
  • 38
6
votes
7 answers

Why is there no FPU on (most) DSP chips?

Why is there no FPU (Floating Point Unit) on most DSP chips? I found several answers such as this one that explain advantages of fixed point approach such as smaller power consumption, higher speed and I can myself think of several other advantages…
user1042840
  • 169
  • 1
  • 3
6
votes
1 answer

Understanding Q formats

I have some misunderstandings with Q format. Please help me in understanding this. If I say Q8 [unsigned] then there will be $8$ fractional bits. Is it ? How can I represent a $1$ and $1.5$ in this case? If I say Q8 [ signed ] then there will be…
rajez79
  • 337
  • 2
  • 7
  • 13
3
votes
5 answers

Single pole IIR filter, fixed point design

We want to do a fixed point implementation of the single pole IIR filter: $y[n] = a\cdot x[n] + (1 - a)\cdot y[n-1] \quad ;\qquad 0
3
votes
1 answer

Finding a signal inside another signal

I have a 1D array of 32 bit floating point numbers representing the current draw of a radio operating over a 40 minute span. The number of elements in the array is 29 million and change. There is a signal of interest inside this array that I would…
pyth0n
  • 33
  • 7
2
votes
1 answer

Designing an FIR filter with Gain = 1 on TI DSP processor

I'm trying to design an FIR filter with gain = 1 on DSP processor that does not support floating representation. I'm using MATLAB to design the filter and then transport the taps into my code. The problem is that MATLAB returns floating point…
Euler
  • 23
  • 3
2
votes
3 answers

Implementation of CIC filter using floating point

I am trying to implement a CIC filter and was reading through the literature and found that CIC filter cannot be implemented using floating point. I am unable to understand why that would happen. The reasoning that is given everywhere seems to be…
2
votes
0 answers

Applying a FIR filter to floating point array c#

I have designed using MATLAB a FIR filter with some coefficients. I have an array that is normalized to -+1. The array is float. I used this method to apply the FIR to the array but I'm not sure if this is fine: public static float[]…
axcelenator
  • 205
  • 1
  • 2
  • 12
2
votes
2 answers

In image compression using transforms, how to deal with the transformed coefficients as they are not integers?

I am new to the field of image compression. While going through various texts, I read about how transforming the image to another domain using, for example, the wavelet transform, or the DCT, makes it suitable for lossy compression. I have been…
1
vote
2 answers

Does it really take 6 minutes and 20 seconds to properly fade-out a single precision audio signal?

Update This question is purely theoretical and should not account for any psychoacoustic effects, or practical implementations. Perhaps the question should be rephrased to "How long will it take to apply the smoothest possible fade, in a single…
Izhaki
  • 319
  • 1
  • 7
1
vote
1 answer

Moving average filter implementation in the floating point

I have following C++ implementation of the moving average digital filter. template class MovingAverage{ public: MovingAverage(){ for(uint32_t elem = 0; elem < WINDOW_SIZE; elem++){ …
Steve
  • 231
  • 6
1
vote
2 answers

Mitigate floating-point numerical errors for very-low corner frequency low-pass filter with DSP

I'm designing a low-pass filter for a digital signal processing application that ideally just passes a very small bandwidth above DC. I'm using an IIR biquad filter for this, where the coefficients are derived using the instructions here. A smaller…
1
vote
0 answers

PSNR calculation with float arrays

The PSNR definition provided by wikipedia is often quoted in discussions regarding PSNR and other similarity metrics. Essentially the PSNR calculation has two components: the mean squared error and the "maximum possible pixel value of the image" (as…
1
vote
2 answers

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 conversion but i want to do this manually. My…
Mohamed
  • 13
  • 3
1
vote
2 answers

Artifacts signal conversion from float to integer

I have a script where i want to change the noise floor to about 96 dB (visual purpose). The script containing basically a sine wave with after wart do FFT over it. The script is in python and as follows: import numpy as np import matplotlib.pyplot…
Jan-Bert
  • 335
  • 4
  • 16
1
2