Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Sin table and verilog

  1. Jan 22, 2006 #1
    How do I use two 8-bit sine table to make one 16-bit sine table?

    Here is my 8-bit sine table in verilog

    char sintable[256]
    for(int i=0;i<256;i++)

    I know I have to somehow use: sin(theta+ delta*theta)

    theta would be the first 8-bit and delta*theta would be the last 8 bit. Combine and u get 16-bit.
  2. jcsd
  3. Jan 23, 2006 #2
    also, how do you convert a sine table to a cosine table? I want to instaniate a sine table module and then somehow convert it into a cosine.
  4. Jan 23, 2006 #3


    User Avatar

    Staff: Mentor

    What are you trying to do? You can't make a 16-bit resolution something out of two 8-bit somethings. Two 8-bit somethings makes a 9-bit something.
  5. Jan 23, 2006 #4


    User Avatar
    Science Advisor
    Homework Helper

    Well, in radians:
    So switching between the two isn't that hard.
    Of course, you'll have to adjust that to compensate for how many tics you'll be using per quarter arc.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Threads - table verilog Date
Full Adder Truth Table Nov 22, 2015
Verilog Display module Apr 21, 2014
Canonical expression and truth table Jun 2, 2013
Truth table to boolean expression Apr 20, 2013
Variable amplitude for shaker table Apr 17, 2013