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: 
Visitor mgoubert
Visitor
9,442 Views
Registered: ‎11-03-2012

Vivado HSL C simulation error

Hi,

 

I'm working in ubuntu 12.04 lts,

and i have the following problem: 

Starting C Simulation ...
/opt/Xilinx2/Vivado_HLS/2012.3/Linux_x86_64/bin/vivado_hls_bin -flow csim -flow_args " -setup"
@I [LIC-101] Checked out feature [HLS]
@I [HLS-10] Running '/opt/Xilinx2/Vivado_HLS/2012.3/Linux_x86_64/bin/vivado_hls_bin'
@I [HLS-10] On platform 'Linux_x86_64 version 3.2.0-32-generic'
@I [HLS-10] Vivado HLS Tcl shell started on Sat Nov 03 16:55:35 CET 2012 for user 'root' at host 'matthias-MacBookPro'
@I [HLS-10] Current directory: /home/matthias/Documents/zynq/labsolution/lab1/matrixmul.prj/solution1
   Generating csim.exe
/usr/bin/ld: /opt/Xilinx2/Vivado_HLS/2012.3/Linux_x86_64/bin/libstdc++.so.6: version `GLIBCXX_3.4.10' not found (required by /usr/bin/ld)
/usr/bin/ld: /opt/Xilinx2/Vivado_HLS/2012.3/Linux_x86_64/bin/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/bin/ld)
/usr/bin/ld: /opt/Xilinx2/Vivado_HLS/2012.3/Linux_x86_64/bin/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /usr/bin/ld)
collect2: ld returned 1 exit status
make: *** [csim.exe] Error 1
@E [SIM-33] Error(s) found in compilation.
@E [SIM-1] CSim file generation failed with errors.
@I [LIC-101] Checked in feature [HLS]

 I tried to link it, replace it. But then the program won't start. I had some problems with header files, but those i fixed by installing them. This however i can't get fixed. Can someone help me? Or does someone have te same problem?

 

Thnx

 

Thx 

 

0 Kudos
9 Replies
Highlighted
Visitor mgoubert
Visitor
9,431 Views
Registered: ‎11-03-2012

Re: Vivado HSL C simulation error

Found it myself:

 

ln -sf /lib/x86_64-linux-gnu/libsrdc++.so.6 /opt/Xilinx2/Vivado_HLS/2012.3/Linux_x86_64/bin/libsrdc++.so.6

ln -sf /lib/x86_64-linux-gnu/libgcc_s.so.1 /opt/Xilinx2/Vivado_HLS/2012.3/Linux_x86_64/bin/libgcc_s.so.1

sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64

 

Then alle the problems where gone!

Ty

0 Kudos
Newbie nattha.s
Newbie
9,279 Views
Registered: ‎01-08-2013

Re: Vivado HLS C simulation error..

Please help me. Silimlar problem

 

Invalid attribute value ' –DHW_COSIM'
    while executing
"add_files -tb matrixmul1_test.cpp -cflags "–DHW_COSIM""
    (file "D:/Xilinx_project/HLS/labs/lab1/matrixmul.prj/solution1/script.tcl" line 9)
@I [LIC-101] Checked in feature [HLS]

0 Kudos
Explorer
Explorer
9,267 Views
Registered: ‎09-06-2012

Re: Vivado HLS C simulation error..

hi 

 

could you please attached the script.tcl file.

so that i can check that tcl script.

 

 

regards,

ankur

0 Kudos
Visitor enghanaa
Visitor
7,683 Views
Registered: ‎06-28-2014

Re: Vivado HLS C simulation error..

Hi 

I face similar problem under ubuntu 12.04

@E [SIM-1] 'csim_design' failed: compilation error(s).
4
while executing
"csim_design -quiet"
(file "... workspace/sobel/sobel_prj/solution1/csim.tcl" line 8)
@I [LIC-101] Checked in feature [HLS]


Please tell me how you get those sympolic links as i didnt find them 

 

Thank you 

Hanaa

0 Kudos
Moderator
Moderator
7,664 Views
Registered: ‎04-17-2011

Re: Vivado HLS C simulation error..

Please check the supported OS list for Xilinx tools. If you are using any OS which is not listed like Ubuntu etc then we cannot guarantee the tool performance.
Regards,
Debraj
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos
Visitor metzli_12
Visitor
4,827 Views
Registered: ‎03-16-2016

Re: Vivado HLS C simulation error..

I have a similar problem when I run the example XAPP1231 - Partial Reconfiguration of a Hardware Accelerator with Vivado Design Suite, I am using ubuntu 14.04 (which is supported by xilinx tools) and vivado_hls 2015.3, any  solution?

 

0 Kudos
Adventurer
Adventurer
4,818 Views
Registered: ‎09-25-2015

Re: Vivado HLS C simulation error..

Do you have tried ?

 

add_files -tb matrixmul1_test.cpp -cflags "–DHW_COSIM"

This just works on my side.

 

Ahh, just see the following after editing the CFLAGS:

The first time I get an error (seems that it doesnt clear all content even if I say "Clean build")

Starting C simulation ...
C:/Xilinx/Vivado_HLS/2015.4/bin/vivado_hls.bat D:/Projects/AFA/git/src/fpgaPlayground/HLS/AFAalpha/AFAHls2015.4/AFAProcessing_64Bit_250MHz/csim.tcl
@I [HLS-10] Running 'C:/Xilinx/Vivado_HLS/2015.4/bin/unwrapped/win64.o/vivado_hls.exe'
            for user 'uidr7560' on host 'bhd4wf4g' (Windows NT_amd64 version 6.1) on Thu Mar 17 14:49:12 +0100 2016
            in directory 'D:/Projects/AFA/git/src/fpgaPlayground/HLS/AFAalpha'
@I [HLS-10] Opening project 'D:/Projects/AFA/git/src/fpgaPlayground/HLS/AFAalpha/AFAHls2015.4'.
@I [HLS-10] Opening solution 'D:/Projects/AFA/git/src/fpgaPlayground/HLS/AFAalpha/AFAHls2015.4/AFAProcessing_64Bit_250MHz'.
@I [SYN-201] Setting up clock 'default' with a period of 2.5ns.
@I [HLS-10] Setting target device to 'xc7vx690tffg1761-2'
@E [SIM-1] CSim failed with errors.
4
    while executing
"source D:/Projects/AFA/git/src/fpgaPlayground/HLS/AFAalpha/AFAHls2015.4/AFAProcessing_64Bit_250MHz/csim.tcl"
    invoked from within
"hls::main D:/Projects/AFA/git/src/fpgaPlayground/HLS/AFAalpha/AFAHls2015.4/AFAProcessing_64Bit_250MHz/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"

The second time - without any modification goes through:

@I [HLS-10] Running 'C:/Xilinx/Vivado_HLS/2015.4/bin/unwrapped/win64.o/vivado_hls.exe'
            for user 'uidr7560' on host 'bhd4wf4g' (Windows NT_amd64 version 6.1) on Thu Mar 17 14:51:13 +0100 2016
            in directory 'D:/Projects/AFA/git/src/fpgaPlayground/HLS/AFAalpha'
@I [HLS-10] Opening project 'D:/Projects/AFA/git/src/fpgaPlayground/HLS/AFAalpha/AFAHls2015.4'.
@I [HLS-10] Opening solution 'D:/Projects/AFA/git/src/fpgaPlayground/HLS/AFAalpha/AFAHls2015.4/AFAProcessing_64Bit_250MHz'.
@I [SYN-201] Setting up clock 'default' with a period of 2.5ns.
@I [HLS-10] Setting target device to 'xc7vx690tffg1761-2'
   Compiling(apcc) ../../../../src/main.c in debug mode
@I [HLS-10] Running 'c:/Xilinx/Vivado_HLS/2015.4/bin/unwrapped/win64.o/apcc.exe'
            for user 'uidr7560' on host 'bhd4wf4g' (Windows NT_amd64 version 6.1) on Thu Mar 17 14:51:16 +0100 2016
            in directory 'D:/Projects/AFA/git/src/fpgaPlayground/HLS/AFAalpha/AFAHls2015.4/AFAProcessing_64Bit_250MHz/csim/build'
@I [APCC-3] Tmp directory is D:/tmp/apcc_db_uidr7560/14923969998321
@I [APCC-1] APCC is done.
   Compiling(apcc) ../../../../src/AFASpectra.c in debug mode
@I [HLS-10] Running 'c:/Xilinx/Vivado_HLS/2015.4/bin/unwrapped/win64.o/apcc.exe'
            for user 'uidr7560' on host 'bhd4wf4g' (Windows NT_amd64 version 6.1) on Thu Mar 17 14:51:19 +0100 2016
            in directory 'D:/Projects/AFA/git/src/fpgaPlayground/HLS/AFAalpha/AFAHls2015.4/AFAProcessing_64Bit_250MHz/csim/build'
@I [APCC-3] Tmp directory is D:/tmp/apcc_db_uidr7560/85043973066610
@I [APCC-1] APCC is done.
   Compiling(apcc) ../../../../src/AFARandom.c in debug mode
@I [HLS-10] Running 'c:/Xilinx/Vivado_HLS/2015.4/bin/unwrapped/win64.o/apcc.exe'
            for user 'uidr7560' on host 'bhd4wf4g' (Windows NT_amd64 version 6.1) on Thu Mar 17 14:51:22 +0100 2016
            in directory 'D:/Projects/AFA/git/src/fpgaPlayground/HLS/AFAalpha/AFAHls2015.4/AFAProcessing_64Bit_250MHz/csim/build'
@I [APCC-3] Tmp directory is D:/tmp/apcc_db_uidr7560/74123976152723
@I [APCC-1] APCC is done.
   Compiling(apcc) ../../../../src/AFAProcessing.c in debug mode
@I [HLS-10] Running 'c:/Xilinx/Vivado_HLS/2015.4/bin/unwrapped/win64.o/apcc.exe'
            for user 'uidr7560' on host 'bhd4wf4g' (Windows NT_amd64 version 6.1) on Thu Mar 17 14:51:25 +0100 2016
            in directory 'D:/Projects/AFA/git/src/fpgaPlayground/HLS/AFAalpha/AFAHls2015.4/AFAProcessing_64Bit_250MHz/csim/build'
@I [APCC-3] Tmp directory is D:/tmp/apcc_db_uidr7560/43643979096492
@I [APCC-1] APCC is done.
   Compiling(apcc) ../../../../src/AFANetworkSettings.c in debug mode
@I [HLS-10] Running 'c:/Xilinx/Vivado_HLS/2015.4/bin/unwrapped/win64.o/apcc.exe'
            for user 'uidr7560' on host 'bhd4wf4g' (Windows NT_amd64 version 6.1) on Thu Mar 17 14:51:28 +0100 2016
            in directory 'D:/Projects/AFA/git/src/fpgaPlayground/HLS/AFAalpha/AFAHls2015.4/AFAProcessing_64Bit_250MHz/csim/build'
@I [APCC-3] Tmp directory is D:/tmp/apcc_db_uidr7560/91923982405870
@I [APCC-1] APCC is done.
   Compiling(apcc) ../../../../src/AFASpectraHW.c in debug mode
@I [HLS-10] Running 'c:/Xilinx/Vivado_HLS/2015.4/bin/unwrapped/win64.o/apcc.exe'
            for user 'uidr7560' on host 'bhd4wf4g' (Windows NT_amd64 version 6.1) on Thu Mar 17 14:51:31 +0100 2016
            in directory 'D:/Projects/AFA/git/src/fpgaPlayground/HLS/AFAalpha/AFAHls2015.4/AFAProcessing_64Bit_250MHz/csim/build'
@I [APCC-3] Tmp directory is D:/tmp/apcc_db_uidr7560/111643985108990
@I [APCC-1] APCC is done.
   Compiling(apcc) ../../../../src/AFARandomHW.c in debug mode
@I [HLS-10] Running 'c:/Xilinx/Vivado_HLS/2015.4/bin/unwrapped/win64.o/apcc.exe'
            for user 'uidr7560' on host 'bhd4wf4g' (Windows NT_amd64 version 6.1) on Thu Mar 17 14:51:34 +0100 2016
            in directory 'D:/Projects/AFA/git/src/fpgaPlayground/HLS/AFAalpha/AFAHls2015.4/AFAProcessing_64Bit_250MHz/csim/build'
@I [APCC-3] Tmp directory is D:/tmp/apcc_db_uidr7560/74363987912230
@I [APCC-1] APCC is done.
   Compiling(apcc) ../../../../src/AFAProcessingHW.c in debug mode
@I [HLS-10] Running 'c:/Xilinx/Vivado_HLS/2015.4/bin/unwrapped/win64.o/apcc.exe'
            for user 'uidr7560' on host 'bhd4wf4g' (Windows NT_amd64 version 6.1) on Thu Mar 17 14:51:37 +0100 2016
            in directory 'D:/Projects/AFA/git/src/fpgaPlayground/HLS/AFAalpha/AFAHls2015.4/AFAProcessing_64Bit_250MHz/csim/build'
@I [APCC-3] Tmp directory is D:/tmp/apcc_db_uidr7560/49323990881265
@I [APCC-1] APCC is done.
   Generating csim.exe

My .tcl script looks like this:

############################################################
## This file is generated automatically by Vivado HLS.
## Please DO NOT edit it.
## Copyright (C) 2015 Xilinx Inc. All rights reserved.
############################################################
open_project AFAHls2015.4
set_top AFAProcess_HW
add_files src/AFATypes.h
add_files src/AFASpectraHW.h
add_files src/AFASpectraHW.c
add_files src/AFARandomHW.h
add_files src/AFARandomHW.c
add_files src/AFAProcessingHW.h
add_files src/AFAProcessingHW.c
add_files src/AFANetworkSettingsHW.h
add_files src/AFADefines.h
add_files -tb src/main.c -cflags "-DHW_COSIM"
add_files -tb src/AFATypes.h
add_files -tb src/AFASpectraCommon.h
add_files -tb src/AFASpectra.h
add_files -tb src/AFASpectra.c
add_files -tb src/AFARandomCommon.h
add_files -tb src/AFARandom.h
add_files -tb src/AFARandom.c
add_files -tb src/AFAProcessingCommon.h
add_files -tb src/AFAProcessing.h
add_files -tb src/AFAProcessing.c
add_files -tb src/AFANetworkSettingsCommon.h
add_files -tb src/AFANetworkSettings.h
add_files -tb src/AFANetworkSettings.c
add_files -tb src/AFADefines.h
open_solution "AFAProcessing_64Bit_250MHz"
set_part {xc7vx690tffg1761-2}
create_clock -period 2.5ns -name default
config_interface -m_axi_addr64 -m_axi_offset off -register_io off
csim_design -clean
0 Kudos
Newbie surajitmal
Newbie
3,716 Views
Registered: ‎03-23-2017

Re: Vivado HSL C simulation error

Hello,

 

Currently I'm using Vivado HLS 2016.4 tool. Facing "CSim failed with errors" when classes or class member functions are set as the top-level for synthesis.

 

 

0 Kudos
Contributor
Contributor
3,696 Views
Registered: ‎03-13-2017

Re: Vivado HSL C simulation error

 

[Note: not good to push up old posts, you should open a new one as this is a different issue I think]
You can't set a class as top-level. It must be a static function, see UG902 or even
https://www.xilinx.com/support/answers/54135.html

0 Kudos