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: 
Newbie hale2bopp
Newbie
220 Views
Registered: ‎12-02-2018

AXI_DMA_SIMPLE_WAIT run on hardware hangs when adding a function to hardware

We are using a Zedboard evaluation kit and Xilinx SDx to run a compression deduplication stream for a school project, accelerated on hardware. We were able to get the stream set up and running in software, and synthezisable in hardware according to Vivado HLS, and also build the function as a hardware function in Xilinx SDSoC. 

Our hardware function is hanging in cf_wait around the axi_simple_dma_wait. We used the following pragmas before our function which is reading data from the SDCard on the board into an array. The functin foo is defined within foo.cpp which is a source file.

 

#pragma SDS mem_attribute(input[0:LENGTH])

#pragma SDS data data_copy(input[0:LENGTH])

#pragma SDS data access_pattern(input::SEQUENTIAL)

void foo(input[LENGTH], foobar1, foobar2){

      ...

}

 

Any idea why this could be happening and how to debug this?

0 Kudos
1 Reply
Xilinx Employee
Xilinx Employee
135 Views
Registered: ‎08-20-2018

Re: AXI_DMA_SIMPLE_WAIT run on hardware hangs when adding a function to hardware

Hi @hale2bopp

1. mem_attribute pragma which you have written is wrong. Correct sytax is,

#pragma SDS data mem_attribute(ArrayName:contiguity) 

Contiguity: Must be either PHYSICAL_CONTIGUOUS or NON_PHYSICAL_CONTIGUOUS.The default value is NON_PHYSICAL_CONTIGUOUS

2. #pragma SDS data copy(ArrayName[:]) -> you have written it as data_copy which is not correct

here is link to pragma guide https://www.xilinx.com/content/dam/xilinx/support/documentation/sw_manuals/xilinx2018_2/ug1253-sdx-pragma-reference.pdf

 

 

 

 

 

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos