Forum Discussion

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

How to generate values for my sine lut

I want to generate a sine wave with lut approach in verilog using Spartan6 FPGA. How do I generate those values? what should be the difference between the angles and how to determine the number of table entries ? Thanks in advance.

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I'd use Microsoft Excel or similar to generate your sin values. The more entries in the table (and the wider the entries) the more accurate your sin wave will be.

    You might also look at this post: http://www.alteraforum.com/forum/showthread.php?t=31850

    Cheers,

    Alex

    PS. A word of warning - I suspect Sp****n6 is a bit of a swear word on an Altera forum...:oops: