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# 19162

LogiCORE Direct Digital Synthesis (DDS) v4.1 - Why do I receive a fatal error when running CompXLib to compile the DDS for use with Scirocco or VCS-MX?

Description

Why do I receive fatal errors similar to the following when running CompXLib to compile the DDS for use with Scirocco or VCS-MX?

"Error: analysis Parsing vhdl-0

[/build/xfndry1/G.28/rtf/vhdl/src/XilinxCoreLib/mult_gen_v6_0_non_seq.vhd:519]

Internal Error - please report (unknown arg type)

constReal := math_2_pi/2.0**phaseWidth;"

^

"Error: analysis Parsing vhdl-483

[/build/xfndry1/G.28/rtf/vhdl/src/XilinxCoreLib/c_dds_v4_1_pack.vhd:60]

MATH_2_PI is not declared

"/build/xfndry1/G.28/rtf/vhdl/src/XilinxCoreLib/c_dds_v4_1_pack.vhd": "

Solution

To solve this issue, you must define the math_2_pi constant.

The current work-around is to modify the "c_dds_v4_1_pack.vhd" located at:

%Xilinx%/vhdl/src/XilinxCoreLib directory.

Add the following to line 37 of the "c_dds_v4_1_pack.vhd" file:

constant MATH_2_PI : real := 6.28318_53071_79586_47692 ;

This line is between the following:

constant ONE_CYCLE : integer := 1;

constant ZERO_CYCLE : integer := 0;

-- added this line to fix problem with math_real packages

constant MATH_2_PI : real := 6.28318_53071_79586_47692 ;

end c_dds_v4_1_pack;

Save the file, and run the compilation again.

AR# 19162
Date Created 09/03/2007
Last Updated 12/15/2012
Status Active
Type General Article