Forum Discussion
Altera_Forum
Honored Contributor
16 years agoWhat's the general way to incorporate handwritten module with TSE ethernet?
Suppose we have handwritten IP module that continuously reads data from ADC, processes it and writes to some on-chip fifo. Now we want to send those data via Ethernet. I got impression the common w...
Altera_Forum
Honored Contributor
16 years agodagofff, the fastest solution is that was proposed by crevars. I'm using also a custom hardware for UDP generation, the transmission to the TSE Mac is done by SGDMA. The custom hardware has a Avalon Slave port which is connectet to the m_read port of the sgdma_tx. My design is based on TSE_SGDMA example. You can find that i.e. in C:\altera\72\nios2eds\examples\vhdl\niosII_stratixII_2s60_RoHS.
With a software based solution is a speed between ~30MBits/s and ~145MBits/s (according AN440, page 18) possible. The max speed I use in my hardware solution is about 640 MBit/s. The best way may be you try to adapt the tse_optimized design according AN440. If the bandwith is to small than you must implement a hardware protocol engine. here you can download AN440 and design files: http://www.altera.com/literature/lit-an.jsp (http://www.altera.com/literature/lit-an.jsp) Jens