xFfast7x7

xFfast7x7
XF_SNAME(WORDWIDTH) buf[WIN_SZ][(COLS >> XF_BITSHIFT(NPC))]; //[7][]
#pragma HLS ARRAY_PARTITION variable=buf complete dim=1
#pragma HLS RESOURCE variable=buf core=RAM_S2P_BRAM

read_lines:
// read (line3+n)-(line5+n) row to buf[3:5][col]
// takes care of top borders , init buf[0:2][col]
//对 buf[0:5][col]赋值

 ap_uint<8> src_buf[7][14];
 ap_uint<8> src_buf_temp_med_apply[7][14]
read_lines:
// read (line3+n)-(line5+n) row to buf[3:5][col]
// takes care of top borders ,   init buf[0:2][col]
//对 buf[0:5][col]赋值
for (row = (win_size >> 1); row < img_height + (win_size >> 1); row++) {
	ap_uint<64> buf_cop[WIN_SZ];//7
	ap_uint<8>  src_buf_temp_copy[WIN_SZ][XF_NPIXPERCYCLE(NPC)];//[7][8]
	for (ap_uint<13> col = 0; col < ((img_width) >> XF_BITSHIFT(NPC)) + col_loop_var; col++) {
			 buf[6][col] = _src_mat.read(read_index++); // Read data
        	buf[row_ind[win_size - 1]][col] = _src_mat.read(read_index++); 

				 buf_cop[0:6] = buf[0+n:6+n][0];
				 src_buf_temp_copy[7][8]  <= buf_cop
				 src_buf[0:6][11:13] = src_buf_temp_copy[0:6][0:2];
				 src_buf[0:6][0:10] = src_buf_temp_copy[0:6][0];
				 src_buf_temp_med_apply[copyi][copyj] = src_buf[copyi][copyj + applyfast]; 
				 xFfastProc<NPC, WORDWIDTH, DEPTH, WIN_SZ, WIN_SZ_SQ> 
                    (OutputValues_percycle,//score
                    src_buf_temp_med_apply,
                     WIN_SZ, _threshold, 
                     pack_corners); //iscorner 255 else 0
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值