UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Newbie xorior
Newbie
3,815 Views
Registered: ‎06-11-2014

Zynq/Vivado: Audio Data Transfer between PL and PS / CDMA?

Hi,

for my current project, I need to move audio data between PL and PS,
in a magnitude of maybe 16 stereo channels in&out, 24bit at 96kHz.
Using 32 bits/sample, this results in ~12MB/sec from PL to PS (Linux) and vice versa.

Being new to zynq, it seems to me that CDMA would be the way to go.

So my approach would be to buffer the samples from PL to PS in BRAM,
connecting one BRAM port to my logic and the other one to a AXI BRAM Controller.

Then I would put a CDMA Core to my design, it's master interface (inter)connected
to a PS HP Slave Port and the BRAM Controller.
The CDMA's slave interface would then be connected to the PS GP Master port.

Now, when the BRAM buffer is filled, I would trigger an interrupt from PL
and the PS would start a CDMA transfer from BRAM to the PS's DDR RAM.
After completion, the PS would start another transfer from DDR (containing the outgoing data)
to another BRAM buffer.

My question is: Does this sound sane? Or is there a better way to do it?

Thank you,

Hubert

4 Replies
Xilinx Employee
Xilinx Employee
3,802 Views
Registered: ‎08-02-2011

Re: Zynq/Vivado: Audio Data Transfer between PL and PS / CDMA?

Hi Hubert,

That sounds reasonable to me. You should also look at just using an AXI DMA (instead of CDMA) which has a native streaming data interface which should be a bit easier to use. And the core can continue to send data as it receives it.
www.xilinx.com
0 Kudos
Adventurer
Adventurer
3,082 Views
Registered: ‎10-17-2014

Re: Zynq/Vivado: Audio Data Transfer between PL and PS / CDMA?

Hi 

"And the core can continue to send data as it receives it." . Would you please explain it to me ? Thanks.

0 Kudos
Xilinx Employee
Xilinx Employee
3,071 Views
Registered: ‎08-02-2011

Re: Zynq/Vivado: Audio Data Transfer between PL and PS / CDMA?

I just mean that it streams data at a fast rate
www.xilinx.com
0 Kudos
Teacher muzaffer
Teacher
3,023 Views
Registered: ‎03-31-2012

Re: Zynq/Vivado: Audio Data Transfer between PL and PS / CDMA?

Another option is to use the OCM on the PS and talk to it using the ACP which is coherent. So for low rates of data like yours it's a much more convenient interface to create a mailbox and transfer small chunks of data (say 4/8 K) coherently
- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
0 Kudos