摘要
针对嵌入式设备对以太网接入的需求,提出一种基于FPGA的千兆以太网MAC控制器的硬件架构。通过FPGA编程实现IEEE 802.3规定的数据封装和介质访问控制等功能。设计了一种具备帧清除和重读功能的改进型异步FIFO,用于存储帧数据,既解决跨时钟域数据的同步问题,又方便进行发送时帧的重发和发送或接收时错误帧的丢弃。经过Modelsim仿真和FPGA硬件测试,MAC控制器的功能得到验证,且仅使用少量的逻辑资源。
Aiming at the requirement of embedded devices for Ethernet access,a hardware architecture of gigabit Ethernet MAC controller based on FPGA was proposed.The functions of data encapsulation and media access control specified in IEEE 802.3 were realized by FPGA programming.An improved asynchronous FIFO with frame clearing and rereading functions was designed to store frame data,which not only solved the problem of data synchronization across clock domains,but also facilitated retransmission of frames during transmission and discarding of erroneous frames during transmission or reception.After Modelsim simulation and FPGA hardware test,the function of MAC controller is verified,and only a small amount of logic resources are used.
作者
杨武
张俊
苏国旺
丁旭然
李秋
YANG Wu;ZHANG Jun;SU Guowang;DING Xuran;LI Qiu(School of Automation,Central South University,Changsha 410083,China)
出处
《仪表技术与传感器》
CSCD
北大核心
2023年第7期28-32,共5页
Instrument Technique and Sensor
基金
国家自然科学基金面上项目(62274185)。
作者简介
杨武(2001-)硕士研究生,主要研究方向为RISC-V处理器设计。E-mail:3167018755@qq.com;张俊(1973-),研究员,博士,主要研究领域为运动控制芯片设计、图形处理器设计等。E-mail:junzhang@csu.edu.cn。