Author Topic: Zynqberry sound  (Read 2472 times)

svenssonjoel

  • Active Member
  • *
  • Posts: 14
Zynqberry sound
« on: November 13, 2016, 10:23:52 AM »
Hello,

Could anyone point me to a source of information on how to get sound out of a zynqboard (preferably the zynqberry). Want to generate the "wave" in the FPGA and -somehow- get it to a speaker.

Most interested in doing this "baremetal", dont know if that offers any additional benefits/problems, please advice.

Thank you very much and have a great day

Oleksandr Kiyenko

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 326
Re: Zynqberry sound
« Reply #1 on: November 14, 2016, 10:33:37 AM »
Hello,

we have linux demo with sound input and output https://shop.trenz-electronic.de/de/Download/?path=Trenz_Electronic/TE0726/Reference_Design/2016.2/te0726_m_demo3 , but
it use DMA and can be compliacated to run it from baremetal. So if you want to make simple project you can use "AXI-Stream FIFO" core as accomulator for data, then you need to take "AXI-Stream to I2S" and  "I2S to PWM" cores from reference design. "AXI-Stream to I2S" should be modified for 32-bit data (you can simply extend input bus width to 32 bit but use only lower 16 bit). With this hardware project you can write simple software which will write data to FIFO and control overflow.

Best regards
Oleksandr Kiyenko

svenssonjoel

  • Active Member
  • *
  • Posts: 14
Re: Zynqberry sound
« Reply #2 on: November 14, 2016, 01:14:23 PM »
Awesome, thanks. I will look at this design.

Will be back with further questions, if ok.

Thanks a lot and have a great day