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

5.2i IP2 COREGen XilinxCoreLib Library/ModelSim - Butterfly Entity: Errors occur during library refresh

Description

Keywords: ModelSim, MTI, Butterfly, XilinxCoreLib, COREGen, refresh, error, virtexii.dat, unknown, identifier

Urgency: Standard

General Description:
When I try to refresh the XilinxCoreLib library in ModelSim, the following errors occur:
"# -- Loading entity butterfly
# ** Error: C:\temp\temp_f28_xilinxcorelib\xilinxcorelib/butterfly/virtexii.dat(93): Unknown identifier: width
# ** Error: C:\temp\temp_f28_xilinxcorelib\xilinxcorelib/butterfly/virtexii.dat(93): Unknown identifier: width
# ** Error: C:\temp\temp_f28_xilinxcorelib\xilinxcorelib/butterfly/virtexii.dat(93): Type error in range expression
# ** Error: C:\temp\temp_f28_xilinxcorelib\xilinxcorelib/butterfly/virtexii.dat(96): Unknown identifier: width
# ** Error: C:\temp\temp_f28_xilinxcorelib\xilinxcorelib/butterfly/virtexii.dat(96): Unknown identifier: width
# ** Error: C:\temp\temp_f28_xilinxcorelib\xilinxcorelib/butterfly/virtexii.dat(96): Bad expression."

These errors occur because there are two different entities in the XilinxCoreLib library that are named "butterfly". One of these entities is used in xfft1024_v1_0 and the other is used in xfft1024_v1_1. Prior to the 5.2i IP2 update, both the xfft1024_v1_0 and the xfft1024_v1_1 models are compiled according to the "vhdl_analyze_order" file. This causes a conflict during the library refresh because the butterfly entity that is compiled second compiles over the butterfly entity that is compiled first.

Solution

1

5.2i IP2 Update or Later

In the 5.2i IP2 update, the analyze order was fixed so that only the xfft1024_v1_1 is compiled. However, if you have already compiled an older version of the XilinxCoreLib models, xfft1024_v1_0 is still compiled in the XilinxCoreLib library.

If you do not plan to use any of the Fast FFT cores, you can perform the following:

1. Delete the butterfly entity from the XilinxCoreLib library:

vdel -lib xilinxcorelib butterfly

2. Refresh the library:

vcom -work xilinxcorelib -force_refresh

NOTE: You must use force_refresh to tell ModelSim to ignore that dependencies have changed in the FFT models.

After completing these steps, these errors should no longer occur, but you will not be able to use the Fast FFT models.

If you do plan to use the Fast FFT cores, you can perform the following:

1. Delete the XilinxCoreLib library:

vdel -lib xilinxcorelib -all

2. Recompile the XilinxCoreLib library using COMPXLIB:

compxlib -s mti_se -f all:c -l vhdl -o <lib_dir>

NOTE: For more information about COMPXLIB, please see (Xilinx Answer 15338).

Since the compilation of xfft1024_v1_0 was removed from the vhdl_analyze_order in the 5.2i IP2 update, this problem should no longer occur.

2

Software Versions Prior to the 5.2i IP2 Update

In the 5.2i IP2 update, the analyze order was fixed so that only the xfft1024_v1_1 is compiled. However, in prior releases both versions were compiled.

If you do not plan to use any of the Fast FFT cores, you can perform the following:

1. Delete the butterfly entity from the XilinxCoreLib library:

vdel -lib xilinxcorelib butterfly

2. Refresh the library:

vcom -work xilinxcorelib -force_refresh

NOTE: You must use force_refresh to tell ModelSim to ignore that dependencies have changed in the FFT models.

After completing these steps, these errors should no longer occur, but you will not be able to use the Fast FFT models.

If you do plan to use the Fast FFT cores, you can perform the following:

1. Delete the XilinxCoreLib library:

vdel -lib xilinxcorelib -all

2. Change the vhdl_analyze_order in the "$XILINX\vhdl\src\XilinxCoreLib" directory. Comment out the following two lines:

xfft1024_v1_0.vhd
xfft1024_v1_0_comp.vhd

3. Recompile the XilinxCoreLib library using COMPXLIB:

compxlib -s mti_se -f all:c -l vhdl -o <lib_dir>

NOTE: For more information about COMPXLIB, please see (Xilinx Answer 15338).

Since the compilation of xfft1024_v1_0 was removed from the vhdl_analyze_order, this problem should no longer occur.
AR# 17740
Date Created 09/03/2007
Last Updated 11/18/2008
Status Archive
Type General Article