OpenCV matrix receives corrupted results from PL

Everything that doesn't fit the other categories

OpenCV matrix receives corrupted results from PL

Postby Guest »

hello,

I am trying to find derivative (difference) of an image in PL part using xillybus IP core. For prototyping, i created a 16x1 matrix and tired to send it to PL using xillybus IP core. I'm sending this whole at once (16 elements) and separating the bytes in HLS. Here comes my problem. I'm sending the following data
sent data= [99, 176, 96, 109, 106, 97, 43, 188, 111, 161, 98, 180, 55, 156, 155, 149]

and output from fpga is:
received data= [12, 51, 45, 100, 7, 155, 149, 0, 0, 0, 0, 0, 0, 0, 99, 0]

Problem: incorrect results and Order of the bytes splitted is not correct

I followed your demo and tried to read data in Little Endian but still wrong results
I monitored sending end and found that data sent successfully. Here is my Host program.

http://txt.do/djttn

I suspect there is some issue where i separate bytes from integer input in HLS. Here in HLS program,

http://txt.do/djtr1

I noticed an interesting fact that
byte[0]=99 (that's correct),
byte[1]=106( which is 5 point in sent data),
byte[2]=111 (9th point of sent data stream)
byte[3]=55 (13 th point of sent data stream)
all of these are the first index point of respective nibble.

Please have a look at my problem and guide me. thanks
Guest
 

Re: OpenCV matrix receives corrupted results from PL

Postby support »

Hello,
Guest wrote:I suspect there is some issue where i separate bytes from integer input in HLS.

It indeed sounds like it's in that direction. I suggest asking this question in Xilinx' relevant forum, as there's a better chance to get help on HLS related issues there.

Regards,
Eli
support
 
Posts: 802
Joined:


Return to Other topics

cron