Forum Discussion
Ric2
New Contributor
2 years agoDeadlock while filling pipe for simulation
Hi, following best practice as descibed here we run into trouble with stalled writes. When you create a testbench for a oneAPI kernel that you intend to compile as an IP core, write all your data...
Kevin_Xu_Intel
New Contributor
2 years agoHello,
I was able to reproduce your issue, I think there is a buffer limit to host pipe in simulation, and since the host testbench is writing all of its data into the buffer before processing it, it stalled when the limit was hit.
I found that a work around for this is to perform the host pipe read and write in separated threads.
Attached design use pthread for threading the host testbench, and it should not effecting the IP you are working on.
Thanks,