06-03-2016 02:21 AM
I'm trying to add a PL block for a simple image processing algorithm. I've used Vivado HLS to create the ip block and added it to my hardware platform. Now I'm trying to build a Linux application with SDK to test my block. I'm guessing there are libraries to pass an image to the block knowing its adress but I can't seem to find tutorials for that. Can someone help?
06-04-2016 11:46 PM
06-06-2016 01:31 AM
Here is how my top level function looks like :
void face_detect(AXI_STREAM& input, AXI_STREAM& output, int rows, int cols)
#pragma HLS RESOURCE variable=input core=AXIS metadata="-bus_bundle INPUT_STREAM"
#pragma HLS RESOURCE variable=output core=AXIS metadata="-bus_bundle OUTPUT_STREAM"
#pragma HLS RESOURCE core=AXI_SLAVE variable=rows metadata="-bus_bundle CONTROL_BUS"
#pragma HLS RESOURCE core=AXI_SLAVE variable=cols metadata="-bus_bundle CONTROL_BUS"
#pragma HLS RESOURCE core=AXI_SLAVE variable=return metadata="-bus_bundle CONTROL_BUS"
#pragma HLS INTERFACE ap_stable port=rows
#pragma HLS INTERFACE ap_stable port=cols
#pragma HLS dataflow
AXI_STREAM is a hls::stream<ap_axiu<32,1,1,1>> .
And here is how the IP block looks like :
And after exporting the hw platform to SDK I get my function mapped in the address : 0x43c00000 0x43c0ffff.
06-06-2016 08:42 AM