03-11-2015 03:16 AM
I am currently learning HLS. I have troubles understanding differences between directive options like Interface, Resource and Stream. They looked same to me as I need to use AXI4Stream. Furthermore, selecting one of the options I do get more sub options like variable required, off, depth as optional. I could not understand them neither. Xilinx documentation seem to be poor in those explanation. Kindly somebody please help to understand those terms.
03-11-2015 08:43 PM
03-12-2015 01:22 AM
@debrajr .Thanks Debraj for the answer. So, it is necessary or good idea to have both interface and then resource directive to the ports?
Besides, could you provide some resource/links to understand the sub options for those directives?
And another question, how to limit HLS compiler to only generate select signals like ACLK, ACLKEN, ARESTEN, TVALID, TREADY, TDATA, TUSER and TLAST? As I am creating Video IP, I need to remove signals like TID, TDEST, TKEEP and TSTRB.
03-17-2015 05:41 AM
03-17-2015 06:51 AM
@debrajr . Thanks Debraj. I do have checked this page. My question is "can we chose only select ports of all ports in the struct? Because I can't see any way to synthesize only select ports. The documentation in the same page also says all the ports in structs are synthesized.
03-19-2015 09:45 PM
03-23-2015 02:13 AM
@debrajr . Hi Debraj. According to you, I modifyied ap_axi_sdata.h. i.e.
template<int D,int U,int TI,int TD>
// ap_uint<D/8> keep;
// ap_uint<D/8> strb;
// ap_uint<TI> id;
// ap_uint<TD> dest;
As you can see I commented those signals I dont need, but on synthesis I get following errors.
In file included from C:/Xilinx/Vivado_HLS/2014.4/include\hls_video.h:59:
C:/Xilinx/Vivado_HLS/2014.4/include/hls/hls_video_io.h:145:17: error: no member named 'keep' in 'ap_axiu<24, 1, 1, 1>'
axi.keep = -1;
mod_cfa_interpolation/top.cpp:398:5: note: in instantiation of function template specialization 'hls::Mat2AXIvideo<24, 1080, 1920, 32>' requested here
I would like to make IP like color filter array interpolation IP.
Please help me to make such IP block's interface.
Thanks in advance.