| With the widespread use of network technology,the time synchronization capacity of network device becomes increasingly important.Ethernet technology is one of the fastest growing technologies in the industrial market.Because of its low cost,maturity and flexibility,it has become the mainstream technology in ground LAN.On the other hand,IEEE 1588 standard,a standard for a precision clock synchronization protocol for networked measurement and control systems,has reached the sub-microsecond synchronization accuracy.It has high performance on representativeness and openness.In this thesis,the current Ethernet time synchronization technology and IC technology development trends are presented.On this basis,combined with laboratory research project,the design and implementation of an Ethernet MAC layer controller that is MAC IP core supporting IEEE 1588 standard are proposed.The basic knowledge of Ethernet and IEEE 1588 standards is firstly introduced.Then the design scheme and architecture of the Ethernet MAC IP core that supports IEEE 1588 standard are given out.Verilog HDL is used to implement the RTL design of the functional modules,including the design of sending module,receiving module,PTP module and configuration module.Modelsim software is used for simulation to the main modules.After the process of simulation and synthesis,Ethernet MAC IP core is mapped to FPGA.A verification platform is built for the MAC IP core test.And then the test result analysis is given out.It is showed by the test and verification results that the designed MAC IP core has implemented full functions of Ethernet MAC layer and PTP.It works well when transmiting and receiving frames,and rarely goes wrong.The timestamp generated by it always has high accuracy and stability.The Ethernet MAC IP core that supports IEEE 1588 standard meets design requirments,and it can be used in actual scientific research project. |