Hi,
I'm trying to use the streaming_dma_afu included in the samples that come with Arria 10 cards, and replace the pattern checker and pattern generator modules with a simple HLS module. I'm using i++ Version 17.1.0 Build 240 and Quartus Version 17.1.1 Build 273, and my OS is CentOS Linux release 7.6.1810.
The HLS code is the following:
component void st_add(stream_in<unsigned int, usesPackets<true>, usesValid<true> > &in_st,
stream_out<unsigned int, usesPackets<true>, usesReady<true> > &out_st,
hls_stable_argument hls_avalon_slave_register_argument unsigned int offset) {
for(unsigned int i = 0; i < 100; ++i) {
unsigned int in = in_st.read();
out_st.write(in + offset);
}
}
After compiling the above code and using the IP generated by it in the Platform Designer system in the streaming_dma_afu example, I face the following errors:
Error: streaming_dma_test_system.m2s_dma_bbb.m2s_st_source/st_add_internal_0.in_st: m2s_dma_bbb.m2s_st_source has its first symbol in the high-order bit positions, but st_add_internal_0.in_st does not.
Error: streaming_dma_test_system.st_add_internal_0.out_st/s2m_dma_bbb.s2m_st_sink: s2m_dma_bbb.s2m_st_sink has its first symbol in the high-order bit positions, but st_add_internal_0.out_st does not.
I can make these errors go away by checking the "First Symbol in High-Order Bits" box in the Signals & Interfaces tab under Component Instantiation tab in Platform Designer. However, when I want to generate HDL code for the system I get these errors:
Error: avalon_st_adapter.data_format_adapter_0: Unsupported adaptation: The input interface uses the empty signal. However, the output interface is not using the empty signal.
Error: avalon_st_adapter.data_format_adapter_0: "Data Symbols Per Beat" (inSymbolsPerBeat) 64 is out of range: 1-32
Error: avalon_st_adapter_001.data_format_adapter_0: "Data Symbols Per Beat" (outSymbolsPerBeat) 64 is out of range: 1-32
Error: qsys-generate failed with exit code 1: 3 Errors, 26 Warnings
So my questions are:
Thanks in advance for your help.
Link Copied
Hi,
May I request the example and steps to reproduce the error?
Thanks.
Hi,
May I know if you have any updates?
Thanks.
Hi,
Yes, the problem was solved by using a sample code for generating AFU using an HLS component.
Thanks
Hi,
Thanks for the update. I believe your feedback is valuable to other customers.
Thanks.
May I know where could I get the example code of hls-afu?
Thanks very much!
For more complete information about compiler optimizations, see our Optimization Notice.