Page 1 of 1

Ethernet buffering

Posted: Wed Jul 19, 2017 9:16 am
by who
Hi,

I am starting a project with the xCore-200 eXplorer board and I am using a Gigabit link. Receiving data works perfect, now I want to process the received data. Therefore, I need to buffer the incoming data in a FIFO structure; so the data of each MAC packet should be copied to a FIFO. How can I do this efficiently? Are there any examples available?
-who

Re: Ethernet buffering

Posted: Wed Jul 19, 2017 11:39 am
by akp
Are you using IP networking? The xtcp lib and the simple webserver example is where I started from for TCP... I got it from git https://github.com/xmos/lib_xtcp

Re: Ethernet buffering

Posted: Wed Jul 19, 2017 1:22 pm
by who
Hi,
no, I am using only Ethernet MAC communication. Therefore I used example AN000199 and in function icmp_server() I am receiving the ethernet frames. When just counting the incoming frames in icmp_server(), I'll get 500mbit/s. But when I am trying to store the content of rxbuf to a FIFO (example "9 A buffered receiver" out of the programming guide) the connection is very slow.