UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 36346

DDS Compiler v4.0 - No output waveform from the DDS caused by NAN values

Description

The DDS Compiler v4.0 will not output the correct waveform if NAN (Matlab 'Not A Number') values occur on the Data input. In this situation the DDS output will be a constant value rather than the expected Sin/Cos waveform.

Solution

NAN values will sometimes be present in SysGen/SimuLink simulations usually during initialization. An example of when NAN values would be seen is if the Black Box is used and the underlying HDL code has an undefined output state. The undefined output will translate to NAN values in Simulink.

In order to resolve this problem, make sure that the signal connected to the Data input of the DDS is always defined. Either correct the source of the NAN so that NAN values do not occur, or if this is not possible, an enabled register can be used to mask out the NAN values. Many SysGen blocks have valid signals that can be used to drive the enable of a register to conveniently work-around this issue.

AR# 36346
Date Created 06/23/2010
Last Updated 12/03/2013
Status Active
Type General Article
IP
  • DDS Compiler