| With the increasing scale and complexity of software system,it becomes more and more important and difficult to ensure its reliable operation.Especially in some key areas,such as aerospace and aviation,it is particularly important to ensure the reliability of software systems.As the key software for the correct flight of aircraft,flight control software is used to control and solve the position and attitude information feedback from sensor system to processor,and from control instructions to control the flight of aircraft.It has the characteristics of high reliability and high real-time,so ensuring its correct and reliable operation has always been the focus of research.The article is aimed at the features of flight control software,designed a versatile hardware-in-the-loop simulation test bench circuit.On the basis of analyzing and introducing the functional characteristics of flight control software and the development status of hardware-in-the-loop simulation test platform technology and comparing with the advantages of other test platforms,the test requirements of flight control software and the design index of test platform are studied,and the realization method of test platform using target DSP sub-card and FPGA carrier card is established.The FPGA is communicated with the host computer through the PCIE interface.The hardware of the test platform is specifically designed,and the EMC and cascade structure,layout and wiring,and power integrity in PCB design are analyzed and designed in detail.Detailed design of each module of the FPGA is carried out to simulate the external equipment to communicate with flight control software.In view of the non-real-time performance of Windows XP host computer,RTX plug-in is used as the lower computer to meet the requirements of strong real-time performance of the test platform.In order to ensure the integrity of PCIE high-speed signal,the signal integrity of PCIE differential signal line is analyzed,and the corresponding S-parameter model is established by ANSYS software to simulate the PCIE differential signal line.By comparing and analyzing the simulation diagrams,the PCIE differential signal line is optimized.The self-test software is designed to test the test platform.The test results show that the host computer sends frame data to the DSP through a specific channel,and correctly receives the feedback frame data.The test platform can meet the needs of testing the critical control software of the aircraft.At the same time,the test platform is applied to the testing of DSP system software for other related engineering fields. |