Audio project with an FPGA? - diyAudio
Go Back   Home > Forums > Source & Line > Digital Source

Digital Source Digital Players and Recorders: CD , SACD , Tape, Memory Card, etc.

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 12th March 2002, 04:44 AM   #1
diyAudio Member
 
Join Date: Jan 2002
Location: boston
Default Audio project with an FPGA?

Hi!
I'm a third year student in electrical engineering and in one of my class we have to design something with an FPGA (from altera).
------
'For your term project you are to choose an interesting digital system, design the system in VHDL, synthesize it for the Altera family of FPGAs and gather statistics. Your project should use between 5,000 to 200,000 logic gates and can use multiple FPGAs.
------

I don't really know what can be done with FPGAs but I'd like to do something related to audio. I know groups from past years designed an mp3 decoder. This would have been interesting a couple of years ago but now I think it is over-used.
Any ideas are really welcome Btw, this is for a 3 credit class so it is not an 'End of degree project'.
Thanks a lot
David

Here are some proposed subject by the instructor...they don't look really attractive to me!!

1.. Error detecting-correcting modules. Some of the more advanced n-out-of-m error correcting codes (other than the Hamming codes) would be
very interesting topics.

2.. Various communication network protocols including ATM, SONET, Ethernet, FDDI, DBDQ, IBM token ring, high speed serial links or any recent development.

3.. Digital neural networks and fuzzy logic systems to recognize patterns or perform processing.

4.. A digital system including MPEG, JPEG, speech/image or video
compression and decompression systems, etc. Voice sub-band coding is one example; it can compress a 64 Kbit/s voice stream to about 8Kbit/s.

5.. RISC CPU, DSP and computer subsystems, for example, cache controller, schedulers, PCI bus interface.

6.. A hardware encryption/decryption units. The RSA, PGP, and DES algorithms are currently among the most popular.

7.. Fast designs for performing computer arithmetic algorithms, i.e., multiplication, division, square roots etc., including transform function such as FFT, DCT, and Hadamard Transform.

8.. Image processing systems: hardware to perform image manipulations, i.e. moving the view to the left or right, zooming in or out, rendering, hidden line removal, etc. The fields of computer graphics or Virtual Reality are full of interesting things to do with images.

10.. You can also construct smaller sub-systems of a larger system. For example, MPEG and JPEG compression systems often use 8x8 Discrete Cosine Transforms. You could just implement the DCT, which is a sub-system of the MPEG/JPEG systems.

11.. FPGAs have been proposed for use in DNA pattern matchers, where they apparently outperform supercomputers. They have been proposed in Nuclear Magnetic Resonance (NMR) medical machines, where they perform digital signal processing to create a 3D image of the human brain.
  Reply With Quote
Old 12th March 2002, 05:20 AM   #2
ih is offline ih
diyAudio Member
 
Join Date: Dec 2001
Location: Sydney, Australia
Send a message via ICQ to ih
You lucky bastard :-) I'd love to get an assignment like that (although, I might yet, next year).

I'd go for some sort of dedicated CPU - maybe distributed.net on a chip, maybe a PCI bus monitor, maybe a web server, NAT on a chip... cache controller would be a lot of fun, too.

Right, right, you want audio. Umm...
FFT/spectrum analyser?
Audio processor?
Audio encrypter?
S/PDIF decoder?
Modem?
Arbitrary function generator?
Sound recorder (including compression)?

