| With the development of digital technology,some high performance DSP(DigitalSignal Processing),FPGA(Field Programmable Gate Array) begin to be used in data collectsystem,and greatly increase the data transform speed and data process speed..We design aNetwork adapter and Network device driver based on FPGA using the PCIE IP COREã€MAC IP CORE provided by XILINX,PHY chip of Marwell.Linux OS defines its ownNetwork device driver design framework and provide the whole protocol stack to support theNetwork device driver.After study the linux TCP/IP protocol stackã€PCI device driverã€Network device driverand linux kernel deeply,we put forward a design method which including the device driverloading moduleã€interrupt handling module〠data transform moduleã€device driverunloading module;define the receive buffer descriptorã€send buffer descriptorã€commandregisterã€interrupt register to communicate between the device driver and Networkadapter;add5receive bufferã€5send buffer and the interrupt interval time to ensure theperformance of the device driver in different network environment;finally we accomplishthe design of the Network device driver based on PCIE under Linux OS. After the test,thedevice driver can work with the Network adapter designed by project team very well,havingdata collecting and processing function. The whole Network system including the linuxTCP/IP protocol stackã€Network adapter and Network device driver can be connected to theNetwork very well. |