面向运动控制器的千兆以太网通信模块的设计与实现
Design and Implementation of Gigabit Ethernet Communication Moule for Motion Controller Unit
苏国旺 1张俊 1杨武 1丁旭然 1李秋1
作者信息
摘要
针对传统通信方式无法满足运动控制器对传输速度和实时性要求的问题,提出一种基于现场可编程门阵列(FPGA)的千兆以太网实现方案.结合UDP/IP 协议中数据帧的封装和解析过程,对MAC层、IP层以及UDP层进行一体化设计,开发了一款低成本的千兆以太网通信模块.经仿真和硬件测试,该模块的主频最高可达179.76 MHz,数据帧接收与发送之间的间隔仅为444 ns,且存储器资源使用量不到1%,满足千兆以太网的传输速率及实时性要求.除正常的以太网通信功能外,该模块还实现了数据帧的清除和重发功能以及对通信模块的IP 和MAC地址进行动态配置,为实现运动控制器的以太网通信提供了低成本的解决方案.
Abstract
A gigabit Ethernet implementation scheme based on field programmable gate array(FPGA)was proposed to ad-dress the issue of traditional communication methods not meeting the transmission speed and real-time requirements of motion controllers.Combining the encapsulation and parsing process of data frames in the UDP/IP protocol,an integrated design was car-ried out for the MAC layer,IP layer,and UDP layer to achieve a low-cost gigabit Ethernet communication module.After simula-tion and hardware testing,the main frequency of this module can reach up to 179.76 MHz,and the interval between data frame reception and transmission was only 444 ns,and memory usage was less than 1%,which met the transmission rate and real-time requirements of gigabit Ethernet.In addition to the normal Ethernet communication function,it can also achieve data frame clear-ing and resending functions,as well as dynamically configure the IP and MAC addresses of the communication module,providing a low-cost solution for Ethernet communication of motion controllers.
关键词
千兆以太网/FPGA/UDP/IP协议/运动控制器Key words
gigabit ethernet/FPGA/UDP/IP protocol/motion controller unit引用本文复制引用
基金项目
国家自然科学基金面上项目(62274185)
出版年
2024