The invention relates to an
Ethernet MAC module realization device and an
Ethernet MAC module realization method used for IEEE 1588v2 protocol. The
Ethernet MAC module realization device comprises aMAC receiving module and a MAC transmitting module. The MAC receiving module is used for receiving of all Ethernet messages, and is realized on an FPGA or an ASIC. The MAC transmitting module is for the transmitting of all Ethernet messages, and is also used to return the transmitting time stamps of the Ethernet messages to a
PTP protocol stack. The MAC transmitting module is formed by a softwareprogram and a hardware logic. The
software program of the MAC transmitting module is installed on a CPU or DSP platform, and is used for PTP time stamp related auxiliary computation and MAC part
control function. The hardware logic of the MAC transmitting module can be realized on the FPGA or the ASIC, and is used for PTP time stamp
processing, time stamp related part real-time computation, and
MAC layer protocol realization. Exchange between the MAC receiving module and the
PTP protocol stack, the exchange between the MAC transmitting module and the
PTP protocol stack, and the exchange between the
software program and the hardware logic of the MAC transmitting module are reduced, and the mutual exchange is required to wait.