一、TB测试激励设计
#include "top.h"
#include "hls_opencv.h"
#include "iostream"
using namespace std;
using namespace cv;
int main (int argc, char** argv)
{
int len = 100;
ap_uint<32> tmp;
ap_uint<32> tmp1;
ap_uint<32> tmp2;
hls::stream<ap_uint<32> > src_axi;
hls::stream<ap_uint<32> > dst_axi;
hls::stream<ap_uint<32> > dst_axi1;
ap_uint<16> width = 5;
ap_uint<16> height = 10;
for(int ii=0;ii<2;ii++){
if(ii==0){
width = 5;
height = 20;
}
else{
width = 10;
height = 10;
}
for(int i=0;i<100;i++){//row
tmp1(7,0) = i;
tmp1(15,8) = i;
tmp1(23,16) = i;
tmp1(31,24) = i;
src_axi << tmp1;//write
//std::cout<<std::
Vivado HLS顶层模块多调用设计

最低0.47元/天 解锁文章
1087

被折叠的 条评论
为什么被折叠?



