中国半导体行业协会封装分会会刊

中国电子学会电子制造与封装技术分会会刊

导航

电子与封装 ›› 2025, Vol. 25 ›› Issue (9): 090303 . doi: 10.16257/j.cnki.1681-1070.2025.0129

• 电路与系统 • 上一篇    下一篇

基于FPGA的CAN FD控制器的设计与验证

罗旸,何志豪   

  1. 中国电子科技集团公司第五十八研究所,江苏 无锡  214035
  • 收稿日期:2025-03-05 出版日期:2025-09-28 发布日期:2025-05-01
  • 作者简介:罗旸(1982—),男,福建长汀人,硕士,高级工程师,研究方向为FPGA、DSP、HBM等超大规模集成电路设计。

Design and Verification of CAN FD Controller Based on FPGA

LUO Yang, HE Zhihao   

  1. ChinaElectronics Technology Group Corporation No. 58 ResearchInstitute, Wuxi 214035, China
  • Received:2025-03-05 Online:2025-09-28 Published:2025-05-01

摘要: CAN_FD总线协议作为新一代汽车总线网络的核心通信技术,在提升传输速率和扩展数据场长度方面展现出显著优势。然而,现有CAN_FD控制器普遍采用封闭式IP核,协议栈不可见,严重制约了网络系统的自主可控性。针对这一问题,提出一种基于FPGA实现的CAN_FD控制器设计方案。该设计兼容CAN标准,新增了CRC17和CRC21循环冗余校验算法,为数据传输的准确性增加了双重保障。设计的CAN_FD控制器与现有的CAN_FD封闭式IP核相比,资源占用率更少,功耗更低。仿真结果显示,可以正常通过上位机与FPGA进行CAN_FD总线协议通信,该设计能够实现自定义调整,灵活性高,可以达到预期的效果且具有实用价值。

关键词: FPGA, VerilogHDL, CAN_FD总线协议

Abstract: As the core communication technology of the new generation automobile bus network, CAN_FD bus protocol has shown remarkable advantages in improving transmission rate and extending data field length. However, the existing CAN_FD controller generally adopts closed IP core, and the protocol stack is invisible, which seriously restricts the autonomous controllability of the network system. To solve this problem, a design scheme of CAN_FD controller based on FPGA implementation is proposed. The design is compatible with CAN standard, and the cyclic redundancy check algorithms of CRC17 and CRC21 are added, which adds double insurance for the accuracy of data transmission. The designed CAN_FD controller has less resource consumption and lower power consumption than the existing CAN_FD closed IP controller. The simulation results show that CAN_FD bus protocol communication can be carried out between host computer and FPGA normally. The design can realize custom adjustment, has high flexibility, can achieve the expected effect, and has practical value.

Key words: FPGA, Verilog HDL, CAN_FD bus protocol

中图分类号: