Forum Discussion
Altera_Forum
Honored Contributor
15 years agohelp for audio codec using VHDL
i am a begineer at using altera DE2 board and VHDL. i have to complete my project with in 10 days time but dont have any idea of where to start and how.. help .........
i need to build a duplex audio system that works similar to a phone but here CDMA must be considered. first i would like to have some good advice on where to start and how .... on audio CODEC any help would be more than appreciated72 Replies
- Altera_Forum
Honored Contributor
--- Quote Start --- I have attached a few pieces of my hardware description in VHDL. Note that is for the Wolfson WM8731 on the DE1 board. But the DE2 has the same chip so the attached hardware description should work with the appropriate pin assignment modifications. Note that I could not upload clockBuffer.vhd because of the 5 file limit. BUT you should be able to easily create the clockBuffer using the MegaIP wizard. Also I do not claim my code is the best (especially the i2c part) but it does the job. You should go through the code and understand how it works. Honestly, if you are a beginner with VHDL and DE2, it may be very difficult to finish this project in 10 days (unless you have previous hardware design experience). Good luck. Bart --- Quote End --- i already run the file that u upload...but the coding have error after compilation. the error's message: [Error: Node instance "i2cController" instantiates undefined entity "i2c_controller"] mbharat, could you pls help me to fixed this error. tq - Altera_Forum
Honored Contributor
I am almost done moving the website over but I already posted the .zip in the forums. Search for it and you will be able to find it. Good luck.
Bart - Altera_Forum
Honored Contributor
I cannot reach
myweb.msoe.edu/muthuswamy/Dig...21/audio/VHDL/ Is it possible you post the Zip file here :) - Altera_Forum
Honored Contributor
--- Quote Start --- i am a begineer at using altera DE2 board and VHDL. i have to complete my project with in 10 days time but dont have any idea of where to start and how.. help ......... i need to build a duplex audio system that works similar to a phone but here CDMA must be considered. first i would like to have some good advice on where to start and how .... on audio CODEC any help would be more than appreciated --- Quote End --- Hi, I'm trying to configure WM8731 Codec on DE2 board as an ADC too. But i have no idea how the whole thing works. I'd like to pump in music through WM8731 Codec, and pass the music signal to FPGA (I have designed a LPF and program in cyclone II), then obtain the filtered music signal through WM8731 Codec again. The purpose that using WM8731 Codec is just to demo the audio signal filtering process in real time. I'd like to disable the filtering function that provided by WM8731 Codec. Other than configuring WM8731 Codec, i will need another file for configuring i2c so that WM8731 Codec can communicate with FPGA (cyclone II) ? Am i rite? Please guide me through this. If possible, i'd like to have a copy of codes as reference. I'm just a beginner. Your help will be appreciated :) - Altera_Forum
Honored Contributor
--- Quote Start --- thank you again i have now been able to configure the mic in line in and out ............. sorry to bother you again but i want another help how do i use the data of mic in.......... in your program i can use ta line in data but how to use the mic in data??? --- Quote End --- Hey bhatta, Can you please share with me how you were able to read in the data from the mic? Thanks - Altera_Forum
Honored Contributor
--- Quote Start --- i executed your code in quartus. But on compiling it says i2c_controller entity is undefined. Wat do i do? --- Quote End --- http://myweb.msoe.edu/muthuswamy/digitalsystemsdesign/ee3921/audio/vhdl/ Bart - Altera_Forum
Honored Contributor
i executed your code in quartus. But on compiling it says i2c_controller entity is undefined. Wat do i do?
- Altera_Forum
Honored Contributor
Hello FPGA_guru011,
As I posted earlier, please download the design from the following folder: http://myweb.msoe.edu/muthuswamy/digitalsystemsdesign/ee3921/audio/vhdl/ Please make sure to read the documentation. Repost if you have questions. Bart - Altera_Forum
Honored Contributor
Hi mbharat ,
i tried to compile your vhdl files , i think you missed uploading "i2cController" file ?? Regards, - Altera_Forum
Honored Contributor
Hmmm..I followed FvM's suggestions and posted the audio codec on the Altera wiki (quite a while back):
http://www.alterawiki.com/wiki/de1_board Anyway, now I also added documentation. Thx. Bart