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: 
Adventurer
Adventurer
322 Views
Registered: ‎06-19-2018

my custom image process ip can't stop running

Jump to solution

I have customized an image processing IP that has two input channels and one output channel, like this:

11-5.jpg

The foreground and background images entered are two axis channels. I use two vdmas for image input, and I output directly to one of the vdma inputs. However, when I write two images directly into the vdma, the write operation will not stop, so I can't read the vdma to get the processed image.
I am using the pynq system. When running vdma.write, it will continue to run in this line, and will not stop without error. Attachment is my ip block design, help out.

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
267 Views
Registered: ‎11-09-2015

Re: my custom image process ip can't stop running

Jump to solution

Hi 1028271706@qq.com 

As mentioned in a different topic, you might need to investigate on the HW using an ILA. It might be that your IP never completes to process the frame and it might just be because at the input, the frames do not complete.

Pynq is great to do high level when you know that IPs are working. I am not sure if it is the best way to test an IP in HW.


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**

View solution in original post

0 Kudos
6 Replies
Scholar watari
Scholar
310 Views
Registered: ‎06-16-2013

Re: my custom image process ip can't stop running

Jump to solution

Hi 1028271706@qq.com 

 

Who generate like SOF, EOF for VDMA ?

I guess nobody generate it.

 

Best regards,

0 Kudos
Visitor pfarrokhi
Visitor
303 Views
Registered: ‎10-31-2019

Re: my custom image process ip can't stop running

Jump to solution

Hi. Your hardware looks good. You can get better performance by enabling HP1 and HP2 and connect each of those MM ports to one of them. But it must work. Problem must be from your software or your custom module. If you didn't work with VDMA, recommend you to have a simple design with it first. Also try to use chip scope to have better sense of what's going on. If you already checked all of them, then it must be from your custom module.

0 Kudos
Adventurer
Adventurer
284 Views
Registered: ‎06-19-2018

Re: my custom image process ip can't stop running

Jump to solution

the customized ip is made by vivado hls, it is very simply:

void Circle_pratial_process(AXI_STREAM& Foreground, AXI_STREAM& Background, AXI_STREAM& Output)
{
#pragma HLS INTERFACE axis port = Foreground bundle = INPUT_STREAM
#pragma HLS INTERFACE axis port = Background bundle = INPUT_STREAM
#pragma HLS INTERFACE axis port = Output bundle = OUTPUT_STREAM
#pragma HLS INTERFACE s_axilite port = return

 

GRAY_IMG foreg, backg, difference;

AXIvideo2Mat(Foreground, foreg);

AXIvideo2Mat(Background, backg);

//background - foreground
hls::AbsDiff(foreg, backg, difference);

Mat2AXIvideo(difference, Output);
}

 

and it works well in testbench, i dont know why it has problem in the ip.

0 Kudos
Moderator
Moderator
268 Views
Registered: ‎11-09-2015

Re: my custom image process ip can't stop running

Jump to solution

Hi 1028271706@qq.com 

As mentioned in a different topic, you might need to investigate on the HW using an ILA. It might be that your IP never completes to process the frame and it might just be because at the input, the frames do not complete.

Pynq is great to do high level when you know that IPs are working. I am not sure if it is the best way to test an IP in HW.


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**

View solution in original post

0 Kudos
Highlighted
Visitor pfarrokhi
Visitor
200 Views
Registered: ‎10-31-2019

Re: my custom image process ip can't stop running

Jump to solution

Test it by running debug core to find out what's going on exactly. I think it must be best way for your case.

Moderator
Moderator
92 Views
Registered: ‎11-21-2018

Re: my custom image process ip can't stop running

Jump to solution

Hi 1028271706@qq.com 

If your question is answered or your issue is solved, please kindly mark the response which helped as a solution (click on "Accept as solution" button below the reply).

 

If this is not solved/answered, please reply in the topic giving more information on your current status.

 

Thanks and Regards,

Aoife
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos