| Due to the intelligent development of motor vehicles,the electronic components on the on-board chip system are increasing,leading to the traditional on-board bus protocols CAN,LIN and MOST have been unable to meet their higher requirements for communication bandwidth,real-time and security.FlexRay is a digital bus developed to meet this growing demand.It has been optimized and improved in transmission rate,security,real-time,flexibility and other aspects.However,in China,the research in FlexRay bus field mainly focuses on the application level of message scheduling algorithm,and there is little research on hardware.Most of the FlexRay hardware products are developed by foreign companies.Therefore,the design of a communication controller based on FlexRay protocol is of great significance to reduce the cost to expand the application of FlexRay bus and promote the development of automotive electronic products in China.The purpose of this thesis is to design a FlexRay protocol based communication controller with configurable protocol parameters and AHB bus access.This communication controller supports FlexRay V2.1 protocol,supports dual channel,single channel transmission rate up to 10 Mbps,and can be integrated into the SOC that supports the AHB bus architecture.Firstly,This paper understands the research background and direction of FlexRay bus at home and abroad,and expounds the significance of this research;Secondly,the FlexRay bus protocol and its electrical specifications are analyzed;On this basis,referring to the existing independent FlexRay communication controller architecture,determine the design function and index,the design is divided into three parts,system interface area,interface buffer and FlexRay kernel.Then,complete the RTL code design of each module based on the Verilog hardware description language;Then,formulate the verification scheme,set the verification target,build the UVM verification platform,develop test cases according to the function point.the code coverage and function coverage of the design in this paper were verified to reach 95% and 100%,achieving the verification target;Finally,a test platform is built according to the classical FlexRay communication node architecture.The test platform is a point-to-point communication network based on FlexRay bus composed of a tested node 1 including SOPC chip and bus transceiver TJA1080 A,and a reference node 2 including MCU,interface conversion module,MFR4310 and TJA1080 A.After initializing the configuration and testing,then view the data printed by the serial port on the two-node PC,the results show that the Communication requirements can be realized based on the FlexRay protocol. |