Code Monkey home page Code Monkey logo

Comments (8)

vt-lib-support avatar vt-lib-support commented on June 30, 2024

Hello @wilfredkisku ,

This seems to be a known issues in older tool versions. Please try the solution mentioned in the below link to overcome the issue:

https://support.xilinx.com/s/article/Use-of-gmp-h-for-Co-simulation?language=en_US

from vitis_libraries.

wilfredkisku avatar wilfredkisku commented on June 30, 2024

@vt-lib-support Thank you for the reply. I forgot to mention that I am using OpenCV 3.3.1.

Also, I tried including the library header as you mentioned (in the testbench cpp file) but I am still getting the error related to gmp.

from vitis_libraries.

vt-lib-support avatar vt-lib-support commented on June 30, 2024

What OS are you running?

Please try adding it here:
https://github.com/Xilinx/Vitis_Libraries/blob/2020.2/vision/L1/include/common/xf_headers.hpp#L27

#include <gmp.h> 
#define __gmp_const const

from vitis_libraries.

wilfredkisku avatar wilfredkisku commented on June 30, 2024

I tried it both on Ubuntu 18.04 LTS and 20.04 LTS.

Is there an issue with the OpenCV version according to you? I also might be making a mistake in defining the include, lib and flags paths in the settings.

from vitis_libraries.

vt-lib-support avatar vt-lib-support commented on June 30, 2024

OpenCV version shouldn't cause this error. From the log you posted, the paths and flags look fine.
You may try adding the below lines:

#include <gmp.h> 
#define __gmp_const const

at this line : https://github.com/Xilinx/Vitis_Libraries/blob/2020.2/vision/L1/include/common/xf_headers.hpp#L27 to see if it fixes the error.

Are you getting this error in CSIM too?

from vitis_libraries.

wilfredkisku avatar wilfredkisku commented on June 30, 2024

Yes, I am able to run synthesis without any errors (just warning messages). The above-mentioned issues come only after I try to run CSIM (co-simulation).

I will try the above-mentioned fix by adding it to the xf_header.hpp and post the progress. Thank you once again.

from vitis_libraries.

wilfredkisku avatar wilfredkisku commented on June 30, 2024

@vt-lib-support Thank you for the help. It works now, I am able to carry out both synthesis and csim.

While exporting the Vivado IP, I get this error though.

****** Vivado v2020.2 (64-bit)
  **** SW Build 3064766 on Wed Nov 18 09:12:47 MST 2020
  **** IP Build 3064653 on Wed Nov 18 14:17:31 MST 2020
    ** Copyright 1986-2020 Xilinx, Inc. All Rights Reserved.


source run_ippack.tcl -notrace
ipx::create_core: Time (s): cpu = 00:00:03 ; elapsed = 00:00:07 . Memory (MB): peak = 2285.727 ; gain = 4.027 ; free physical = 448 ; free virtual = 5091
bad lexical cast: source type value could not be interpreted as target
    while executing
"rdi::set_property core_revision 2310121424 {component component_1}"
    invoked from within
"set_property core_revision $Revision $core"
    (file "run_ippack.tcl" line 1766)
INFO: [Common 17-206] Exiting Vivado at Thu Oct 12 14:25:11 2023...
ERROR: [IMPL 213-28] Failed to generate IP.
INFO: [HLS 200-111] Finished Command export_design CPU user time: 18.59 seconds. CPU system time: 1.91 seconds. Elapsed time: 39.33 seconds; current allocated memory: 252.623 MB.
command 'ap_source' returned error code
    while executing
"source /home/wilfred/vivado_workspace/sobelExample/solution1/export.tcl"
    invoked from within
"hls::main /home/wilfred/vivado_workspace/sobelExample/solution1/export.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel 1 hls::main {*}$newargs"
    (procedure "hls_proc" line 16)
    invoked from within
"hls_proc [info nameofexecutable] $argv"
Finished export RTL.

The setting for the export is shown:
Screenshot from 2023-10-12 14-29-31

Thank you.

from vitis_libraries.

vt-lib-support avatar vt-lib-support commented on June 30, 2024

@wilfredkisku

This seems to be an issue caused by y2k22 bug in Vitis/Vivado older versions. Please follow the steps mentioned here and see if it gets resolved:

https://support.xilinx.com/s/article/76960?language=en_US

from vitis_libraries.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.