Questions tagged [floating-point]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4 votes
1 answer
200 views

Efficient Log2 and dB from Floating Point and Fixed Point Representation

Floating point representation encodes a binary number using a mantissa $a$ and exponent $b$ according to $(1+a)\cdot 2^b$, where $a$ is an unsigned fractional fixed point number such that $1\le 1+a &...
Dan Boschen's user avatar
  • 48.8k
0 votes
1 answer
77 views

Relationship of ADC resolution and 'lossless' float data type storage

For a given digitised voltage trace, I want to avoid any quantization error introduced via an insufficient precision of the float data type – and at the same time reduce the memory cost. However, I am ...
Helmut's user avatar
  • 109
1 vote
0 answers
66 views

Are there now 64-bit processors that deal with denorms routinely with no exception or interrupt?

Title says it all. Are there processors with FPUs that deal with denorms arithmetically correctly (don't assume they're zero nor flush them to zero) and don't cause an exception? I would be interested ...
robert bristow-johnson's user avatar
2 votes
3 answers
366 views

Series vs Parallel Biquad Filters

What are the pros and cons of arranging a set of biquad filters in series and parallel? I gather that series should be used in cases where the filters contribute to the same passbands and vice versa ...
cberk1's user avatar
  • 101
2 votes
1 answer
85 views

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 ...
Euler's user avatar
  • 23
1 vote
1 answer
900 views

Moving average filter implementation in the floating point [closed]

I have following C++ implementation of the moving average digital filter. ...
Steve's user avatar
  • 375
0 votes
2 answers
59 views

Why we sometime use some values of fixed point and floating point both in dsp?

I have been writing kernels for a communication dsp device, which uses cmac/cmad operation on fixed and floating point numbers. I am not very clear why both types is used in the same operation.
Nits r's user avatar
  • 11
2 votes
3 answers
700 views

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 ...
arun_kol's user avatar
0 votes
1 answer
91 views

Is multiplying by Ts faster than dividing by fs? [closed]

Say fs = 1000 and Ts = 0.001. Would it be faster to compute Ts at the beginning and subsequently multiply by 0.001 instead of dividing by 1000 when computing frequency-dependent quantities?
neolith's user avatar
  • 145
1 vote
2 answers
402 views

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 ...
MattHusz's user avatar
  • 239
3 votes
5 answers
2k views

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<a<1$ What are the main design considerations to think about ?...
voy82's user avatar
  • 41
6 votes
7 answers
3k views

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 ...
user1042840's user avatar
1 vote
0 answers
676 views

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 ...
David Lloyd's user avatar
1 vote
2 answers
856 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 ...
Mohamed's user avatar
  • 13
3 votes
1 answer
3k views

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 ...
pyth0n's user avatar
  • 33
1 vote
2 answers
103 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 ...
markzzz's user avatar
  • 35
1 vote
2 answers
1k views

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 ...
Jan-Bert's user avatar
  • 335
1 vote
1 answer
567 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 ...
Neha Vedam's user avatar
0 votes
1 answer
50 views

Basic question on numerical precision [closed]

I appreciate this opportunity to submit a query on this forum. When studying the continuous-time & discrete-time distinction, specifically with reference to discrete signals being identical when ...
Gaurav Sobti's user avatar
2 votes
0 answers
2k views

Applying a FIR filter to floating point array c# [closed]

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 ...
axcelenator's user avatar
1 vote
1 answer
4k views

Downsampling PCM Audio

I'm looking everywhere for solutions for audio downsampling. However for one reason or another they are incomplete, sometimes buggy, and sometimes are in a programming language I cannot understand. ...
Enrique's user avatar
  • 11
1 vote
0 answers
103 views

DSP implementation recommended bibliography (good books-material related to fixed/floating point-optimization) [closed]

I am doing my first steps in embedded systems and there is a big deal of fixed point code and of course DSP optimized code.I would like please if possible to recommend any book/material related to ...
Rizias's user avatar
  • 300
3 votes
2 answers
286 views

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 ...
ameyask's user avatar
  • 131
7 votes
1 answer
15k views

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 ...
rajez79's user avatar
  • 347
1 vote
2 answers
519 views

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 ...
Izhaki's user avatar
  • 319
8 votes
1 answer
3k views

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 (...
nibot's user avatar
  • 3,773