Jump to content


stream problem


  • You cannot reply to this topic
1 reply to this topic

#1 junwuchi

    Member

  • Members
  • PipPip
  • 4 posts

Posted 20 October 2008 - 11:08 PM

Hi!

I have a question.



<H/W>

co_stream_write(1)

{

LONG OPERATION

}

co_stream_write(2)


<S/W>

while(1)
{
co_stream_read(1)
co_stream_read(2) // this is DEADLOCK!!
}


what method exist ?

co_signal_wait is fail.

S/W simulation is success But DEADLOCK in my board.


please give me a TIP. I use V2.2 and xilinx ml410 board macroblaze opb

Thank you.

#2 RalphBodenner

    Advanced Member

  • Admin
  • PipPipPip
  • 348 posts

Posted 21 October 2008 - 05:50 AM

It's unlikely that true deadlock will occur in this situation, but the second read will block until the second write has been done. Have you done an HDL simulation of the design at the top-level Impulse C component (in *_top.vhd)?

I would highly recommend upgrading to version 3.20 of CoDeveloper--it contains many fixes and updates over the 2.20 version.

Regards,
Ralph

Ralph Bodenner
Impulse Accelerated Technologies, Inc.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users