+ Post New Thread
Results 1 to 5 of 5
  1. #1
    Junior Member level 3
    Points: 319, Level: 3

    Join Date
    Mar 2014
    Posts
    30
    Helped
    0 / 0
    Points
    319
    Level
    3

    Sine Wave Generation on an FPGA

    I would like to generate a sine wave on my fpga whose output would then be observed through a pmod dac with 2 12-bit d/a outputs. I tried using the dds available in xilinx but whenever i test the behavioural simulation, I end up with undefined signals.

    Can someone provide me with a step by step guide on how to achieve this ? I've read a lot of tutorials but couldn't help me much.

    •   AltAdvertisment

        
       

  2. #2
    Advanced Member level 5
    Points: 21,474, Level: 35
    barry's Avatar
    Join Date
    Mar 2005
    Location
    California, USA
    Posts
    4,123
    Helped
    910 / 910
    Points
    21,474
    Level
    35

    Re: Sine Wave Generation on an FPGA

    Without more information about your project it's impossible to tell you what's wrong. If you are getting error messages about 'undefined signals' you should first look at those signals and see what's wrong. Maybe you've got a bad port mapping, there's no way to tell.


    1 members found this post helpful.

    •   AltAdvertisment

        
       

  3. #3
    Junior Member level 3
    Points: 319, Level: 3

    Join Date
    Mar 2014
    Posts
    30
    Helped
    0 / 0
    Points
    319
    Level
    3

    Re: Sine Wave Generation on an FPGA

    is it possible to provide a guide on how to generate a simple sine wave ? using a system clock of 100Mhz



    •   AltAdvertisment

        
       

  4. #4
    Advanced Member level 5
    Points: 21,474, Level: 35
    barry's Avatar
    Join Date
    Mar 2005
    Location
    California, USA
    Posts
    4,123
    Helped
    910 / 910
    Points
    21,474
    Level
    35

    Re: Sine Wave Generation on an FPGA

    The DDS is pretty simple. If you want simpler, just use a lookup table.



  5. #5
    Junior Member level 2
    Points: 407, Level: 4

    Join Date
    Jan 2014
    Posts
    20
    Helped
    4 / 4
    Points
    407
    Level
    4

    Re: Sine Wave Generation on an FPGA

    You could use a lookup table with just a quarter of the complete sine, or you could use linear interpolation for the same quarter. for the interpolation, you could save just the "m" and "b" parameters of the "y=mx+b" equation



--[[ ]]--