CN113342733A - EthPMC protocol processor and processing method thereof - Google Patents
EthPMC protocol processor and processing method thereof Download PDFInfo
- Publication number
- CN113342733A CN113342733A CN202110630004.8A CN202110630004A CN113342733A CN 113342733 A CN113342733 A CN 113342733A CN 202110630004 A CN202110630004 A CN 202110630004A CN 113342733 A CN113342733 A CN 113342733A
- Authority
- CN
- China
- Prior art keywords
- module
- interface
- downlink
- microprocessor
- rmii
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/76—Architectures of general purpose stored program computers
- G06F15/78—Architectures of general purpose stored program computers comprising a single central processing unit
- G06F15/7807—System on chip, i.e. computer system on a single chip; System in package, i.e. computer system on one or more chips in a single package
- G06F15/7817—Specially adapted for signal processing, e.g. Harvard architectures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/76—Architectures of general purpose stored program computers
- G06F15/78—Architectures of general purpose stored program computers comprising a single central processing unit
- G06F15/7839—Architectures of general purpose stored program computers comprising a single central processing unit with memory
- G06F15/7842—Architectures of general purpose stored program computers comprising a single central processing unit with memory on one IC chip (single chip microcontrollers)
- G06F15/7846—On-chip cache and off-chip main memory
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Communication Control (AREA)
Abstract
The invention discloses an EthPMC protocol processor and a processing method thereof, comprising a downlink processing unit and an uplink processing unit; the downlink processing unit comprises a write cache module, a downlink frame cache module, a downlink selector module, a verification generation module, a merging module, an RMII sending interface, an RMII receiving interface and a microprocessor write interface; the uplink processing unit comprises a reading buffer module, an uplink frame buffer module, a check and check module, a merging module, an RMII receiving interface, an RMII sending interface and a microprocessor reading interface; the invention uses Ethernet transmission, has the advantage of high communication rate, uses Ethernet verification, has the advantage of high fault tolerance, adds a cache function and has the advantage of low processing delay.
Description
Technical Field
The invention belongs to the technical field of industrial Ethernet, and particularly relates to an EthPMC protocol processor and a processing method thereof.
Background
The industrial Ethernet is a scheme for realizing a field bus based on the Ethernet technology, is applied to an industrial control neighborhood, is compatible with the traditional Ethernet technology standard IEEE802.3/802.3u, follows all or part of communication protocols of an ISO/OSI open system interconnection reference model, and has stronger real-time property, reliability, anti-interference property and interoperability in order to be applied to a harsh industrial environment.
The traditional protocol processor has the defects of low communication rate, low fault tolerance, high processing delay and the like.
Disclosure of Invention
The present invention provides an EthPMC protocol processor and a processing method thereof, which have the advantages of high communication rate, high fault tolerance and low processing delay.
In order to achieve the technical purpose, the technical scheme adopted by the invention is as follows:
an EthPMC protocol processor comprises a downlink processing unit and an uplink processing unit;
the downlink processing unit comprises a write cache module, a downlink frame cache module, a downlink selector module, a verification generation module, a merging module, an RMII sending interface, an RMII receiving interface and a microprocessor write interface; the write cache module is connected with the microprocessor through a microprocessor write interface, the downlink frame cache module is connected with the preceding-stage Ethernet physical chip through an RMII receiving interface, the write cache module and the downlink frame cache module are both connected with the downlink selector module, the downlink selector module is simultaneously connected with the microprocessor write interface, the check generation module and the merging module, the check generation module is connected with the merging module, and the merging module is connected with the succeeding-stage Ethernet physical chip through an RMII sending interface;
the uplink processing unit comprises a reading buffer module, an uplink frame buffer module, a check and check module, a merging module, an RMII receiving interface, an RMII sending interface and a microprocessor reading interface; the uplink frame buffer module is connected with the rear-stage Ethernet physical chip through an RMII receiving interface, the reading buffer module is connected with the microprocessor through a microprocessor reading interface, the uplink frame buffer module is simultaneously connected with the checking and checking module and the merging module, the checking and checking module is simultaneously connected with the merging module and the microprocessor reading interface, and the merging module is connected with the front-stage Ethernet physical chip through an RMII sending interface.
In order to achieve the technical purpose, the invention adopts another technical scheme as follows:
a processing method of an EthPMC protocol processor comprises the following steps:
the processing method of the downlink processing unit comprises the following steps: the preceding-stage Ethernet physical chip sends a downlink frame to an RMII receiving interface, the downlink frame is written into a downlink frame cache module through the RMII receiving interface, and the microprocessor writes data into a write cache module through a microprocessor write interface; the microprocessor writes parameters into a downlink selector module through a microprocessor writing interface, the downlink selector module selects whether data is read from a writing cache module or a downlink frame cache module according to the parameters, the downlink selector module outputs downlink frame data, a check generation module generates a check code according to the downlink frame data, the downlink frame data and the check code are combined through a combination module to obtain a complete EthPMC downlink frame, and the EthPMC downlink frame is output to a rear-stage Ethernet physical chip through an RMII sending interface;
the processing method of the downlink processing unit comprises the following steps: the method comprises the steps that an uplink frame is sent to an RMII receiving interface by a rear-stage Ethernet physical chip, the uplink frame is written into an uplink frame caching module and a reading caching module through the RMII receiving interface, the reading caching module reads data in a microprocessor through a microprocessor reading interface, the uplink frame caching module outputs uplink frame data, the uplink frame data are checked by a checking and checking module to obtain a checking result and a checking code, the checking result is read by the microprocessor through the microprocessor reading interface, the checking code and the uplink frame data are combined through a combining module to obtain a complete EthPMC uplink frame, and the EthPMC uplink frame is output to a front-stage Ethernet physical chip through the RMII sending interface.
As the further improved technical scheme of the invention, the signals processed by the writing interface of the microprocessor comprise writing effective signals, writing address signals and writing data signals; the signals processed by the microprocessor read interface comprise a read valid signal, a read address signal and a read data signal.
The invention has the beneficial effects that:
the invention realizes the protocol processor structure of the data link layer in the definition of the industrial Ethernet EthPMC and also provides a corresponding data processing method. Compared with the traditional bus protocol processor, the Ethernet transmission is used, the advantage of high communication rate is achieved, the Ethernet verification is used, the advantage of high fault tolerance is achieved, the cache function is added, and the advantage of low processing delay is achieved.
Drawings
FIG. 1 is a schematic view of the structure of the present invention.
Fig. 2 is a diagram of a data processing procedure of a downlink processing unit according to the present invention.
Fig. 3 is a data processing process diagram of an uplink processing unit according to the present invention.
Fig. 4 is a schematic diagram of signal transmission between the RMII receiving interface and the ethernet physical chip according to the present invention.
Fig. 5 is a schematic diagram of signal transmission between an RMII transmission interface and an ethernet physical chip according to the present invention.
Fig. 6 is a schematic diagram of signal transmission between an EthPMC protocol processor and a microprocessor according to the present invention.
Detailed Description
The following further description of embodiments of the invention is made with reference to the accompanying drawings:
an EthPMC protocol processor comprises a downlink processing unit and an uplink processing unit.
As shown in fig. 1 and fig. 2, the downlink processing unit includes a write buffer module, a downlink frame buffer module, a downlink selector module, a verification generation module, a merging module, an RMII sending interface, an RMII receiving interface, and a microprocessor write interface; the write cache module is connected with the microprocessor through a microprocessor write interface, the downlink frame cache module is connected with the preceding-stage Ethernet physical chip through an RMII receiving interface, the write cache module and the downlink frame cache module are both connected with the downlink selector module, the downlink selector module is simultaneously connected with the microprocessor write interface, the check generation module and the merging module, the check generation module is connected with the merging module, and the merging module is connected with the subsequent-stage Ethernet physical chip through an RMII sending interface.
The downlink data stream is from left to right as shown in the structure of fig. 2, the downlink frame is written into the downlink frame buffer module through the RMII receiving interface, and the microprocessor writes the data into the write buffer module through the microprocessor writing interface; the microprocessor writes a data offset parameter and a data size parameter into the downlink selector module through the microprocessor write interface, the downlink selector module selects whether data is read from the write cache module or the downlink frame cache module according to the parameters, the downlink selector module outputs downlink frame data and verifies and generates a verification code according to the downlink frame data, the downlink frame data and the verification code are combined to obtain a complete EthPMC downlink frame, and the complete EthPMC downlink frame is output through the RMII sending interface.
As shown in fig. 1 and fig. 3, the uplink processing unit includes a read buffer module, an uplink frame buffer module, a check module, a merge module, an RMII receiving interface, an RMII sending interface, and a microprocessor read interface; the uplink frame buffer module is connected with the rear-stage Ethernet physical chip through an RMII receiving interface, the reading buffer module is connected with the microprocessor through a microprocessor reading interface, the uplink frame buffer module is simultaneously connected with the checking and checking module and the merging module, the checking and checking module is simultaneously connected with the merging module and the microprocessor reading interface, and the merging module is connected with the front-stage Ethernet physical chip through an RMII sending interface.
According to the right-to-left in fig. 3, an uplink data stream is written into an uplink frame buffer module and a read buffer module through an RMII receiving interface, data in the read buffer module can be directly read by a microprocessor through a microprocessor read interface, data in the uplink frame buffer module is output to obtain uplink frame data, a check result and a check code are obtained through check of a check module, the check result is read by the microprocessor through the microprocessor read interface, the check code and the uplink frame data are combined through a combining module to obtain a complete EthPMC uplink frame, and the EthPMC uplink frame is output through an RMII sending interface.
The RMII is collectively referred to as a simplified media independent interface, defined in the IEEE-802.3u standard.
As shown in FIG. 4, the RMII receive interface includes a receive data valid signal CRS _ DV, receive data signals RXD [1:0] and a reference clock signal REF _ CLK. The received data valid signal CRS _ DV and the received data signal RXD [1:0] are output to the EthPMC protocol processor by an Ethernet physical chip (namely a front-stage Ethernet physical chip or a rear-stage Ethernet physical chip, which is called the Ethernet physical chip for short). The reference clock signal REF _ CLK is provided by an external clock source and is output to the EthPMC protocol processor and the Ethernet physical chip, and the frequency of the reference clock signal REF _ CLK is 50 MHz.
As shown in FIG. 5, the RMII transmit interface includes transmit data valid information TX _ EN, transmit data signals TXD [1:0], and a reference clock signal REF _ CLK. The transmission data valid information TX _ EN and the transmission data signal TXD [1:0] are output to an ethernet physical chip (i.e., a front-stage ethernet physical chip or a rear-stage ethernet physical chip, which is referred to as an ethernet physical chip for short) by the EthPMC protocol processor. The reference clock signal REF _ CLK is provided by an external clock source and is output to the EthPMC protocol processor and the Ethernet physical chip, and the frequency of the reference clock signal REF _ CLK is 50 MHz.
The microprocessor interface is an interface between the microprocessor and the EthPMC protocol processor and comprises a microprocessor read interface and a microprocessor write interface.
As shown in fig. 6, the microprocessor write interface includes a write valid signal, a write address signal and a write data signal, and the write interface signals are all output by the microprocessor to the EthPMC protocol processor.
As shown in fig. 6, the microprocessor read interface includes a read valid signal, a read address signal and a read data signal, wherein the read valid signal and the read address signal are output to the EthPMC protocol processor by the microprocessor, and the read data signal is returned to the microprocessor by the EthPMC protocol processor.
The embodiment also provides a processing method of the EthPMC protocol processor, which includes a downlink processing method of the downlink processing unit and an uplink processing method of the uplink processing unit.
The processing method of the downlink processing unit comprises the following steps:
the preceding-stage Ethernet physical chip sends a downlink frame to an RMII receiving interface, the downlink frame is written into a downlink frame cache module through the RMII receiving interface, and the microprocessor writes data into a write cache module through a microprocessor write interface; the microprocessor writes parameters into a downlink selector module through a microprocessor writing interface, the downlink selector module selects whether data is read from a writing cache module or a downlink frame cache module according to the parameters, the downlink selector module outputs downlink frame data, a check generation module generates a check code according to the downlink frame data, the downlink frame data and the check code are combined through a combination module to obtain a complete EthPMC downlink frame, and the EthPMC downlink frame is output to a rear-stage Ethernet physical chip through a RMII sending interface.
The processing method of the downlink processing unit comprises the following steps:
the method comprises the steps that an uplink frame is sent to an RMII receiving interface by a rear-stage Ethernet physical chip, the uplink frame is written into an uplink frame caching module and a reading caching module through the RMII receiving interface, the reading caching module reads data in a microprocessor through a microprocessor reading interface, the uplink frame caching module outputs uplink frame data, the uplink frame data are checked by a checking and checking module to obtain a checking result and a checking code, the checking result is read by the microprocessor through the microprocessor reading interface, the checking code and the uplink frame data are combined through a combining module to obtain a complete EthPMC uplink frame, and the EthPMC uplink frame is output to a front-stage Ethernet physical chip through the RMII sending interface.
The embodiment realizes the protocol processor structure of the data link layer in the industrial Ethernet EthPMC definition and also provides a corresponding data processing method. Compared with the traditional bus protocol processor, the Ethernet transmission is used, the advantage of high communication rate is achieved, the Ethernet verification is used, the advantage of high fault tolerance is achieved, the cache function is added, and the advantage of low processing delay is achieved.
The scope of the present invention includes, but is not limited to, the above embodiments, and the present invention is defined by the appended claims, and any alterations, modifications, and improvements that may occur to those skilled in the art are all within the scope of the present invention.
Claims (3)
1. An EthPMC protocol processor, comprising: comprises a downlink processing unit and an uplink processing unit;
the downlink processing unit comprises a write cache module, a downlink frame cache module, a downlink selector module, a verification generation module, a merging module, an RMII sending interface, an RMII receiving interface and a microprocessor write interface; the write cache module is connected with the microprocessor through a microprocessor write interface, the downlink frame cache module is connected with the preceding-stage Ethernet physical chip through an RMII receiving interface, the write cache module and the downlink frame cache module are both connected with the downlink selector module, the downlink selector module is simultaneously connected with the microprocessor write interface, the check generation module and the merging module, the check generation module is connected with the merging module, and the merging module is connected with the succeeding-stage Ethernet physical chip through an RMII sending interface;
the uplink processing unit comprises a reading buffer module, an uplink frame buffer module, a check and check module, a merging module, an RMII receiving interface, an RMII sending interface and a microprocessor reading interface; the uplink frame buffer module is connected with the rear-stage Ethernet physical chip through an RMII receiving interface, the reading buffer module is connected with the microprocessor through a microprocessor reading interface, the uplink frame buffer module is simultaneously connected with the checking and checking module and the merging module, the checking and checking module is simultaneously connected with the merging module and the microprocessor reading interface, and the merging module is connected with the front-stage Ethernet physical chip through an RMII sending interface.
2. A method of processing an EthPMC protocol processor according to claim 1, comprising:
the processing method of the downlink processing unit comprises the following steps:
the preceding-stage Ethernet physical chip sends a downlink frame to an RMII receiving interface, the downlink frame is written into a downlink frame cache module through the RMII receiving interface, and the microprocessor writes data into a write cache module through a microprocessor write interface; the microprocessor writes parameters into a downlink selector module through a microprocessor writing interface, the downlink selector module selects whether data is read from a writing cache module or a downlink frame cache module according to the parameters, the downlink selector module outputs downlink frame data, a check generation module generates a check code according to the downlink frame data, the downlink frame data and the check code are combined through a combination module to obtain a complete EthPMC downlink frame, and the EthPMC downlink frame is output to a rear-stage Ethernet physical chip through an RMII sending interface;
the processing method of the downlink processing unit comprises the following steps:
the method comprises the steps that an uplink frame is sent to an RMII receiving interface by a rear-stage Ethernet physical chip, the uplink frame is written into an uplink frame caching module and a reading caching module through the RMII receiving interface, the reading caching module reads data in a microprocessor through a microprocessor reading interface, the uplink frame caching module outputs uplink frame data, the uplink frame data are checked by a checking and checking module to obtain a checking result and a checking code, the checking result is read by the microprocessor through the microprocessor reading interface, the checking code and the uplink frame data are combined through a combining module to obtain a complete EthPMC uplink frame, and the EthPMC uplink frame is output to a front-stage Ethernet physical chip through the RMII sending interface.
3. The EthPMC protocol processor processing method according to claim 2, wherein:
the signals processed by the microprocessor writing interface comprise writing effective signals, writing address signals and writing data signals;
the signals processed by the microprocessor read interface comprise a read valid signal, a read address signal and a read data signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110630004.8A CN113342733A (en) | 2021-06-07 | 2021-06-07 | EthPMC protocol processor and processing method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110630004.8A CN113342733A (en) | 2021-06-07 | 2021-06-07 | EthPMC protocol processor and processing method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113342733A true CN113342733A (en) | 2021-09-03 |
Family
ID=77474351
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110630004.8A Pending CN113342733A (en) | 2021-06-07 | 2021-06-07 | EthPMC protocol processor and processing method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113342733A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113238537A (en) * | 2021-06-07 | 2021-08-10 | 宁波菲仕技术股份有限公司 | High-speed industrial field bus based on Ethernet and data transmission method thereof |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050114473A1 (en) * | 2003-10-30 | 2005-05-26 | Ravid Guy | FPGA boot-up over a network |
CN1764182A (en) * | 2004-10-22 | 2006-04-26 | 华为技术有限公司 | Multi protocol processing chip and multi protocol processing apparatus |
CN101917316A (en) * | 2010-09-13 | 2010-12-15 | 北京航空航天大学 | Communication method and device for high-speed real-time industrial Ethernet |
CN102611592A (en) * | 2011-11-25 | 2012-07-25 | 中国西电电气股份有限公司 | Ethernet RMII (reduced medium independent interface) based on FPGA (field programmable gate array) and realization method |
CN103916252A (en) * | 2014-04-18 | 2014-07-09 | 岳阳巅峰电子科技有限责任公司 | High-bandwidth Ethernet IP core based on FPGA |
CN107395396A (en) * | 2017-06-22 | 2017-11-24 | 中国科学院西安光学精密机械研究所 | Redundant double-network-port configurable Ethernet IP core based on FPGA |
CN211207146U (en) * | 2020-01-14 | 2020-08-07 | 广东工业大学 | EtherCAT main station system with double data channels |
CN112636931A (en) * | 2020-12-29 | 2021-04-09 | 广东高云半导体科技股份有限公司 | Ethernet interface circuit |
-
2021
- 2021-06-07 CN CN202110630004.8A patent/CN113342733A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050114473A1 (en) * | 2003-10-30 | 2005-05-26 | Ravid Guy | FPGA boot-up over a network |
CN1764182A (en) * | 2004-10-22 | 2006-04-26 | 华为技术有限公司 | Multi protocol processing chip and multi protocol processing apparatus |
CN101917316A (en) * | 2010-09-13 | 2010-12-15 | 北京航空航天大学 | Communication method and device for high-speed real-time industrial Ethernet |
CN102611592A (en) * | 2011-11-25 | 2012-07-25 | 中国西电电气股份有限公司 | Ethernet RMII (reduced medium independent interface) based on FPGA (field programmable gate array) and realization method |
CN103916252A (en) * | 2014-04-18 | 2014-07-09 | 岳阳巅峰电子科技有限责任公司 | High-bandwidth Ethernet IP core based on FPGA |
CN107395396A (en) * | 2017-06-22 | 2017-11-24 | 中国科学院西安光学精密机械研究所 | Redundant double-network-port configurable Ethernet IP core based on FPGA |
CN211207146U (en) * | 2020-01-14 | 2020-08-07 | 广东工业大学 | EtherCAT main station system with double data channels |
CN112636931A (en) * | 2020-12-29 | 2021-04-09 | 广东高云半导体科技股份有限公司 | Ethernet interface circuit |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113238537A (en) * | 2021-06-07 | 2021-08-10 | 宁波菲仕技术股份有限公司 | High-speed industrial field bus based on Ethernet and data transmission method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100437541C (en) | Method for realizing serial peripheral unit interface | |
CN101866328B (en) | Automatically accessed serial bus read/write control method | |
CN114610669B (en) | Method and system for realizing clock synchronization calibration in multi-channel serial port communication | |
CN104639410A (en) | Design method of field bus optical fiber communication interface | |
CN106598889A (en) | SATA (Serial Advanced Technology Attachment) master controller based on FPGA (Field Programmable Gate Array) sandwich plate | |
CN111211863B (en) | MAC transmitting terminal, MAC receiving terminal and circuit, FPGA chip and data transmission system | |
CN112118042B (en) | A data transmission method and device based on an on-board optical fiber interface | |
CN110471880A (en) | A kind of ARINC429 bus module and its data transmission method for supporting No. Label screening based on FPGA | |
CN103024042A (en) | Avionics full duplex switched Ethernet (AFDX) terminal protocol stack, and data receiving and sending method thereof | |
CN113342733A (en) | EthPMC protocol processor and processing method thereof | |
CN109710550B (en) | Double-cache-based RS422 data communication system with unfixed frame length | |
CN113765582A (en) | System and method for realizing one-way transmission data of domestic-design redundant optical port | |
CN108462620B (en) | A Gigabit SpaceWire Bus System | |
CN111352887B (en) | PCI bus-to-configurable frame length serial bus adaptation and transmission method | |
CN115866081A (en) | Industrial Ethernet protocol conversion method based on SOC | |
CN111666248A (en) | RS422 serial port communication control system and method based on FPGA | |
CN201378851Y (en) | A CCD image data acquisition device | |
CN107231319A (en) | A kind of gigabit networking control circuit based on AMBA ahb bus | |
CN117931720B (en) | Serial bus and data interaction method based on improved local bus structure | |
CN110058706B (en) | PS2 controller suitable for long-distance transmission and implementation method | |
CN118250439A (en) | Image acquisition card for converting multichannel optical fiber into MIPI D-PHY | |
CN112631809B (en) | FPGA-based periodic message receiving and caching method | |
CN103347023B (en) | A kind of HDLC communication controller under industrial field environment | |
CN112543158A (en) | Serdes architecture for 64B/66B conversion | |
CN114201436B (en) | Lvds data communication implementation method and communication device based on axi bus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210903 |