DSPRelated.com

andrew stanford-jason (@andrewstanfordjason)


Re: Sigmoid function

Reply posted 1 year ago (02/09/2023)
The problem I am trying to solve is to implement a sigmoid function as part of a library intended to be used to implement ML graphs. It is there fore reasonable...

Sigmoid function

New thread started 1 year ago
Hello I am looking to implement a sigmoid function as an activation function for ML(I do know that there is now a ML Related). I need to implement this is a fixed...

Re: Optimal Cascaded FIR Decimator design

Reply posted 2 years ago (01/04/2022)
Thank you both, in my specific situation I have hardware that can "multiply" and accumulate 256 one bit values by 16 bit values producing a single multi bit output....

Re: Optimal Cascaded FIR Decimator design

Reply posted 2 years ago (01/04/2022)
Thanks a lot, I'll go through your paper. In reality I won't be performing any multiplies in the first stage but I tried to simplify my question as it was getting...

Optimal Cascaded FIR Decimator design

New thread started 2 years ago
I would like to design an FIR filter to decimate a high rate 1 bit signal to a low rate high bit signal. Due to implementation constraints I have fixed filter length...

Re: PDM - PCM CONVERSION AND THEIR CHARACTERISTICS

Reply posted 3 years ago (06/02/2021)
I have written a PDM to PCM library in software. The relevant documentation is:https://www.xmos.ai/download/lib_mic_array-[usergu.... It documents the filters used...

Re: The size of an FIR filter for PDM-PCM conversion

Reply posted 4 years ago (07/17/2020)
I would use a cascade of FIR filters. I implemented a microphone PDM to PCM converter in software as three cascaded FIR filters with a divide by 8, divide by 8...

Re: Block Floating Point in FFT.

Reply posted 4 years ago (05/11/2020)
There are many ways to deal with this but one would be to have the butterfly operator include an optional pre-left-shift. Each butterfly would also update a register...

Re: Block Floating Point in FFT.

Reply posted 4 years ago (05/11/2020)
You cannot shift any single butterfly left you need to do the whole stage, for this reason you might want to allocate yourself a bit of headroom and if at the end...

Re: NLMS code (simple question)

Reply posted 4 years ago (04/21/2020)
Are you asking if n starts at zero? If so then yes. I would typically define negative x(i) = 0 (i.e. initialise x(0) to be zero)

Re: NLMS code (simple question)

Reply posted 4 years ago (04/21/2020)
I typically do this the other way around, i.e.x(n) = [x(n) x(n-1) ... x(n-L+1)]^Te(n) = d(n) - x(n)*w(n)w(n+1) = w(n) + mu * x(n)^T * e(n)Then there is no need...
during this change of frequency of 1700.0Hz to 1700.5Hz what happens to the rest of the spectrum? i.e. should the 500Hz and 2500Hz remain unchanged?
Are you doing time or frequency domain block processing? Frequency domain is much faster for long FIR lengths. Also depending on how much latency you can afford...

Re: Adaptive Filter Theory: prequisites to learning

Reply posted 5 years ago (07/14/2019)
I have implemented an echo canceller and my recommendations are:Linear algebraFrequency domain implementation of convolutions and correlationsFrequency domain adaptive...

Re: FIR filter shortening technique

Reply posted 5 years ago (07/11/2019)
To be clear you want to shorten a 1024 tap FIR down to 3 taps whilst preserving the magnitude response but are willing to compromise on the phase response? Will...

Re: Fixed point exponentiation

Reply posted 5 years ago (07/04/2019)
Results time, I went with a polynomial approximation. For those interested exp.ctwo_to_the_power.pyThese are the python I used to generate the coefficients and...

Re: Fixed point exponentiation

Reply posted 5 years ago (07/02/2019)
Thank you all for the ideas, I'll hopefully be able to get back with the solution I went with.

Fixed point exponentiation

New thread started 5 years ago
I have a need to raise two to the power of a fixed point number, for example 2**(Q31(-0.4)). Does anyone know an efficient way this I can implement this to a reasonable...

Re: Machine learning and detection in noise

Reply posted 5 years ago (06/28/2019)
I'm sure this would work but if you are trying to detect tones then this sort of solution is like using an n squared algorithm to solve a problem that can be solved...

Re: linear array beam pattern

Reply posted 5 years ago (04/07/2019)
By far the easiest way to reduce the sidelines of a delay-sum beam former for a linear array is to implement array shading, essentially to weight each sensor a...

Re: LMS data self correlation problem

Reply posted 5 years ago (03/02/2019)
Thank you

Re: LMS data self correlation problem

Reply posted 5 years ago (03/02/2019)
Apologies for the poor description, I've now looked further into what is happening. My observations are that if I use uncorrelated broadband noise as my input for...

LMS data self correlation problem

