基于FPGA的千兆以太网接口应用研究与实现

2018-05-05 05:42:50吴长瑞徐建清蒋景红
现代电子技术 2018年9期

吴长瑞 徐建清 蒋景红

摘 要: 为解决嵌入式领域中数据量大、速度高、实时性强等传输问题,提出FPGA和PHY芯片相结合的设计方案,用于实现UDP/IP协议。通过深入研究TCP/IP协议栈体系结构和工作原理,按照以太网的帧格式封包和解包,在FPGA中实现UDP/IP数据的正确发送和接收。在自主研发的硬件平台上验证了该方案的正确性和可靠性。由于使用FPGA实现UDP/IP协议,系统具有移植性高和易于集成等优点。

关键词: UDP/IP; 协议栈; 千兆以太网; 现场可编程门阵列; 帧格式; 系统集成

中图分类号: TN913?34 文献标识码: A 文章编号: 1004?373X(2018)09?0001?05

Abstract: In order to solve the transmission problems of large data amount, high speed and strong real?time performance of the embedded field, a design scheme combining FPGA and PHY chip is proposed to implement the UDP/IP protocol. The system architecture and working principle of TCP/IP protocol stack are studied deeply. According to the packed and unpacked frame format of Ethernet, the UDP/IP data is sent and received correctly in FPGA. The correctness and reliability of the scheme are verified on the autonomously?developed hardware platform. The system using FPGA to implement the UDP/IP protocol has the advantages of high portability and easy integration.

Keywords: UDP/IP; protocol stack; Gigabit Ethernet; FPGA; frame format; system integration

0 引 言

千兆以太网在视频和音频等大数据量和高实时性的领域存在广泛的应用。在点对点通信中,数据传输的实时性是通信双方非常关心的问题。针对此类应用,UDP(User Data Protocol)提供了一种高效、低延迟的称为数据报的传输协议,采用UDP这种面向非连接的传输协议,可以有效解决数据实时传输的问题。目前业界常用的嵌入式以太网解决方案有微控制器内移植TCP/IP协议栈和ASIC内置协议栈,上述方案都不能同时兼顾传输效率、可集成化和可移植性[1?2]。

本文提出一种基于FPGA的UDP/IP协议,实现千兆以太网传输方案兼顾传输效率、易于集成和便于移植等特点,该方案已在实际工程中得到广泛应用。

1 TCP/IP协议栈结构及工作原理

OSI参考模型(Open System Interconnection Reference Model)是国际互联网标准化组织提出的网络结构标准模型。该模型的目的是使各种硬件在相同的层次上相互通信。实际应用中,OSI模型因为实现太过复杂而很少被采用,TCP/IP模型因简洁而被广泛使用。……

登录APP查看全文