Electronic Science and Technology ›› 2024, Vol. 37 ›› Issue (1): 48-54.doi: 10.16180/j.cnki.issn1007-7820.2024.01.007

Previous Articles     Next Articles

Design of Gigabit Ethernet Port Communication Based on FPGA

LAN Wei1,2,HAN Yanzhe1,2,HU Xiao1   

  1. 1. School of Computer,National University of Defense Technology,Changsha 410073,China
    2. Changsha Talent Group Co., Ltd.,Changsha 410073,China
  • Received:2022-09-08 Online:2024-01-15 Published:2024-01-11
  • Supported by:
    National Science and Technology Major Project(2017-V-0014-0066)

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 designs 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 datagrams 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 interworking 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.

Key words: FPGA, Gigabit Ethernet, ethernet switch, label, CPU, datagram, RGMII interface, SGMII protocol

CLC Number: 

  • TN79