EmbDev.net

Forum: FPGA, VHDL & Verilog I want to make sound with DE2 and Verilog HELP ME


Author: Aiko Yuri (aiko89)
Posted on:

Rate this post
0 useful
not useful
Hi guys !

I have a school project with DE2 board & Verilog code, and we're going 
to make something like a sound generating machine. It is kind of JUKE 
BOX.

First of all, I want to make single tone sound, like beep sound.


For Example, when I push KEY 1 , DE2 board sounds (like beep!)

To make this function, how can I get some information?


Any body Help me Plz !

Author: Christoph Kessler (db1uq) (christoph_kessler)
Posted on:

Rate this post
0 useful
not useful
For Altera FPGA take a look at the alteraforum:
http://www.alteraforum.com/forum/
you can search for example for "DE2 audio codec"

I have the DE1 board. There is a book about these boards:
ISBN 9780387726700
take a look inside at google books:
http://books.google.com/books?id=gTMkiCUz11AC&dq=R...

With the DE1 board comes an example project "SD Card Music Player"
"The design uses the Nios II processor to read the music data stored in 
the SD Card and uses the Wolfson WM8731 audio CODEC to play the music."
Maybe you can use that code for the audio codec.

Author: The chetnik (Guest)
Posted on:

Rate this post
0 useful
not useful
Here is a page using the DEII to make MIDI music and sound synthesis:

http://www.96khz.org/cyclone3platform.html

The DEII is best for this because it has 16 switches to directly set 
notes in a sequencer.

Author: Michel (Guest)
Posted on:

Rate this post
0 useful
not useful
U R talking about the DE2-115 with a Cyclone chip?

> make something like a sound generating machine.
> It is kind of JUKE BOX.
> First of all, I want to make single tone sound, like beep sound.
Should be a long way to create a juke box by starting with a simple beep 
sound. Are you familiar with sound processing already?

At our university, with have initiated a number of interesting projects, 
dealing with sound synthesis with FPGAs. You might get inspired here:

http://ems.eit.uni-kl.de/index.php?id=113&tx_unikl...

Another project ist described here:
http://www.hs-augsburg.de/~tspanrun/fpgasynth_ausa...

What I like most is this here:

Youtube-Video "Sexy Digital synthesizer implemented on a FPGA spartan 3E"

A professional description can be found here:

http://ieeexplore.ieee.org/xpl/login.jsp?tp=&arnum...

Author: Manfred (Guest)
Posted on:

Rate this post
0 useful
not useful
>DE2 board & Verilog code

This is an european forum and here, most of the guys work with VHDL. I 
personally never used Verilog so I cannot help. But I have managed to 
create a little sound engine myself, it can play chords from a small 
table instatiated in a BRAM.

What you basically need:

- a BRAM with the key notes
- a transformation table with the frequencies
- a state machine which can collect data from those tables and trigger
- a sound module which switches on and off the notes

The sound engine can be a little pulse width modulation machine, 
basically a counter which runs up to the programed frequency

>At our university, with have initiated a number
Sounds nice, what is the purpose of this? Do you do research on sound 
systems there? What is the FPGA used for? From the website I read, you 
are having a complete MIDI synthesizer built in VHDL by your students?

Author: Mike (Guest)
Posted on:

Rate this post
0 useful
not useful
Mr Aiko Yuri does not seem to participate anymore - as usual, when 
people ask for help in forums: Most of them never return.

Coming to the question: I have an educational Altera DE-115 and also 
mangaged to get some noise out of it. Altera offers a complete music 
station as demo for the board, moreover there are a number of synth 
projects in the Internet, like WWW.FPGA-SYNTH.
 - should be a good starting point.

I played with tha NIOS type musc engine but found it complicating and 
area intensive.

My question would be who likes to share some code for easy music with 
DE?

Anybody managed to play some mp3s through it?

Author: fpga musician (Guest)
Posted on:

