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

AutoESL - Simulation fails with "undefined reference to ''"

Description

AutoESL errors out during simulation with the following message indicating top level function is not defined:

"Starting RTL Co-simulation ...
@I [LIC-101] Checked in features [ AUTOESL_FLOW AUTOESL_OPT AUTOESL_SC AUTOESL_XILINX ]
Generating autosim.sc.exe
obj/ScanLineGen_Test.c_pre.c.tb.o:ScanLineGen_Test.c_pre.c.tb.c:(.text+0x805): undefined reference to
collect2: ld returned 1 exit status
make: *** [autosim.sc.exe] Error 1
@E [SIM-2] Error(s) found in compilation.
@E [SIM-1] *** AutoSim finished: FAIL ***"

Solution

This error occurs when the test bench code calls a function other than the top-level function defined in the "source" files.

To work around this issue, include the source file as both "source" and "test bench" in the project.

AR# 44817
Date Created 01/17/2012
Last Updated 06/01/2012
Status Active
Type Error Message
Tools
  • AutoESL - 2011.3
  • AutoESL - 2011.4
  • AutoESL - 2011.4.2
  • AutoESL - 2012.1