RP and audio DSP

Have an idea? Post it here! - Looking for developers? Ask here as well!
Post Reply
kasaudio
Posts: 50
Joined: Sun Mar 11, 2018 6:03 pm

RP and audio DSP

Post by kasaudio » Mon Mar 12, 2018 7:22 pm

Dear RedPitaya gurus!

I'm new in this forum as well as I'm new with my Red Pitaya (125-14, diagnostic kit). Among using it as a portable oscilloscope, signal generator and logic analyzer I would like the get familiar with basics of FPGA programming.

Quite some time ago, I started my own audio DSP project - digital speaker processor. It is used in a proffesional audio field. It offers amplitude and phase equalisation, splitting audio signals in more frequency bands (crossver), time equalisation and dynamic processing of the sound in terms of protecting speaker units from overload.

Processor is divided in two parts; Analysis part is used for measurement of the speaker system (DUT) and creating a suitable correction filter. Synthesis part performs actual processing in real-time. For amplitude and phase compensation, a special mixed phase FIR filters is used.

System runs on a windows PC and uses computer's CPU for processing. Audio streams are provided with external audio interface(s).

The system runs great in general. From this aspect it would be really nice to implement the synthesis part completely in hardware without the voulnerable PC that compromises robustness of the system.

In consumer digital audio, SPDIF (optical and electrical) is commonly used for transferring digital audio stream between devices. In pro digital audio AES-EBU is commonly used. It is simmilar to SPDIF but it uses balanced line with some higher signal voltages enabling 100-200m of reliable audio connction over shielded balanced cable.

As this protocol is well-known (and the simplest to my mind) I find it the most suitable for my project. SPDIF or AES protocol carry PCM audio samples and the clock signal as well.

I would like to connect SPDIF/AES line to appropriate input of my RP, extract PCM audio samples, process the samples with FIR filter on the FPGA and "write" the resulting audio samples in SPDIF/AES protocol to appropriate output of my RP. There is no AD-DA conversion, everything should go completely digital.

There are commonly 48000 or 96000 samples per channel per second, audio samples have bit depth of 16 or 24 and there are 2 audio channels in SPDIF/AES stream. Compensating FIR filters have 1000-1500 taps in general.

Can anyone give me some suggestion where to start with this project.

Best regards, and thanks for reading/suggesting in this topic.

Kasaudio

pavel
Posts: 786
Joined: Sat May 23, 2015 5:22 pm

Re: RP and audio DSP

Post by pavel » Mon Mar 12, 2018 8:53 pm

There is a ZYNQ-based audio processing system developed by Patrick Cazeles. You can find some information about this system at the following links:
https://www.xilinx.com/publications/pro ... h_Zynq.pdf
https://www.parallella.org/wp-content/u ... 5_patc.pdf
https://forums.xilinx.com/t5/Xcell-Dail ... a-p/776765

The source code is in the heap.zip file posted on the Parallella forum:
https://parallella.org/forums/viewtopic ... =30#p14308

kasaudio
Posts: 50
Joined: Sun Mar 11, 2018 6:03 pm

Re: RP and audio DSP

Post by kasaudio » Mon Mar 12, 2018 9:25 pm

Thank you pavel for pointing me to exactly what i was looking for.
BR, kas

kasaudio
Posts: 50
Joined: Sun Mar 11, 2018 6:03 pm

Re: RP and audio DSP

Post by kasaudio » Thu May 17, 2018 4:16 pm

Finally managed to start learning Red Pitaya FPGA. Till now I just spend some time reading different docs about RP FPGA programming. I have no experience with this topic, nor used Linux operating system before.

I started with

http://red-pitaya-fpga-examples.readthe ... setup.html

From there I came to:

http://antonpotocnik.com/?p=487360

I'm somehow confused with the following:
Our projects will be similar to the ones made by Pavel Demin where we will even use some of his Red-Pitaya specific IP cores. Here posts will similarly not start with a modification of the official Red Pitaya source code as it contains many components required by bazaar apps and is thus unnecessarily complex. Instead we will start with a minimal system and gradually add new components.

In the first post we will set up a development platform for programming FPGA using Xilinx’s Vivado software and create the simplest example – a hardware equivalent of the Hello World – the LED blink. For convenience all steps presented here will be shown for Windows operating system, although most of them will also work on Linux. For more information regarding Vivado installation under Linux see RedPitaya’s (for Vivado 2013.3) or Pavel Demin’s (for Vivado 2016.2) page.
Can I program RP FPGA with windows or linux is required?

pavel
Posts: 786
Joined: Sat May 23, 2015 5:22 pm

Re: RP and audio DSP

Post by pavel » Thu May 17, 2018 7:53 pm

kasaudio wrote:
Thu May 17, 2018 4:16 pm
Can I program RP FPGA with windows or linux is required?
Yes, you can program RP FPGA with windows.

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 4 guests