In recent years,with the continuous development of network technology,people increasingly require a lot to storage of network data.The storage area network(Storage Area Network,SAN)based on fiber channel protocol(Fiber Channel,FC)meets demands of high-speed data transmission and storage with the help of FC which has characteristics of low delay,high bandwidth and low bit error rate.FC switch is responsible for data transmission between FC storage devices and servers.It is the central hub of SAN,which means it is of great significance to its research and development.As a typical embedded device,development architecture of FC switch is embedded chip(including CPU)+ FPGA.Based on FPGA,the ZYNQ-7000 series of fully programmable SoC(System on Chip,SoC)integrates programmable logic(Programmable Logic,PL)and processing system(Processing System,PS)with dual core ARM cortex-A9 processor into a single chip.The advanced extensible interface(Advanced Extensible Interface,AXI)protocol is used to communicate between PS and PL,and the transmission bandwidth can reach gigabits.The appearance of ZYNQ-7000 makes the collaborative design between software and hardware more convenient,and greatly reduces the size of embedded devices.This paper designs the FC switch software based on ZYNQ-7000 series chips.The main work is as follows:1.This paper analyzes several schemes of data interaction between PL and PS,and finally chooses DMA mode of PL to complete FC data interaction,TCP protocol to complete TCP / IP data interaction,and completes the design of hardware in Vivado software.2.The driver which achieves FC data receiving and sending is designed in PS end.The driver is based on Linux operating system,which completes data interaction with PL end downward and upper processing module upward.3.The protocol processing module is designed to analyze the TCP / IP protocol and FC protocol,so that the switch software can correctly receive and analyze the TCP data and FC data and complete the basic functions such as switch login,and pass data analyzed to the upper application to process.4.The management module based on serial port,network port and FC port is designed to enable the upper computer to query and configure various parameters of the switch.5.The upper computer software and FC analyzer are used to test the functions of switch software,and the test results meet expectations.The physical size and power consumption of FC switch based on PowerPC + FPGA architecture and FC switch based on ZYNQ are compared and analyzed to prove the advantages of FC switch based on ZYNQ. |