基于FPGA的CAN IP软核设计
发布时间:2018-03-24 20:14
本文选题:CAN 切入点:IP 出处:《吉林大学》2017年硕士论文
【摘要】:CAN是一种应用十分广泛的现场总线,尤其在汽车领域被越来越广泛的使用。随着发展CAN的应用领域被逐渐拓展,使其具有非常优秀的发展前景。FPGA由于运行速度快,具有大量软核便于开发等优点在嵌入式系统中也得到越来越广泛的重视。CAN与FPGA相结合即拓宽了CAN协议的应用范围又扩展了FPGA的应用领域。目前主流的硬件描述语言编程软件支持CAN协议的很少,所以本文具有一定的开创意义。同时采用CAN软核形式不需要额外的原件,硬件简单、更加灵活,所以又具有一定的实用意义。本文创新在于在CAN协议的基础上增加了灵活的邮箱管理和报文管理,使收发过程得到更好的控制。同时整体结构上借鉴了意法半导体系列单片机的CAN设计,使得熟悉单片机操作的人可以在不掌握硬件描述语言下方便使用CAN IP软核。本文基于Altera公司Cyclone IV系列FPGA,编写一个CAN IP软核实现CAN总线规范规定的基本功能,并设计了收发邮箱和滤波器,其后可以以此为基础设计更为复杂的结构来满足各种不同系统的需求。使用QuartusⅡ软件,基于其Qsys功能,封装CAN IP核,用avalon总线与NiosⅡ软核处理器相连,构造具有CAN功能的Qsys系统。使用eclipse的NiosⅡ软件构造工具,编写一段测试代码,测试系统的CAN收发功能。经测试IP核具有正常的CAN收发功能,传输基本稳定。IP核代码结构清楚,对接口稍作更改便可移植到其他处理器中。
[Abstract]:CAN is a very widely used fieldbus, especially in the field of automobile. With the development of CAN application field is gradually expanded, making it has a very good development prospects. In embedded system, the combination of can and FPGA not only widens the application scope of CAN protocol, but also extends the application field of FPGA. Very few programming software support the CAN protocol, So this paper has certain pioneering significance. At the same time, using CAN soft core form does not need additional original, the hardware is simple, more flexible, The innovation of this paper lies in the addition of flexible mailbox management and message management on the basis of CAN protocol. So that the transceiver process can be better controlled. At the same time, the CAN design of Italian semiconductor series microcontroller is used for reference in the overall structure. It makes it easy to use CAN IP soft core without mastering the hardware description language. Based on Cyclone IV series FPGAof Altera Company, this paper compiles a CAN IP soft core to realize the basic function of CAN bus specification. A transceiver mailbox and a filter are designed, based on which a more complex structure can be designed to meet the needs of different systems. Quartus 鈪,
本文编号:1659859
本文链接:https://www.wllwen.com/shoufeilunwen/xixikjs/1659859.html