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!

cancel
Showing results for 
Search instead for 
Did you mean: 
Newbie avinres
Newbie
1,878 Views
Registered: ‎04-09-2017

ERROR: [SIM 211-100] CSim failed with errors.

I am trying to implement a histogram equalization, I wrote the code, given in the attachment. The code synthesizes but when I do simulation, it fails with following error. I am not getting what is wrong with my code. Please help.


Starting C simulation ...
/cad/xilinx/Vivado_HLS/2016.4/bin/vivado_hls /home/sanjay-t1/Desktop/Avinash/test/solution1/csim.tcl
INFO: [HLS 200-10] Running '/cad/xilinx/Vivado_HLS/2016.4/bin/unwrapped/lnx64.o/vivado_hls'
INFO: [HLS 200-10] For user 'sanjay-t1' on host 'localhost' (Linux_x86_64 version 2.6.32-696.3.1.el6.x86_64) on Thu Jun 22 17:40:49 IST 2017
INFO: [HLS 200-10] On os "CentOS release 6.9 (Final)"
INFO: [HLS 200-10] In directory '/home/sanjay-t1/Desktop/Avinash'
INFO: [HLS 200-10] Opening project '/home/sanjay-t1/Desktop/Avinash/test'.
INFO: [HLS 200-10] Opening solution '/home/sanjay-t1/Desktop/Avinash/test/solution1'.
INFO: [SYN 201-201] Setting up clock 'default' with a period of 10ns.
INFO: [HLS 200-10] Setting target device to 'xc7z020clg484-1'
INFO: [SIM 211-2] *************** CSIM start ***************
INFO: [SIM 211-4] CSIM will launch GCC as the compiler.
   Compiling ../../../ap_bmp.cpp in debug mode
   Compiling ../../../../../../equalizehistogram/eq_histo_test.cpp in debug mode
   Compiling ../../../../../../equalizehistogram/eq_histo.cpp in debug mode
   Generating csim.exe
In file included from ../../../../../../equalizehistogram/eq_histogram.h:6:0,
                 from ../../../../../../equalizehistogram/eq_histo_test.cpp:50:
../../../../../../equalizehistogram/ap_axi_sdata.h:48:0: warning: "AP_INT_MAX_W" redefined [enabled by default]
/cad/xilinx/Vivado_HLS/2016.4/include/etc/ap_private.h:92:0: note: this is the location of the previous definition
In file included from ../../../../../../equalizehistogram/ap_interfaces.h:50:0,
                 from ../../../../../../equalizehistogram/eq_histogram.h:7,
                 from ../../../../../../equalizehistogram/eq_histo_test.cpp:50:
/cad/xilinx/Vivado_HLS/2016.4/include/ap_stream.h:70:2: warning: #warning AP_STREAM macros are deprecated. Please use hls::stream<> from "hls_stream.h" instead. [-Wcpp]
In file included from ../../../../../../equalizehistogram/eq_histogram.h:7:0,
                 from ../../../../../../equalizehistogram/eq_histo_test.cpp:50:
../../../../../../equalizehistogram/ap_interfaces.h:64:0: warning: "PRAGMA" redefined [enabled by default]
/cad/xilinx/Vivado_HLS/2016.4/include/hls/utils/x_hls_defines.h:49:0: note: this is the location of the previous definition
In file included from ../../../../../../equalizehistogram/eq_histogram.h:6:0,
                 from ../../../../../../equalizehistogram/eq_histo.cpp:1:
../../../../../../equalizehistogram/ap_axi_sdata.h:48:0: warning: "AP_INT_MAX_W" redefined [enabled by default]
/cad/xilinx/Vivado_HLS/2016.4/include/etc/ap_private.h:92:0: note: this is the location of the previous definition
In file included from ../../../../../../equalizehistogram/ap_interfaces.h:50:0,
                 from ../../../../../../equalizehistogram/eq_histogram.h:7,
                 from ../../../../../../equalizehistogram/eq_histo.cpp:1:
/cad/xilinx/Vivado_HLS/2016.4/include/ap_stream.h:70:2: warning: #warning AP_STREAM macros are deprecated. Please use hls::stream<> from "hls_stream.h" instead. [-Wcpp]
In file included from ../../../../../../equalizehistogram/eq_histogram.h:7:0,
                 from ../../../../../../equalizehistogram/eq_histo.cpp:1:
../../../../../../equalizehistogram/ap_interfaces.h:64:0: warning: "PRAGMA" redefined [enabled by default]
/cad/xilinx/Vivado_HLS/2016.4/include/hls/utils/x_hls_defines.h:49:0: note: this is the location of the previous definition
@E Simulation failed.
ERROR: [SIM 211-100] CSim failed with errors.
INFO: [SIM 211-3] *************** CSIM finish ***************
4
    while executing
"source /home/sanjay-t1/Desktop/Avinash/test/solution1/csim.tcl"
    invoked from within
"hls::main /home/sanjay-t1/Desktop/Avinash/test/solution1/csim.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel 1 hls::main {*}$args"
    (procedure "hls_proc" line 5)
    invoked from within
"hls_proc $argv"
Finished C simulation.

Tags (1)
0 Kudos
1 Reply
Scholar xilinxacct
Scholar
97 Views
Registered: ‎10-23-2018

Re: ERROR: [SIM 211-100] CSim failed with errors.

@avinres

Here is a stab at the issue... be sure to re-define AP_INT_MAX_W before including the arbitrary precision header file.

Hope that helps

If so, please mark as solution accepted to close the issue... Kudos also welcomed. :-)

0 Kudos