Forum Discussion
Altera_Forum
Honored Contributor
13 years agothe quarter sine LUT code
Dear all I need to get the quarter sine LUT in DDFS (Herewith the MATLAB code that I used) i=[0:i-1]; x= (i-1)*sin ((pi/2)*i/31));
Altera_Forum
Honored Contributor
13 years agoAccording to this equation :
i=[0:i-1]; x= (i-1)*sin ((pi/2)*i/i-1)+ 1/2*(i-1)); The result that I got is not the sine wave shape (the LUT values inverted in minus when it pass the half of (pi/2) range ). herewith the attached sine wave file