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

ISE Simulator (ISim) - ERROR:HDLCompiler:870 - Macro is not defined.

Description

I have a global file added to my project in Project Navigator. I have selected "Include as Global File in Compile List" in the global file's source properties. I can synthesize this design successfully. However, when I attempt to run a simulation in ISim, I get the following error:

ERROR:HDLCompiler:870 - Macro <memory_width> is not defined.
"memory_width" is defined in the global file; however, it appears ISim is not compiling that module.

How can I resolve this issue?

Solution

This is a known issue. ISim currently does not read the status of the "Include Global File in Compile List". As such, this module is not compiled by the ISim compiler.

To work around this issue, include the global file when compiling each of the sources. e.g.

verilog work global.v top.v
verilog work global.v uut.v
verilog work global.v submodule_A.v

where global.v defines the macro definitions and top.v, uut.v and submodule_A.v make sure of the macros defined in global.v

Review the header of the ISim compiler (fuse) log file to learn how to run the compilation manually from a command window or terminal console.

This issue has been resolved in ISE Design Suite 12, available for download athttp://www.xilinx.com/csi/dlc-tab-12_1.htm

Linked Answer Records

Associated Answer Records

Answer Number Answer Title Version Found Version Resolved
33381 ISE Design Suite 11 - ISE Simulator (ISim) Known Issues N/A N/A
AR# 33425
Date Created 09/08/2009
Last Updated 05/19/2012
Status Active
Type Known Issues