Font Size: a A A

Research And Implementation Of Time Synchronization Method Based On FPGA

Posted on:2020-04-26Degree:MasterType:Thesis
Country:ChinaCandidate:X LiuFull Text:PDF
GTID:2518306554964979Subject:Master of Engineering
Abstract/Summary:PDF Full Text Request
With the continuous development of science and technology,distributed systems are more and more widely used in the fields of automation,measurement and control,etc.Time synchronization technology is a core technology in distributed systems.The accuracy of time synchronization directly determines the performance of the whole distributed system.Especially with the rapid development of industrial automation,military and aerospace industries,a higher standard for time synchronization accuracy has been proposed.The IEEE 1588 time synchronization protocol(called PTP)can meet the requirements of time synchronization accuracy in many industries.Therefore,the paper selects the high-precision network time synchronization method in IEEE1588 protocol as the research object,and develops a time synchronization system.The core function of the time synchronization system is designed by FPGA,which provides a certain reference value for future research and exploration.The content of this paper includes the following three aspects:First,the research background and significance of time synchronization technology are expounded,and the development status at home and abroad is explored.Then the overall structure,synchronization model,synchronization principle and synchronization algorithm of IEEE1588 protocol are studied,and the factors affecting time synchronization accuracy are analyzed.Second,based on the research of IEEE1588 protocol,a set of time synchronization system based on FPGA is designed.The design process of each core module in the system is emphasized,including master clock generation module,slave clock generation module,data packet protocol frame module,MAC/ PHY interface module,data capture module,system control module and delay module.An adaptive frequency compensation algorithm module is designed to improve the time synchronization accuracy for the instability of the crystal oscillator in this system.Finally,the core modules are simulated and verified by ISE and Modelsim,the simulation waveforms of each module are obtained and analyzed to determine its feasibility.Third,after determining the feasibility of each module,two independent XC6SLX16 FPGA development platforms were used to establish a hardware verification system.The master-slave clock data was transmitted through two FPGA development platforms to verify and test the developed time synchronization system.Chipscope is used to observe and collect data,observe the working state of the whole system,and record the synchronization of master clock and slave clock when setting different clock frequency offset.The experimental results show that the designed time synchronization system works stably,and the time synchronization accuracy is higher after being processed by the adaptive frequency compensation algorithm.Under the condition of setting different clock frequency offsets,the accuracy is about 80 ns,reaching the sub-microsecond level.The software simulation and hardware experiments shows that the time synchronization system developed by the subject realizes the time synchronization requirement of IEEE1588 protocol,and has higher accuracy and stability.The research results are of great significance to communication,industrial automation and other important fields,and have broad application prospects.
Keywords/Search Tags:Time Synchronization Technology, IEEE1588 Protocol, FPGA, Adaptive Frequency Compensation Algorithm
PDF Full Text Request
Related items