Forum Discussion
Altera_Forum
Honored Contributor
13 years agoHi guys
I'm working on an audio synthesizer. I used a "case" using exel (for calculate function). you can use matlab too. vhdl code exemple: case nTHETA is --Table (wave) WHEN 1 => SINE_TMP := 32799 ; WHEN 2 => SINE_TMP := 32832 ; WHEN 3 => SINE_TMP := 32865 ; WHEN 4 => SINE_TMP := 32898 ; ... WHEN 6280 => SINE_TMP := 32662 ; WHEN 6281 => SINE_TMP := 32695 ; WHEN 6282 => SINE_TMP := 32728 ; WHEN 6283 => SINE_TMP := 32760 ; WHEN others => SINE_TMP := 0 ; end case;