Page 2 of 2

Re: Combining AVB+USB Code Resulted In Constraints Check Errors

Posted: Tue Jun 30, 2020 9:58 am
by fabra
Did someone test the proposed solution?

Re: Combining AVB+USB Code Resulted In Constraints Check Errors

Posted: Tue Jul 14, 2020 8:54 pm
by fabra
I did the proposed changes and was able to run the USB endpoint and the ethernet mac with PTP. Unfortunately there is not enough cores available to run the full AVB stack in combination with USB audio. Is it possible to make a modified version of the ethernet mac that runs at 100 Mbit and uses less cores?

Re: Combining AVB+USB Code Resulted In Constraints Check Errors

Posted: Wed Jul 15, 2020 6:33 pm
by akp

Re: Combining AVB+USB Code Resulted In Constraints Check Errors

Posted: Tue Jul 28, 2020 8:23 am
by fabra
Thanks! This link was very helpful.

Next step is to figure out how to reduce the number of used chanends in order bring up the full AVB stack. Any ideas are welcome!

Re: Combining AVB+USB Code Resulted In Constraints Check Errors

Posted: Tue Jul 28, 2020 9:20 am
by akp
Glad you got it working.

There are several ways to remove used chanends if you just need them for communication between tasks on the same tile.
For data streaming you can use ring buffers / fifos.
For other uses of chanends you can look at the ways to share memory here https://www.xcore.com/viewtopic.php?f=26&t=3061

And refer to module_xc_ptr on the xcore github https://github.com/xcore/sc_util/tree/m ... ule_xc_ptr and of course lib_locks if you need to handle synchronization in your software that would have normally been handled by the chanends themselves.