OSEK网络管理(NM)系统是保证汽车网络安全运行的重要机制。针对高端汽车CAN控制系统,利用高速并行处理及逻辑资源丰富的FPGA技术构建精简的OSEK NM系统。将FPGA内部分为NM协议栈和CAN控制器两部分,以仿顺序硬件设计方法设计报文处理流程,通过读写标志区实现多个定时器的并行处理;描述了CAN协议内部复杂运行状态,并通过仿顺序状态机实现CAN位定时机制。最后的仿真与实验证明了本设计的可行性和有效性,所设计的系统不仅具有CAN通信功能,而且具有实时网络管理功能。
OSEK network management(NM) system is an important mechanism which ensures the car network to work safely.The FPGA technology,with high speed parallel processing and rich logical resources,is used to build compact OSEK NM system for the high-end car CAN control system.In FPGA,it is divided into NM protocol stack and CAN controller.The design method of imitation sequence hardware is proposed for the message processing process,and the mechanism by reading and writing flag zone is used to implement the parallel processing of multiple timer.The complex running status of CAN protocol is described,and the bit timing mechanism of CAN is implemented by the imitation sequence state machine.Finally,the feasibility and effectiveness of design is proved by simulation and experiment.The system not only has the CAN communication function,but also has the real-time network management function.