电子科技2024,Vol.37Issue(1):48-54,7.DOI:10.16180/j.cnki.issn1007-7820.2024.01.007
基于FPGA的千兆以太网端口通信设计
Design of Gigabit Ethernet Port Communication Based on FPGA
摘要
Abstract
In view of the problem of Ethernet transmission rate and real-time in embedded field,a design of Gigabit Ethernet port communication based on FPGA(Field Programmable Gate Array)is proposed.This study de-signs the forwarding function of Gigabit Ethernet switch,and implements end-to-end data communication based on label forwarding.Datagrams with label are sent by CPU(Central Processing Unit),and are outputted through Gigabit Ethernet interface,and are sent to FPGA through RGMII(Reduced Gigabit Media Independent Interface)port.FPGA judges output port number field in label through internal logic and removes label,and outputs data-grams to connecting device from corresponding Gigabit Ethernet interface.Peripherals input datagrams through Gigabit Ethernet ports,and send datagrams to FPGA through SGMII(Serial Gigabit Media Independent Interface)protocol.FPGA adds labels through internal logic and outputs them to CPU through polling,so as to realize inter-working of connecting devices of multiple Gigabit Ethernet interface.The experimental results reveal the feasibility and effectiveness of the FPGA logic.The transmission rate reaches 1 Gbit·s-1,the datagrams forwarding delay is less than 100 μs,and the packet loss rate is 0%,which indicates that the data transmission stability is high,and the proposed design meets the actual needs of existing projects.关键词
FPGA/千兆以太网/以太网交换机/标签/CPU/数据报文/RGMII接口/SGMII协议Key words
FPGA/Gigabit Ethernet/ethernet switch/label/CPU/datagram/RGMII interface/SGMII protocol分类
信息技术与安全科学引用本文复制引用
兰唯,韩延喆,扈啸..基于FPGA的千兆以太网端口通信设计[J].电子科技,2024,37(1):48-54,7.基金项目
国家科技重大专项(2017-V-0014-0066)National Science and Technology Major Project(2017-V-0014-0066) (2017-V-0014-0066)