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.
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.
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