Forum Discussion
Altera_Forum
Honored Contributor
14 years agoCreating sound for a game
I want to be able to create 4 sounds at different frequencies/notes in VHDL. The DAC is all setup with 16bits but i'm just stuck with the wave generation. Any wave will do, i just need a few audible tones.
I have experience of using the audio CODEC on the DE2. That bit is ok.2 Replies
- Altera_Forum
Honored Contributor
you can generate waves with the NCO megafunction in dsp. Or if you are ok with NES-era sound you can easily make square and triangle waves in logic in different frequencies.
- Altera_Forum
Honored Contributor
Cheers for the reply. I managed to get it done using a lookup table. Worked a treat