(tee hee... I can't wait until 4th year!)
  Reply With Quote
Old 12th March 2002, 05:42 AM   #3
BrianGT is offline BrianGT  United States
diyAudio Moderator Emeritus
 
BrianGT's Avatar
 
Join Date: Jan 2002
Location: near Atlanta, GA
Send a message via AIM to BrianGT
If you want a fairly easy project for a sound recorder, interface one of these chips with the fpga:

voice recorder chips

They make it real easy to record sound.

Click the image to open in full size.

In my ece4894, another group created a project with this. It didn't use a FPGA, but it might provide some kind of idea.

project page

--
Brian
gte619j@prism.gatech.edu
  Reply With Quote
Old 12th March 2002, 11:25 AM   #4
diyAudio Member
 
blu_line's Avatar
 
Join Date: Jan 2002
Location: The Netherlands
He gretzteam,

Nice assignment.

I do, professionally, quite a lot with Altera FPGA's.

5000 to 200.000 Gates is quite a lot. The company i work for has a small DSP Core which should be around 100K on an FPGA.

I Proposed it a few more times, but you could start implementing FIR filters with the FPGA's.

grtz

Simon
  Reply With Quote
Old 12th March 2002, 01:51 PM   #5
BrianGT is offline BrianGT  United States
diyAudio Moderator Emeritus
 
BrianGT's Avatar
 
Join Date: Jan 2002
Location: near Atlanta, GA
Send a message via AIM to BrianGT
yeah, I am co-oping this semester, and the company that I am working for does processor design using fpgas. The fpga that they mainly use has the altera apex 20ke chip with 600,000 gates. It works great.

I personally just picked up the altera up1 board with the flex 10k20 chip with 20,000 gates on it, and it has worked for the small projects that I needed to do. It only cost $90 from altera if you were a student (might be a georgia tech discount in there). They also now have a up1x board, which has 70,000 gates, which costs a little more.

Here is a page with good examples and basic projects.

http://users.ece.gatech.edu/~hamblen/ALTERA/altera.htm

The vga code there works great, and I have used it for some projects.

I checked the order form, and they are charging $149 for the up1 and $199 for the up1x. Here is the order form:

Altera order form (pdf)

--
Brian
gte619j@prism.gatech.edu
  Reply With Quote
Old 14th March 2002, 04:57 AM   #6
diyAudio Member
 
Join Date: Jan 2002
Location: boston
Thanks for your inputs everyone!
A lot of people proposed a FFT spectrum analyser. I just don't fully understand what could be done with an FPGA in that case...what could the final output product do and how would it compare to commercial one?
I'd like to do something usefull...or something that I could reuse as part of another project later on.

Thanks a lot
David
  Reply With Quote
Old 14th March 2002, 05:08 AM   #7
Won is offline Won
diyAudio Member
 
Join Date: Nov 2001
Location: Cambridge, Mass
You can make a PCM -> PDM/PWM convertor. It can be used as the front-end of a digital amp. With all those extra gates, I bet you could do some oversampling as well. 64x oversampling of CD could give you a DSD signal, same as they use in SACD.

-Won
  Reply With Quote
Old 14th March 2002, 05:34 AM   #8
diyAudio Member
 
Join Date: Jan 2002
Location: boston
Wow WON I think you just won (no pun intended) the grand prize!
I was thinking about building a digital amplifier for my project lab next year...I could start with the PCM -> PDM/PWM convertor and build the remaining parts next year.
Do you know where I could start looking for information about this? I am really impressed by the TacT Audio Millenium amplifier
http://www.tactaudio.com/Millennium/index.html
They say that their design uses 'revolutionary, exclusive, proprietary PCM-to-PWM EQUIBIT technology. EQUIBIT simplifies the signal path from the digital signal source to the speakers. A unique digital processor circuit controls the power output devices directly using digital pulses. '

Do you think that the fpga would be large/powerfull enough to do the same thing?

Thanks a lot
David
  Reply With Quote
Old 14th March 2002, 03:54 PM   #9
Won is offline Won
diyAudio Member
 
Join Date: Nov 2001
Location: Cambridge, Mass
Yeah, I suppose I knew it was a good idea because I had it in my head for like a year now... Glad that someone's going to try...just promise to post the Verilog code when you're done!

Yeah, I knew about the TacT audio amps. I remember reading that the first versions used several DSPs, but that their new designs were implemented on a single FPGA. This doesn't mean that they implemented several DSPs on that FPGA -- reconfigurable logic has the interesting benefit that the computational granularity (in both time and space) can be adjusted for your problem. Oftentimes, you can achieve a far greater computational density with an FPGA compared to CPUs/DSPs, and I think this case is a perfect example. You can build a deeply pipelined execution unit that narrows from a CDs standard 16 bits (or 20 or whatever...) to the 1 bit output without wasting many LUTs. Think about how inefficiently a DSP (with a minimum word size of 16 or 32 bits) would perform this. You'd probably have enough gates leftover to do random control.

A good link for the signal processing aspect: http://www.cs.tut.fi/~rosti/1-bit/

In short, I think that this is very do-able project, especially if you have help from here. Have fun!

-Won
  Reply With Quote
Old 16th March 2002, 02:34 AM   #10
diyAudio Member
 
Join Date: Jan 2002
Location: boston
Ok I'm into it...but I have very thin knowledge of digital audio principles. I guess the input would be in SPDIF format (from the cd digital output). First, this should be properly received and decoded. Then, I suppose that a lot of work/analysis should be done on the signal to convert it to PWM - which I don't really fully understand...
I'm sure this is do-able but I would need to do some reading...but I don't know where to start.

Do you know any good reliable source of information about all this stuff? books, websites, magazines?

The class starts only in May so I have time to dig this up.

Thanks a lot

David
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FPGA Learning Materials SunRa Digital Source 14 3rd August 2008 10:11 AM
FPGA CPLD Altera Xilinx Audio DIY DAC elec-tron2 Digital Source 16 7th April 2007 04:33 PM
Cs4270 <-> Fpga lm317t Digital Source 3 2nd January 2007 05:19 PM
Dynamic range compression & FPGA marco72 Digital Source 2 24th March 2006 10:55 AM
Project: Surround Sound decoder on an FPGA kevpatts Digital Source 6 9th November 2004 07:17 AM


New To Site? Need Help?

All times are GMT. The time now is 06:32 AM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright 1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2