Page 1 of 8 123 ... LastLast
Results 1 to 10 of 72

Thread: help for audio codec using VHDL

  1. #1
    Join Date
    Nov 2010
    Posts
    12
    Rep Power
    1

    Default help 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 appreciated

  2. #2
    Tricky is offline Moderator **Forum Master**
    Join Date
    Oct 2008
    Posts
    5,432
    Rep Power
    1

    Default Re: help for audio codec using VHDL

    Have you looked on opencores.org?

  3. #3
    Join Date
    Nov 2010
    Posts
    12
    Rep Power
    1

    Default Re: help for audio codec using VHDL

    nope i didnt find anything there i just need codes to get audio from the audio input port and then output it thourh the other audio playing port in VHDL

  4. #4
    Join Date
    Oct 2010
    Location
    Santa Clara, CA, USA
    Posts
    47
    Rep Power
    1

    Default Re: help for audio codec using VHDL

    Quote Originally Posted by bhatta422 View Post
    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
    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
    Attached Files Attached Files

  5. #5
    Join Date
    Nov 2010
    Posts
    12
    Rep Power
    1

    Default Re: help for audio codec using VHDL

    would you please upload it with the whole project .... that would be of great help... please zip all the project file and upload it........... that would be helpful... anyways than you for your update

  6. #6
    Join Date
    Oct 2010
    Location
    Santa Clara, CA, USA
    Posts
    47
    Rep Power
    1

    Default Re: help for audio codec using VHDL

    Quote Originally Posted by bhatta422 View Post
    would you please upload it with the whole project .... that would be of great help... please zip all the project file and upload it........... that would be helpful... anyways than you for your update
    Hey,

    My project will not help you because I don't have a DE2 board (yet). Anyway, I have attached the final .vhd file (clockBuffer). You should simply be able to create a new Quartus project, import pin assignments for the DE2 and modify the top-level accordingly.

    Again IMO, if you have difficulty migrating my project from the DE1 to DE2 board, finishing a CDMA design in 10 days might be very difficult.

    Bart
    Attached Files Attached Files

  7. #7
    Join Date
    Nov 2010
    Posts
    12
    Rep Power
    1

    Default Re: help for audio codec using VHDL

    this is the pin table i just cant find the right pin for the names you have defined........ the board keeps playing sound irrespective of the program..... i dont know what to do ........ even if i get this done it would be great achievement leave alone the CDMA part.... i might use HDLC frame format instead but currently i need to manipulate the audio input. ...... and since the system is to be full duplex using nios is not the solution...... would you help me in pin assignment .............that would of great help
    cheers
    thanks again for replying
    Attached Files Attached Files

  8. #8
    Join Date
    Nov 2010
    Posts
    12
    Rep Power
    1

    Default Re: help for audio codec using VHDL

    i tried it with your program it just gives a silent output i couldnt get the mic in output using it can you suggest why is that happening???

  9. #9
    Join Date
    Oct 2010
    Location
    Santa Clara, CA, USA
    Posts
    47
    Rep Power
    1

    Default Re: help for audio codec using VHDL

    Quote Originally Posted by bhatta422 View Post
    i tried it with your program it just gives a silent output i couldnt get the mic in output using it can you suggest why is that happening???
    The comments at the beginning of my top-level says that my hardware does only Line-In to Line-Out loopback.

    If you want to use the Mic, then you have to modify the i2c initialization routine. It is actually simple to do. Read the audio codec datasheet (it should be on your DE2 CD), specifically starting at page 46 where it describes the register map. Figure out the exact register you need to program for mic in.

    Good luck.

    Bart

  10. #10
    Join Date
    Dec 2007
    Location
    Bochum Germany
    Posts
    6,066
    Rep Power
    1

    Default Re: help for audio codec using VHDL

    The code should be published at the Altera Wiki. It's much more instructive than the respective Terasic demonstration projects.

Similar Threads

  1. Audio CODEC AIC23 vhdl/verilog
    By Blue_Sky in forum Development Kit Related
    Replies: 29
    Last Post: January 12th, 2014, 06:06 PM
  2. Using Audio Codec
    By trybest in forum FPGA, Hardcopy, and CPLD Discussion
    Replies: 1
    Last Post: April 5th, 2011, 07:05 AM
  3. please help audio codec
    By hararim in forum University Program
    Replies: 0
    Last Post: March 18th, 2010, 02:12 AM
  4. Help with the Audio Codec
    By patrickbway in forum Development Kit Related
    Replies: 5
    Last Post: December 9th, 2009, 06:48 PM
  5. audio codec -- help help
    By galaxary in forum Development Kit Related
    Replies: 1
    Last Post: April 24th, 2008, 03:24 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •