| With the rapid development of science and technology and the arrival of digital information age,the application of high-speed data acquisition card is increasingly common.At the same time, Linux operating system with its powerful performance, open source code and excellent stability is widely applied in embedded systems. As part of synthetic instrument is based on PowerPC and FPGA hardware environment, we use the Linux operatiing system to develop driver for PCIE high-speed data acquisition card,realize the acquisition system drivers and applications section.Before the program develop, should understand hardware architecture of high-speed data acquisition card firstly :used FPGA as the master module and memory controller MIG to achieve high-speed data read and write for DDR2 SDRAM, and on the basis of PCI-E IP core povided by the FPGA, designed a PCI-E interface module and the main mode of DMA transfer module. Then build a Linux system driven development environment on the host.On this paper chosen MPC85 xx target plate Linux system transplantation: Uboot transplantation, the Linux kernel transplantation and the construction of the root file system. And transplant tailoring Linux system is loaded into the target board debugging and improve, until the complete Linux system transplantation.with the deeply study on the basis of the principles of Linux device drivers and implementation, the paper combines with research of this topic, understanding PCIE device mounted in the drivers, on the basis of hardware performance take advantage of the related driver design method, design and implement PCIE high-speed data acquisition card driver(contain PCIE device driver and the acquisition card driver). accomplished the design and implementation of a large amount of data for the DMA transfer,the DMA tranfer is efficient mapping mechanism. At the same time providing a variety of transmission interface for the application layer to control hardware device. the statistics module is designed to confirm data amount and acquisition time after data collection,it is used to test the data transfer rate.Finally, developping the application used to test, debug for the loaded drivers, through actual testing of PCIE the high-speed data acquisition card maximum DMA transfer speed has achieved the expected design goal, and also been able to achieve higher data transfer rate by increasing the PCIE data link, the collected datat will be forwarded or stored directly in the hard drive by the use of Gigabit Etherne, increasing large number of information acquisited. |