| With the development of information processing technology,the embedded electronic information system has higher and higher requirements for the computing power of the embedded platform,and heterogeneous computing is gradually applied to the embedded platform.Heterogeneous computing platforms can assign different types of tasks to different types of processing cores for processing,thus providing a more flexible and efficient processing mechanism for different application requirements.The data transmission bandwidth and the real-time processing of command processing among the subsystems inside the platform are the key factors to ensure system performance.Based on the embedded "x86 CPU+PowerPC+FPGA" heterogeneous platform,this paper designs a set of device driver and data transmission software based on real-time operating system,which realizes the collaborative work and high-speed data transmission between subsystems in heterogeneous platforms.This paper first introduces the hardware platform architecture of the embedded heterogeneous system,including the structure and function of each hardware module,and the PCIe bus connection between modules.On this basis,the overall design scheme of device driver and data transmission software is proposed.The scheme includes three parts:a driver layer,a data transmission layer,and an application layer.At the driver layer,the initialization program of the embedded device,the interrupt response and command status management service program,and the communication protocol with the PCIe RC terminal device are designed and implemented..At the data transmission layer,the"producer-consumer" mode is designed and implemented.And the upstream and downstream data transmission modules of the FIFO queue;at the application layer,the real-time response to various commands of the PCIe RC terminal device and the reasonable scheduling of the local tasks and resources are designed and implemented.Finally,the whole system is tested and verified.After a long period of extensive testing,the results show that each functional module works stably and efficiently.In terms of data transmission,both uplink and downlink data transmission speeds reach 1.63 GB/s,and the system can operate stably under highly parallel processing conditions,and all test results have reached the expected goals. |