Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

digital audio on an fpga

Status
Not open for further replies.

Christian Chetcuti

Junior Member level 3
Joined
Mar 12, 2014
Messages
30
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
213
is there any way of passing digital audio files on an fpga in order for me to use them as input for amplitude modulation?
 

Is there any way there are going to be a crap-load of followup questions after I answer your current question with "Yes."? XD

Because generally speaking, yes this is indeed possibly. But the difference between this simple "yes" and something that actually does something is a lot of hard work. And that hard work starts by writing a somewhat detailed specification. ;)
 

sorry for being too brief.. i am using a nexys 3 board, and have no idea which port and how to implent digital audio interfacing
 

Have you looked at the nexys 3 documentation to determined if there is a A/D converter on the board to sample the audio? Or do you have an A/D convert that you will connect to the nexys 3 board to receive digitized audio data? Do you know anything about Nyquist theorem?

Given the problems you had on your previous posts about the sine wave. I suspect you're biting off more than you can chew with this design.
 

i hope i'm not ads-ee! :) I dont know if you know but the nexys 3 board doesn't actually have A2Ds or D2As on board... still i have an external a2d in hand but dont really want to use it for this process. is there a way of transferring already digital audio onto the fpga?
 

Short answer yes.

Long answer needs more information from you (specifications).
Where does the digital audio reside? is it going to be sent realtime to the nexys 3 (streaming) or is it a file on a PC that you send to the nexsys 3 possibly in it's entirety to a DDR RAM of some sort.

Things like that need to be understood (by you) before we can make suggestions or help you further.
 

i haven't decided yet.. what do you think is the simplest way and do you have any suggestions regarding implementation?
 

Well, you said digital audio processing. For that you don't need analog. Needing analog would mean there were some unwritten assumptions. ;-)

For digital audio processing all you need is digital input audio stream ==> processing block ==> digital output audio stream.

On the subject of transferring ... you want to think in terms of stream, not file. You want to stream your digital audio to the fpga and do whatever processing.

You can stream the data either over USB or ethernet. Which one you choose depends on what code and experience with nexys 3 you already have and what your other requirements are.
 

the aim of my project is of implementing a basic SDR. i would need an audio file streamed to my fpga, which would then be modulated, and later on transmitted.. as you've guessed i'm still learning so i dont have much experience but am willing to learn.. which do you think is easier, streaming data over usb or ethernet ?
 


i will check about adept, i use it to transfer the bit file from pc to the fpga, but never tried to transfer an audio file

- - - Updated - - -

@mrfibble, as you suggested i managed to upload an audio file onto the board through the mentioned software as shown in the image below..

Screen Shot 2014-11-17 at 20.19.13.png

I am now trying to find a way to access this file in order to make use of it for amplitude modulation, feel free to suggest any adjustments.

Thanks again
 

I just knew you'd go for file transfer instead of I/O. :p

Question regarding your requirements:
- do you want process small chunks at a time?
- do you want to process an audio stream?

So, which is it? chunked or stream? If chunked then file might be okay. If stream then I'd ditch file right now and get some I/O going. I'd start with looking how the adept API works so I can make a small tool that sends data to the fpga and can receive data back. And then on fpga you make a simple echo server as first thing. After you get that working you make a small processing pipeline. And after that you do the real design with full processing.

So action numero uno: read the Adept docs and see how you can do streaming read/write to the fpga.

- - - Updated - - -

Grab the SDK for either linux or windoze here: http://www.digilentinc.com/Products/Detail.cfm?Prod=ADEPT2

And then check out the samples + corresponding doc/*.pdf
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top