Forum Discussion

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

Creating 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Cheers for the reply. I managed to get it done using a lookup table. Worked a treat