xf::HoughLines 无法正确合成 vivado hls 2019.1

问题描述

我尝试了不同的方法来使用 xfopencv 合成我的 ip 块,但是每当我尝试在 vivado hls 2019.1 中合成我的 c 代码时,它使用的资源比平时多得多

操作系统:Windows cflag: -IF:/thesis/07_Final/HOUGH_SINGLE/Hough_accel/INC -D__SDSVHLS__ -std=c++0x

这是我与 xfopencv 示例相同的代码

#include "hls_stream.h"
#include "ap_int.h"
#include "common/xf_common.h"
#include "common/xf_utility.h"
#include "imgproc/xf_houghlines.hpp"

#define WIDTH 1920//1920//240//480//1920
#define HEIGHT 1080//1080//135//270//1080

#define RHOSTEP 1

#define THETASTEP 2 // 6.1 format

#define LInesMAX 512

#define DIAGVAL 2203 //275 //cvRound((sqrt(WIDTHWIDTH + HEIGHTHEIGHT)) / RHOSTEP);

#define MINTHETA 0

#define MAXTHETA 180

/* define the input and output types */

#define NPC1 XF_NPPC1

void houghlines_accel(xf::Mat<XF_8UC1,HEIGHT,WIDTH,NPC1> &_src,float *arrayy,float *arrayx,short threshold,short maxlines)
{
#pragma HLS interface m_axi port=arrayy depth=512
#pragma HLS interface m_axi port=arrayx depth=512
#pragma HLS INTERFACE s_axilite port=return bundle=lite

xf::houghlines<RHOSTEP,THETASTEP,LInesMAX,DIAGVAL,MINTHETA,MAXTHETA,XF_8UC1,NPC1>(_src,arrayy,arrayx,threshold,maxlines);
}

以及合成后的结果: report

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)