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
Contributor
Contributor
270 Views
Registered: ‎07-23-2018

about hls opencv function interface

Hi

I used the function of resize, Now ,I want set the function interface m_axi. but it failed.

My code is following

typedef hls::Mat<SRC_HEIGHT, SRC_WIDTH, HLS_8UC3> SRC_IMAGE;
typedef hls::Mat<DST_HEIGHT, DST_WIDTH, HLS_8UC3> DST_IMAGE;
void my_hls_resize(SRC_IMAGE& src_axi, DST_IMAGE& dst_axi, int src_rows, int src_cols,int dst_rows,int dst_cols);

#pragma HLS INTERFACE m_axi  port=dst_axi offset=slave bundle=dst
#pragma HLS INTERFACE m_axi  port=src_axi offset=slave bundle=src

#pragma HLS dataflow
//hls::AXIvideo2Mat(src_axi, imag_0);
hls::Resize(src_axi,dst_axi,interpolation=HLS_INTER_LINEAR );

 

The errors are:

ERROR: [XFORM 203-801] Stream port 'src_axi.data_stream[0].V' (top.cpp:3) has invalid interface mode 'm_axi' (top.cpp:6:1). Stream port only supports ap_hs, ap_fifo and axis modes.
ERROR: [XFORM 203-801] Stream port 'src_axi.data_stream[1].V' (top.cpp:3) has invalid interface mode 'm_axi' (top.cpp:6:1). Stream port only supports ap_hs, ap_fifo and axis modes.
ERROR: [XFORM 203-801] Stream port 'src_axi.data_stream[2].V' (top.cpp:3) has invalid interface mode 'm_axi' (top.cpp:6:1). Stream port only supports ap_hs, ap_fifo and axis modes.
ERROR: [XFORM 203-801] Stream port 'dst_axi.data_stream[0].V' (top.cpp:3) has invalid interface mode 'm_axi' (top.cpp:5:1). Stream port only supports ap_hs, ap_fifo and axis modes.
ERROR: [XFORM 203-801] Stream port 'dst_axi.data_stream[1].V' (top.cpp:3) has invalid interface mode 'm_axi' (top.cpp:5:1). Stream port only supports ap_hs, ap_fifo and axis modes.
ERROR: [XFORM 203-801] Stream port 'dst_axi.data_stream[2].V' (top.cpp:3) has invalid interface mode 'm_axi' (top.cpp:5:1). Stream port only supports ap_hs, ap_fifo and axis modes.

 

So, how can I set the src_axi and dst_axi to m_axi interface? please help me.

 

 

 

0 Kudos