摘要
针对目前以太网串口服务器串口数量固定而无法实时增减的问题,提出一种基于高级精简指令集处理器(ARM)和现场可编程门阵列(FPGA)的以太网串口服务器设计方案。该以太网串口服务器采用ARM+FPGA构架,以ARM+LAN8720芯片为以太网硬件平台,在μC/OS-Ⅱ操作系统上实现以太网通信。以FPGA+接口芯片作为串口硬件平台,基于FPGA构建串口单元模块实现串口通信。通过操作系统的多任务管理、可变静态存储控制器(FSMC)的映射寄存器地址操作及FPGA的多串口管理等功能的设计,实现多串口的增减操作。通过对串口增减操作过程中动态资源分配算法的研究,求出本系统能实现的最大串口数量。实验结果表明:该以太网串口服务器能够实现多串口通信,串口数量可增减,且波特率可独立设置,最大波特率可达115 200 bit/s,最大串口数为35。
For the problems that the number of Ethernet serial device server's serial ports was fixed and was not be increased or decreased in real time,the Ethernet serial device server based on advanced risc machines( ARM) and field programmable gate array( FPGA) was designed. The ARM + FPGA framework was adopted for Ethernet serial device server and ARM + LAN8720 chip was used as hardware platform. Ethernet communication was realized on μC/OS-II operating system. FPGA + interface chip was used as the hardware platform of serial ports,and serial port module was constructed based on FPGA to realize serial port communication. Increasing or decreasing the number of serial ports was realized by the multi-task management of the operating system,the operation of flexible static memory controller( FSMC) mapping register address and the function of multi serial port management of FPGA. The maximum number of the serial ports of this system were achieved by analyzing the dynamic resource allocation algorithm during the operation of incresing or decresing the number of serial ports. The experimental results show that the ethernet serial device server realizes multi serial port communication. The serial number is increased and decreased optionally. The maximum baud rate is up to 115 200 bit/s,and the maximum number of serial ports is up to 35.
出处
《河南科技大学学报(自然科学版)》
CAS
北大核心
2018年第6期24-29,34,共7页
Journal of Henan University of Science And Technology:Natural Science
基金
国家自然科学基金项目(51205108)
河南省高等学校重点科研基金项目(15A535001)