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
hi
I'm trying to get the sound from adc and send the data to the dual port ram and i will control the system with nios but the most important part :when we get the data from WM8731; ı want to check the data like the leftdata and the right data . one port of ram will take the right data ,the other port of ram will take the leftdata .can you help me ? after that i will take fft so complicated . ı run your adcdac controler code and at first and second trying it is compiled. but now it is not . ı hear the voice from only left side . ın wm8731 datasheet some parameters (for ex. chipselect volume and etc but where did you define to use the left or right side ? how can use 2 part ?please help :S - Altera_Forum
Honored Contributor
--- Quote Start --- hi I'm trying to get the sound from adc and send the data to the dual port ram and i will control the system with nios but the most important part :when we get the data from WM8731; ı want to check the data like the leftdata and the right data . one port of ram will take the right data ,the other port of ram will take the leftdata . --- Quote End --- Usually, you use one port of RAM for input and the other for output. I am thinking you are making both ports read/write? I would have one RAM for left channel data and another RAM for right channel data. --- Quote Start --- ı run your adcdac controler code and at first and second trying it is compiled. but now it is not . ı hear the voice from only left side . ın wm8731 datasheet some parameters (for ex. chipselect volume and etc but where did you define to use the left or right side ? how can use 2 part ?please help :S --- Quote End --- You can't "run" my "code". You mean that you are synthesizing my hardware description. Anyway, I have reposted a student project in the link above. It also includes a detailed report on how the design works (check Report folder). In addition, the student project also includes simulating a set of nonlinear differential equations using Euler's method (note that this was originally Cornell University's Differential Analyzer, as cited in the project). This should hopefully help you in understanding how to send data to and from the audio codec to a module (in this case neuronModel.vhd). You should configure the mega IP wizard FFT module and use it instead of the neuronModel. Good luck. Bart - Altera_Forum
Honored Contributor
Hey.. I am new to VHDL..I have been trying to implement the code provided.if you have the file for pin assignments please attach it here.
regards, Amit - Altera_Forum
Honored Contributor
--- Quote Start --- Hey.. I am new to VHDL..I have been trying to implement the code provided.if you have the file for pin assignments please attach it here. regards, Amit --- Quote End --- The pin assignments have already been imported. If you want the DE1 pin assignments, you can get them from the DE1 CD-ROM on Terasic's website: http://www.terasic.com.tw/cgi-bin/page/archive.pl?language=english&categoryno=53&no=83&partno=4 - Altera_Forum
Honored Contributor
hi mbharat........
the DE1 use cyclone 2 FPGA?????? i had two board .... DE2 and cyclone 3 dev board and i wanna port your code to my boars........ the DE2 is better to do it i guess....... another question..... about the pin clock_27[1..0] .... you conect this pin to a external clock??? and gpio_0[35..0] where i need conect this????? i2c pins are used for what???? to configure ????? thank u to post cheers Franz Wagner - Altera_Forum
Honored Contributor
--- Quote Start --- hi mbharat........ the DE1 use cyclone 2 FPGA?????? i had two board .... DE2 and cyclone 3 dev board and i wanna port your code to my boars........ the DE2 is better to do it i guess....... --- Quote End --- You can port the hardware to an FPGA board that contains the Wolfson WM8731 audio codec. --- Quote Start --- another question..... about the pin clock_27[1..0] .... you conect this pin to a external clock??? and gpio_0[35..0] where i need conect this????? i2c pins are used for what???? to configure ????? --- Quote End --- If you download DE1AudioAdcDac.zip from the link in this thread and unzip it, you should find a project report under the Report folder. Read and understand that report, it answers all your questions. Bart - Altera_Forum
Honored Contributor
hi ....... thanks to reply
yeah ... the DE2 had this audio codec........ i read the documentation..... and its works!!!! did you use this project to simulate neural network????????? thank you man...... Franz Wagner - Altera_Forum
Honored Contributor
--- Quote Start --- hi ....... thanks to reply yeah ... the DE2 had this audio codec........ i read the documentation..... and its works!!!! did you use this project to simulate neural network????????? --- Quote End --- Glad to hear it works, no we did not use it to simulate a neural network. That was one of the potential applications but we have no time since our school is on a quarter system. Actually the problem is not simulating a neural network but rather how to make the network learn something useful. The neuron model that we use can also be used to simulate tens of thousands of cortical spiking neurons on a PC in real-time (with 1 ms resolution): http://www.izhikevich.org/publications/spikes.pdf Bart - Altera_Forum
Honored Contributor
hi ....
good job .........very good DE2 and DE1 are too much similar............i only change few pins i work with video/ip and uclinux under nios2 but i was very interested in researching this subject .....thanks cheers Franz Wagner - Altera_Forum
Honored Contributor
hii
i hav just started using vhdl.For now i hav to store the sampled audio signal and then perform fft on it.for the first part,i went through the codes posted above.i dint get how do i compile all source files in one project or do i hav to try and convert into a single file.plz help. thanks.