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: 
Highlighted
Visitor musayed46
Visitor
446 Views
Registered: ‎07-30-2018

C/RTL cosimulation error

Hello,

I am new to Vivado HLS and trying to work the simple example of an fir filter as given in the Xilinx tutorial (pg 13): https://www.xilinx.com/support/documentation/sw_manuals/xilinx2014_2/ug871-vivado-high-level-synthesis-tutorial.pdf. I am working on Ubuntu 18.10

The C Synthesis and C simulation work fine but cosimluation using Vivado HLS simulator( pg 23 of above pdf) gives the attached error.

Following is what I have tried so far:

- I cannot modify floatn.h as that is read only

- I played around with the CFLAGS options (In projects> project settings> simulation> fir_test.c I tried using -std=c++11/14 in accordance to the following StackOverflow post:https://stackoverflow.com/questions/13525774/clang-and-float128-bug-error)

It does not seem to identify the C FILE * pointer and shows that as a bug in the code. Interestingly, when I tried RTL cosimulation with a cpp file, that worked just fine. My hunch is that it complains because I'm working with c files? I have no idea why that would be the case. Any guidance would be helpful.

 

error(1).jpg
0 Kudos
3 Replies
Xilinx Employee
Xilinx Employee
423 Views
Registered: ‎09-05-2018

Re: C/RTL cosimulation error

Hey @musayed46,

Your hunch about the issue being the difference between c and cpp files could certainly be correct. Many libraries are meant only for one language or the other, e.g., "ap_cint.h" for C and "ap_int.h" for CPP. And one of your warnings complains about float vs. cfloat.

Additionally, I did notice that you're working with Vivado HLS 2018.2 but have linked to the user guide for 2014.2, so you're getting some deprecation warnings. I recommend you refer to the latest version of UG871: https://www.xilinx.com/support/documentation/sw_manuals/xilinx2018_2/ug871-vivado-high-level-synthesis-tutorial.pdf. If you come across any warnings when following the instructions in the latest version of the user guide on the matching release, we would gladly work with the documentation team to get those resolved. The updated example might also offer more information as to what is giving you your errors.

Nicholas Moellers

Xilinx Worldwide Technical Support
Visitor musayed46
Visitor
402 Views
Registered: ‎07-30-2018

Re: C/RTL cosimulation error

Hello,

Thank you for pointing out the difference in the user manual. I was simultaneously also working with 2018.2. Unfortunately, the error persists. Please advice.

Munazza

0 Kudos
Moderator
Moderator
387 Views
Registered: ‎05-31-2017

Re: C/RTL cosimulation error

Hi @musayed46,

I think the issue is mostly related to the compatible OS. Assuming that you are using the latest vivado HLS 2018.2 version, the supported Ubuntu OS is 16.04.3. As you are using Ubuntu 18 version this might be the reason due to which you are getting these errors. So, please use the compatible OS as mentioned at page 11 of UG 973.

0 Kudos