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 ]
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 ***"
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.