Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17043 Discussions

DE2: Audio Codec development - Walk with me please :)

Altera_Forum
Honored Contributor II
1,930 Views

Hello, 

I'm going to start working on writing the VHDL for the Audio Codec in the DE2. I was hoping that by posting my progress here, I'd: 

  1. Be able to work step by step and clearly ask questions on each one 

  2. Build an informative document that could serve as a tutorial for other users interested in doing the same thing. 

 

 

I'll be using the datasheet hosted here (http://www.johnloomis.org/altera/de2/datasheets/audio%20codec/wm8731_wm8731l.pdf).  

 

Thanks to anyone who helps and I hope others find it useful. :)
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
944 Views

So,  

I originally thought I'd start with the first item in the datasheet, but after having a read, it seems I should be starting with clock. For (what I think would be) ease of use, I've decided to use the Internal Crystal Oscillator for my clock. Page 32 describes it as what seems to be a reliable source for my purposes.  

 

So far it looks like I'll be using these features: 

  • Internal Clock 

  • Master Mode 

  • DSP Mode 

  •  

 

Now I just have to read up on how to achieve this in the datasheet :) 

TBC...
0 Kudos
Altera_Forum
Honored Contributor II
944 Views

hey MMalik , did you compiled the vhdl code for audio codec? if you have the coded , can you share with me.. 

i am using audio codec as adc for my final year project... 

thanks. help is appreciated..
0 Kudos
Altera_Forum
Honored Contributor II
944 Views

 

--- Quote Start ---  

hey MMalik , did you compiled the vhdl code for audio codec? if you have the coded , can you share with me.. 

i am using audio codec as adc for my final year project... 

thanks. help is appreciated.. 

--- Quote End ---  

 

Hello, 

I'm afraid I never took the time to start. I have recently decided to come back to FPGAs, but am considering using Lucid or Scala and convert to HDL. None of this would be of any help to you at the moment though.  

 

Good luck. 

 

Edit, found a nice paper in Verilog: 

 

http://www.eecg.toronto.edu/~jayar/ece241_08f/audiovideocores/audio/audio.html
0 Kudos
Altera_Forum
Honored Contributor II
944 Views

 

--- Quote Start ---  

hey MMalik , did you compiled the vhdl code for audio codec? if you have the coded , can you share with me.. 

i am using audio codec as adc for my final year project... 

thanks. help is appreciated.. 

--- Quote End ---  

 

 

his utilization is not a hello world demo.... if start from zero, it would be time consuming when ther eis no example design as reference.
0 Kudos
Altera_Forum
Honored Contributor II
944 Views

 

--- Quote Start ---  

his utilization is not a hello world demo.... if start from zero, it would be time consuming when ther eis no example design as reference. 

--- Quote End ---  

 

 

When I last read the intro, the code was included, for the audio codec itself, not sure about any other modules. You seem to just want the full answer and not learn by example. I hope you get what you would like, but don't you think that if you're training to be a professional that it's important to learn a bit of what you'll be involved in(if you're lucky)? 

 

How much do you know about HDLs? If you'd like, we could exchange messages and try to learn this together.
0 Kudos
Altera_Forum
Honored Contributor II
944 Views

Hi, 

 

if you are using the DE2 board, which was mentioned in the beginning then take a look at the example designs: http://www.terasic.com.tw/cgi-bin/page/archive.pl?language=english&categoryno=165&no=30&partno=4. There you will find an example design called "DE2 Music Synthesizer Source Code". I just downloaded it and it looks like it contains an audio codec written in Verilog HDL. 

 

I hope this helps.
0 Kudos
Reply