Rate this post
0 useful
not useful
you may want to have a look at the altera forum. there are some topics 
how to make sound with this board

> I played with tha NIOS type musc engine but found it complicating
> and area intensive.
The NIOS, or it's program?

Author: Mike (Guest)
Posted on:

Rate this post
0 useful
not useful
> I played with tha NIOS type musc engine but found it complicating
> and area intensive.
The NIOS, or it's program?

both, the NIOS does not require much space, but is not a dedicated Music 
engine, so the code is complex

also it should be a prob to achive enough voices by instatiating just 
one NIOS, to come to a serious Music application

Author: signalprocessing engineer (Guest)
Posted on:

Rate this post
0 useful
not useful
Can somebody of you please give an example for the size of a NIOS system 
for signal processing applications like these? It does not need to be 
music, but this was fine, though. I know about the NIOS itself beeing 
quiet tiny, but there is more to a signal conditioning system than only 
the NIOS core. I expect that all finally being much bigger after all, 
including IO, user interface and processing stages.

For audio, I guess one can store total wave forms in the external RAM 
and use them as samplers. The NIOS should be quick enough, right? Did 
anybody do this already?

I require something like a wave playback tool like that, only a bit 
higher in range, maybe up to 200kHz frequency. Should the NIOS be able 
to do this on a common slow FPGA?

Next to wave generation, I also need some filtering to modify the 
waveform and perform a soft fade in and fade out. (the waves control a 
sensitive mechanical system)

Author: Wayne Gretzky (Guest)
Posted on:

Rate this post
0 useful
not useful
From my knowledge a NIOS circled up to 1E6 times on a Cyclone System 
with 50MHz, using non real time OS. Depending on the length of your 
operation loop, some 10kHz-100kHz could be operated regularly. Why do 
you need a NIOS to press the data? Can't it be done without?

Author: hobby sound engineer (Guest)
Posted on:

Rate this post
0 useful
not useful
to my mind NIOS is not a good idea to produce sound. if one uses a micro 
controller, than a real one should be easier to program and to handle

soft cores in fgpas are boring and slow anyway. if they have to deal 
with high speed data processing, they will become inefficient quickly

fpgas can perform certain tasks very nice if used the basic way, but for 
this target, i recommend a dsp system for signal processing

Author: world's best FPGA-pongo (Guest)
Posted on:

Rate this post
0 useful
not useful
NIOS is not necessary at all. Sound can be produced by simple PWM output 
controlled by single values. I would first instantiate a CPU if MUSIC 
MIDI processing is required to controll sound from outside.

Author: FPGA (Guest)
Posted on:

Rate this post
0 useful
not useful
Cxu iu el vi bonvolos doni ekzemplon por la grandeco de NIOS sistemo por 
signali prilaborado aplikoj kiel cxi tiuj? Ĝi ne bezonas esti muziko, 
sed ĉi tiu estis bona, tamen. Mi scias pri la NIOS mem beeing kvieta 
eta, sed estas pli por signali kondiĉado sistemo ol nur la NIOS kerno. 
Mi atendus ke ĉiuj fine estante multe pli granda post ĉiuj, inkludante 
IO, uzula interfaco kaj prilaborado etapoj.Por sondosieroj, mi supozas 
oni povas stoki tutan ondo formoj en la ekstera memoro RAM kaj uzi ilin 
kiel samplers. La NIOS devus rapidu sufiĉas, ĉu ne? Did iu faru tion 
jam? Apud skuu generacion, mi ankaŭ bezonas iujn filtrilojn por modifi 
la ondformo kaj realigi mola fade en kaj fade out. (La ondoj kontroli 
sentema mekanika sistemo)

Author: the expert (Guest)
Posted on:

Rate this post
0 useful
not useful
what language is this?
I consider wrting in english to get an answer

Author: Rateonkel (Guest)
Posted on:

Rate this post
0 useful
not useful
Is this Esperanto?

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.