Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

Input audio file into altera DE1 kit

Hi,

Can i direct inputting audio files like .mp3 file into Altera DE1 kit or i must input the audio via using microphone?

Any useful steps or simple coding to do so?

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    If you are using a NIOS, you can use the HAL Host-Based File System to use fopen(), fread() etc. to transfer the file from your PC hard drive.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Just take the SD card out of the DE1 and mount it in your computer. Copy the file like any other. Note that the Nios may not be powerful enough to decode MP3 in real time. Use a .wav format file instead.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Just take the SD card out of the DE1 and mount it in your computer. Copy the file like any other. Note that the Nios may not be powerful enough to decode MP3 in real time. Use a .wav format file instead.

    --- Quote End ---

    Hi,

    here are the question i facing when using SD card as input source

    1. How do i able to read a .wav audio file in SD card using FPGA kit via Verilog HDL coding?

    2. How do i able to sample the audio's sampling frequency?

    3. Are I able to mix 2 audio files together via using FPGA kit or i need to mix it before i insert the audio file into the FPGA kit

    4. How to implement megawizard into the coding??