Streaming data between RTL module and OpenCL kernel using Avalon ST interface
Hi,
I'm trying to to use Avalon ST interface to stream data between an OpenCL kernel and RTL module. The avalon ST interface stream data always when ovalid=1 and oready =1 as mentioned in the first example of OpenCL library (Intel design example).
MY Question is: How can I to stop the streaming ? should I send a zero to ovalid and oready (ovalid=0 and oready =0). ?
If Yes, I wrote the code below but my RTL module still receiving data from kernel and data are processing. I activate ovalid and oready with an enable signal. So ovalid and oready will be high when enable =1 and o if not. here is the code:
ovalid <= enable & 1'b1 ; oready<= enable & 1'b1;
Even with enable=0 my RTL still processing data like ovalid=1 ? if not how I can stop sending data between my RTL module and
the OpenCL Kernel?
Thanks,