FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP

TSE UDP protocol

Altera_Forum
Honored Contributor II
1,217 Views

Hi,  

 

I am working on a project where I need to send data from the cycloneIII board to the computer.I am using triple speed ethernet megafunction in the project. I need to use UDP protocol for the communication. Should the UDP protocol data be written in the FIFO or are they sent automatically?  

 

If so can you help me in the format of the UDP protocol. I found some information on the web about the protocols. As I understand the Ipv4 header, then the UDP protocol header and then the data should be sent. Is that right?  

 

Thanks.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
281 Views

Nope. It's not that simple. 

 

I think you'd need a processor and a stack to deal with UDP. You might want to look at the following: 

 

http://www.nioswiki.com/exampledesigns/nios2udpoffloadexample 

http://www.nioswiki.com/exampledesigns/superloopsimplesocketserverplus 

 

Cheers, 

 

- Brendan
0 Kudos
Altera_Forum
Honored Contributor II
281 Views

Using a CPU with a TCP/IP stack is the easyest way to go. Using the Nios IDE you can create a simple project with ethernet interface within minutes. 

 

If you need speed / low power or can't/won't have a CPU, UDP packets can be generated in hardware and sent to the TSE, but it's a lot of work. You need to add the headers for the UDP, IPv4 and Ethernet, as shown in the offload example given by Brendan. If you don't know the destination MAC address, you also need to implement the ARP protocol.
0 Kudos
Reply