New thread started 5 years ago
I have implemented an adaptive filter using an LMS based approach. The purpose of the filter is to subtract a signal X from a signal Y where Y is assumed to have...

Re: Constant Overlap and Add weights

Reply posted 6 years ago (01/30/2018)
I see from:https://www.dsprelated.com/freebooks/sasp/Overlap_...That:The Bartlett window is clearly COLA for a wide variety of hop sizes, such as  ,  , and...

Constant Overlap and Add weights

New thread started 6 years ago
I am doing some block based adaptive filtering and need to reconstruct the signal after filtering. I would like to parameterise the hop length(step size) between...

Re: Off Topic: A geometry problem

Reply posted 6 years ago (11/16/2017)
Given the unrestricted definition of this problem I would like to park in the arts and crafts store giving both AB

Re: Noise aliasing with CIC filter

Reply posted 7 years ago (10/19/2017)
I wrote a quick and dirty numerical test, cic python, i get:Decimation ratio: 2 SNR: 7.65218361275dBDecimation ratio: 3 SNR: 4.10244607988dBDecimation ratio: 4...
Hello, I am playing with noise suppression for voice processing applications. I have done a bit of reading and thought it sensible to ask if anyone could advise...
I'm using an xcore processor. On which divides can be about 10 times the cost of a multiply from a LUT.
Thanks, that's even better.
That's a nice idea. I'll model the error and see how much interpolation i can get away with as a massive LUT is not preferable but the speed it offers is. I assume...
I am doing some spectral subtraction type DSP and I have found that one of the major sources of computation is the adjustment(via subtraction) of the complex frame...
I have done work on high speed PMSM motor control. For motors with high number of poles rotating at high speeds the control loops benefit from very high rates. I...

Re: Digital Microphone Testing

Reply posted 7 years ago (06/21/2017)
Thanks, I like the idea of the optional increased test coverage.This particular device is able to produce it's own sound(with an attached speaker). Maybe using that...

Re: Digital Microphone Testing

Reply posted 7 years ago (06/21/2017)
The purpose of a 10-30 seconds test limit is to facilitate testing a lot of PCBs in a short amount of time, as time costs money. Ideally, the microphone testing...

Digital Microphone Testing

New thread started 7 years ago
Hello, I am writing some manufacture tests for digital microphones (an array of) attached to a PCB. I want to verify that they are 1) producing valid audio without...

Re: Simplification of an LMS implementation

Reply posted 7 years ago (06/12/2017)
Thank you very much

Simplification of an LMS implementation

New thread started 7 years ago
Hello, I have implemented an adaptive blocking matrix(ABM) as part of a robust generalised sidelobe canceller. This involves using LMS to cancel the output of a...
To further explain what I am trying to achieve: I am implementing a polyphase decimation FIR, say divide by 8, with a 16x16 multiply accumulate to a 32 bit accumulator...
Agreed, I will do some reading so that I can better describe what I am trying to define. My feeling is that I would like to be able to know that a signal from 0 dBFS...
The filter is a polyphase symmetric FIR with varying coefficient quantisation, i.e. each coefficient has 14~16 bits of information(mantissa?). In effect the coefficients...
This is defiantly a linear with insignificant aliasing. I was thinking that dynamic range was: "the ratio of the largest to the smallest intensity of sound that...
I have a filter that I am unable to analyse analytically to derive its dynamic range so I would like to analyse it by observing it. The filter performs a decimation...

Re: PDM asynchronous sample rate conversion

Reply posted 7 years ago (04/04/2017)
As you might be able to tell, due to the speed, I am sort of limited to the dropping and summing of samples(and other simple operations).

Re: PDM asynchronous sample rate conversion

Reply posted 7 years ago (04/04/2017)
I have run three simulations. In all simulations I ran a 5th order PDM modulator with a 1kHz input signal and a 1 bit 3.072MHz output. I then took the FFT(hanging...

Re: PDM asynchronous sample rate conversion

Reply posted 7 years ago (03/24/2017)
Thank you very much for all the ideas, I'm going to run some simulations and come back with my results.

Re: PDM asynchronous sample rate conversion

Reply posted 7 years ago (03/23/2017)
Certainly, the system in which I am working is receiving a 16kHz clock from an external source. The chip I am programming can generate clocks very close to 16kHz*192...

Re: PDM asynchronous sample rate conversion

Reply posted 7 years ago (03/21/2017)
Thanks, both of you. I thought I would have to go to the lengths of a proper asynchronous sample rate converter with which I am familiar. What I was curious too...

PDM asynchronous sample rate conversion

New thread started 7 years ago
Hello, I am looking to sync a 3072000Hz-ish PDM signal(clock) to an external 16kHz-ish PCM signal(clock). The PDM clock is running slightly faster then the PCM...

Use this form to contact andrewstanfordjason

Before you can contact a member of the *Related Sites:

  • You must be logged in (register here)
  • You must confirm you email address