Communications chip and data processing method

The communication chip's innovative design with synchronization and alignment modules addresses flexibility and resource efficiency issues, enabling support for diverse speed settings and reducing costs.

JP7561276B2Active Publication Date: 2024-10-03SANECHIPS TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2023526632
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-11-06
Filing Date
2021-11-04
Publication Date
2024-10-03
Estimated Expiration
2041-11-04

AI Technical Summary

Technical Problem

Existing communication chips lack flexibility in supporting multiple protocols and speeds, leading to increased research, development, and usage costs due to inefficient data alignment methods.

Method used

A communication chip design incorporating multiple synchronization modules, cache modules with FIFOs, and alignment modules that align and merge synchronized data from multiple lanes, allowing for various speed settings and reducing logical resource occupation.

Benefits of technology

The solution enables flexible use of the communication chip across different speed settings, optimizing structure and reducing resource waste, while supporting multiple speed configurations and protocols.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007561276000001
    Figure 0007561276000001
  • Figure 0007561276000002
    Figure 0007561276000002
  • Figure 0007561276000003
    Figure 0007561276000003
Patent Text Reader

Abstract

According to an embodiment of the present application, there is provided a communications chip and a data processing method, the communications chip including a plurality of synchronization modules, a set of cache modules, and a plurality of alignment modules, each of the synchronization modules being configured to receive data of a corresponding lane, synchronize the received data, and store the synchronized data in a cache module, the cache module including a plurality of first-in-first-out queues FIFOs being configured to cache the synchronized data output from the corresponding synchronization module, and at least one alignment module of the plurality of alignment modules being configured to align the synchronized data of all lanes in the cache module, and merge and output the aligned data.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application is filed based on a Chinese patent application bearing application number "202011233275.1" and filed on November 6, 2020, and claims priority to that Chinese patent application, the entire text of which is incorporated herein by reference.

[0002] The present application relates to the field of communications, and in particular to communications chips and data processing methods. [Background technology]

[0003] With the development of 5G communication technology, high-speed and high-quality data transmission has become a key consideration in chip design. When the required network speed exceeds the carrying capacity of the physical device, multi-lane parallel transmission has become a trend to realize high-speed interface.

[0004] In order to ensure the quality of data transmission, the Physical Coding Sublayer (PCS) of communication chips usually chooses the Reed-Solomon Forward Error Correction (RS-FEC) coding method when transmitting data at high speed. In RS-FEC, the sender needs to insert an alignment mark (AM) into the data, and after the data is transmitted through the optical fiber or electrical cable, the receiver looks for the AM in the data stream for data synchronization alignment. Summary of the Invention

[0005] According to an embodiment of the present application, there is provided a communication chip, which includes a plurality of synchronization modules, a set of cache modules, and a plurality of alignment modules.

[0006] The synchronization module is configured to receive data of a corresponding lane, synchronize the received data, and store the synchronized data in a cache module.

[0007] The cache module includes a plurality of first-in, first-out queues. is The FIFO is configured to cache the synchronized data output from a corresponding synchronization module.

[0008] The alignment module is configured to align synchronized data of corresponding lanes in the cache module, and merge and output the aligned data. 、 the number of said synchronization modules is eight, the number of said alignment modules is seven, and the number of said FIFOs is eight; the plurality of alignment modules includes four first alignment modules, two second alignment modules, and one third alignment module; The first alignment module is configured to align the synchronized data of the two lanes cached in the two FIFOs correspondingly, and merge and output the synchronized data of the two lanes; The second alignment module is configured to align the synchronized data of the four lanes cached by the four FIFOs, and merge and output the synchronized data of the four lanes; The third alignment module is configured to align the synchronized data of the eight lanes cached by the eight FIFOs, and merge and output the synchronized data of the eight lanes. is.

[0009] According to an embodiment of the present application, there is provided a data processing method. Data Processing The method is applied to a communication chip provided by the present application, Data Processing The method is: receiving, by each synchronization module, data on a corresponding lane, synchronizing the received data, and storing the synchronized data in a cache module; In the cache module Each F Cache the synchronized data output from the corresponding synchronization module by the IFO; At least one alignment module of the plurality of alignment modules Upstream of the alignment module aligning the synchronized data of all lanes in the cache module; At a receiving side downstream of the alignment module, Merge and output the aligned data. 、 transmitting, by the synchronization module, synchronization status information and lane markings to an alignment module corresponding to the downstream receiver's set speed; When the cache module has cached the synchronized data of all lanes of the alignment module corresponding to the set speed, sending a notification message to the alignment module corresponding to the set speed; Including, aligning the synchronized data of all lanes in the cache module and merging and outputting the aligned data; When the synchronization state information and the notification message are received, the synchronized data of the corresponding lane cached in the FIFO in the cache module is read, and the read data is aligned based on the lane mark before being output. Includes. [Brief description of the drawings]

[0010] [Figure 1] 1 is a structural schematic diagram of a communication chip provided by an embodiment of the present application; [Diagram 2] 4 is a flowchart of a data processing method provided by an embodiment of the present application; [Diagram 3] FIG. 1 is a schematic diagram of data flow at a set rate provided by an embodiment of the present application. [Figure 4] FIG. 2 is a second schematic diagram of data flow at a set rate provided by an embodiment of the present application. [Diagram 5] FIG. 3 is a third schematic diagram of data flow at a set rate provided by an embodiment of the present application. [Figure 6] FIG. 4 is a fourth schematic diagram of data flow at a set rate provided by an embodiment of the present application. [Figure 7] FIG. 5 is a fifth schematic diagram of data flow at a set rate provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] In order to ensure the quality of data transmission, the Physical Coding Sublayer (PCS) of communication chips usually selects the Reed-Solomon Forward Error Correction (RS-FEC) coding method when transmitting data at high speed. In RS-FEC, the sender needs to insert a synchronization alignment mark (AM) into the data, and after the data is transmitted through the optical fiber or electrical cable, the receiver looks for the AM in the data stream for data synchronization alignment.

[0012] The synchronization alignment method for data received by the communications chip cannot accommodate multiple protocols and speeds, which makes the use of the communications chip inflexible and significantly increases the research, development and operation costs of the communications chip.

[0013] According to the embodiments of the present application, a communication chip and a data processing method are provided that can realize the data alignment demands of various speed setting combinations, reduce the occupation and waste of logic resources, and realize structure optimization.

[0014] According to the technical solution provided by the embodiments of the present application, a plurality of synchronization modules may be included, a set of cache modules may include a plurality of FIFOs, the FIFOs may cache the synchronized data output by the corresponding synchronization modules, and the at least one alignment module may align and merge the synchronized data of all lanes cached in the at least one FIFO in the cache module, thereby realizing the data alignment needs of various speed setting combinations by the plurality of FIFOs, thereby reducing the occupation and waste of logical resources, and realizing structural optimization.

[0015] FIG. 1 is a structural schematic diagram of a communication chip provided by the present application, which includes a physical coding sublayer (PCS) and supports an RS-FEC configuration environment.

[0016] As shown in FIG. 1, the communication chip provided by the present application includes a number of synchronization modules (lsync), a set of cache modules (al_fifo_8), and a number of alignment modules (including align_2, align_4, align_8).

[0017] The synchronization module is configured to receive data of a corresponding lane, synchronize the received data, and store the synchronized data in a cache module, the cache module includes a plurality of first-in-first-out queues FIFOs, the FIFOs are configured to cache the synchronized data output from the corresponding synchronization module, and the alignment module is configured to align the synchronized data of the corresponding lane in the cache module, and merge-output the aligned data, where the merge-output means merging and then outputting.

[0018] In one exemplary method, the number of synchronization modules is eight, the number of alignment modules is seven, and the number of FIFOs is eight, and the cache module (al_fifo_8) can include eight FIFOs, which are FIFO_0, FIFO_1, FIFO_2, FIFO_3, FIFO_4, FIFO_5, FIFO_6, and FIFO_7, as shown in Fig. 1. The synchronized data output from the multiple synchronization modules is cached in the FIFOs in sequence, and the synchronization modules and the FIFOs can have a one-to-one correspondence.

[0019] In addition, the number of synchronization modules and the number of FIFOs may be the same, or the number of synchronization modules and the number of FIFOs may be different, which can be set according to actual needs. The number of alignment modules can also be different.

[0020] In one exemplary method, the data output rates of the multiple alignment modules are not exactly the same, in particular, the multiple alignment modules do not support exactly the same data sizes per output, or the data of the multiple alignment modules do not support exactly the same data.

[0021] In one exemplary method, the multiple alignment modules include four first alignment modules (align_2), two second alignment modules (align_4), and one third alignment module (align_8).

[0022] The first alignment module is configured to align synchronized data of two lanes cached in two FIFOs correspondingly, and merge and output the synchronized data of the two lanes.

[0023] The second alignment module is configured to align the synchronized data of the four lanes cached correspondingly in the four FIFOs, and merge and output the synchronized data of the four lanes.

[0024] The third alignment module is configured to align the synchronized data of the eight lanes cached correspondingly in the eight FIFOs, and merge and output the synchronized data of the eight lanes.

[0025] Specifically, as shown in FIG. 1, the synchronization module (lsync) may be a single-lane synchronization module, directionIt may be a synchronous state machine that completes a lane in error correction FEC mode, and supports all Ethernet speeds. The first alignment module (align_2) may be a two lane data alignment module, with a completion speed of 50GE (gigabit ethernet), and may be an alignment state machine for two FEC lanes, and can complete a merging function of a data type (symbol) on two FEC lanes. The second alignment module (align_4) may be a four lane data alignment module, with a completion speed of 100GE, and may be an alignment state machine for four FEC lanes, and can complete a merging function of a symbol on four FEC lanes. The third alignment module (align_8) may be an eight lane data alignment module, with a completion speed of 200GE, and may be an alignment state machine for eight FEC lanes, and can complete a merging function of a symbol on eight FEC lanes.

[0026] In the embodiment of the present application, the data source may be output data after RS-FEC coding from the PCS transmitting side, which is data divided into N (which may be 1 to 8) ways according to different FEC lanes, that is, data on N lanes. If the data transmission speed is 25GE, data of one FEC lane is included, and if the data transmission speed is 50GE, data of two FEC lanes is included. speed If the data transmission speed is 100GE, it contains data for four FEC lanes, and if the data transmission speed is 200GE, it contains data for eight FEC lanes.

[0027] The process of data processing by the communication chip provided in this application is as follows.

[0028] As shown in FIG. 1, the synchronization module performs data synchronization, and the input data on N lanes, i.e., the input data of N ways, passes through the corresponding synchronization module to complete the single FEC lane synchronization process of the data of each N way. The specific synchronization process is to use the alignment mark (AM) generated at a fixed period in the PCS protocol and carried in the PCS processing data stream during transmission to query the alignment mark in the data, delete the data before the alignment mark, and make the alignment mark the boundary of the transmission data. For details, refer to IEEE 802.3-2018 clauses 82, 91, 108, 119, 134, etc. After the synchronization module realizes the synchronization of the data of the corresponding lane, it outputs the synchronization signal (carrying synchronization state information) and the lane mark (FEC lane number) to the alignment module corresponding to the set speed, and passes the synchronized data to the cache module.

[0029] Cache module deskew: The cache module includes eight FIFOs, and the data after synchronization of the N-way (or 8-way) FEC lane is directly written to the corresponding FIFO. The read and clear operations in each FIFO can be controlled by the downstream alignment module (the first alignment module, the second alignment module, or the third alignment module).

[0030] The alignment module performs data alignment, and depending on the set speed of the port, the first alignment module (align_2), the second alignment module (align_4), or the third alignment module (align_8) realizes data alignment of multiple FEC lanes by controlling the read and clear operations of the upstream FIFOs. Specifically, when the synchronized data of all lanes corresponding to the set speed have already been cached in the N FIFOs in the cache module, a notification message is sent to the alignment module, and the alignment module receives the notification message and the corresponding synchronization state information, and realizes data alignment by reading the synchronized data in the N FIFOs, sorts the data according to the lane marks, and then outputs it. The first alignment module (align_2) completes data alignment for a speed of 50GE, the second alignment module (align_4) completes data alignment for a speed of 100GE, and the third alignment module (align_8) completes data alignment for a speed of 200GE. The set speed of the port is considered as the supported speed set for the port.

[0031] In addition, the communication chip provided by the present application is not limited to the configuration shown in FIG. 1, and the number of synchronization modules, FIFOs in the cache module, and alignment modules can be adjusted according to actual needs.

[0032] The communication chip provided by the present application can complete synchronization and alignment operations for data from the Physical Media Attachment (PMA), support multiple speed setting methods, and support multiple speed settings and combinations of external networks and CPRI, so that it can represent multiple port support speed setting methods, such as supporting four 25GE speeds, or four 50GE speeds, or a port supporting four Common Public Radio Interfaces (CPRIs), or a port supporting two 100GE speeds, or a port supporting one 100GE speed and two 25GE / 50GE / CPRI, or a port supporting one 200GE speed.

[0033] The communication chip provided by the present application may include multiple synchronization modules, a set of cache modules, and multiple alignment modules, where the set of cache modules includes multiple FIFOs, and the FIFOs cache the synchronized data output by the corresponding synchronization modules, and at least one alignment module aligns and merges the synchronized data of all lanes cached in at least one FIFO in the cache module, thereby realizing the data alignment needs of various speed setting combinations by the multiple FIFOs, reducing the occupancy and waste of logical resources, and optimizing the structure. In one embodiment, the cache module includes eight FIFOs, and the eight FIFOs realize the data alignment needs of various speed setting combinations. If the communication chip provided by the present application is not used, 24 FIFOs are needed to achieve the same function. Therefore, the occupancy and waste of logical resources can be reduced, the chip can be optimized, and the cost can be reduced.

[0034] 2 shows a data processing method provided by an embodiment of the present application, which can be applied to a communication chip provided by the present application. The chip can be a chip including a PCS. As shown in FIG. 2, the technical solution provided by an embodiment of the present application includes the following steps:

[0035] In S210, the synchronization module receives data on the corresponding lane, synchronizes the received data, and stores the synchronized data in the cache module.

[0036] In S220, each first-in, first-out queue FIFO in the cache module caches the synchronized data output from the corresponding synchronization module.

[0037] In S230, at least one of the plurality of alignment modules aligns the synchronized data of all lanes in the cache module, and merges and outputs the aligned data.

[0038] As a specific data communication method, a method of communication using a communication chip can be referred to.

[0039] In one exemplary method, the data rates of the multiple registration modules are not exactly the same.

[0040] In one exemplary method, the number of synchronization modules is eight, the number of alignment modules is seven, and the number of FIFOs is eight.

[0041] In one exemplary embodiment, the method further includes the synchronization module sending synchronization status information and lane marks to an alignment module corresponding to the set speed, and when the synchronized data of all lanes corresponding to the set speed has been cached in the cache module, sending a notification message to the alignment module corresponding to the set speed.

[0042] Aligning the synchronized data of all lanes in the cache module and merging and outputting the aligned data includes, when the synchronization status information and the notification message are received, reading the synchronized data of the corresponding lane cached in a FIFO in the cache module, aligning the read data based on the lane marks, and then outputting the read data.

[0043] The data on each lane may be sent simultaneously from the PCS sender, and the physical media through which the data of each lane may pass during transmission may not be the same, so that delays may occur in receiving data on some lanes. To achieve data alignment for each lane, the synchronization module synchronizes the data of the corresponding lane and then caches it in the corresponding FIFO in the cache module, and when the synchronized data of all lanes are all cached in the corresponding FIFO, the alignment module simultaneously reads the data in the non-empty FIFO to achieve data alignment.

[0044] Specifically, when the alignment module receives synchronization status information, it can determine that synchronization has been achieved on the received data, and when the alignment module receives a notification message, it can determine that the synchronized data of all lanes corresponding to the set speed has been cached in the cache module; therefore, when the alignment module receives the synchronization status information and the notification message, it simultaneously reads non-empty FIFOs in the cache module to achieve alignment of the data of all lanes, and aligns the read data according to the lane marks, so that the output data is output in the order in which the data was sent.

[0045] In one exemplary embodiment, if the timing skew between the synchronized data of each of the two lanes exceeds a set range, the alignment module clears the FIFO in the cache module, and each synchronization module receives data on the corresponding lane, synchronizes the received data, and returns to storing the synchronized data in the cache module.

[0046] Timing skew may refer to the interval between timings, and the setting range can be set according to the actual situation. If the timing skew between the data after synchronization of each two lanes exceeds the setting range, the FIFO will overflow, the data alignment will fail, and the non-empty FIFO needs to be reset to restart the synchronization alignment process.

[0047] In the embodiments of the present application, the specific data processing method can refer to the processing method by the communication chip.

[0048] As shown in FIG. 1, the synchronization module performs data synchronization, and the data on the input N lanes, i.e., the input N-way data, passes through the corresponding synchronization module to complete the single FEC lane synchronization process of the data of each N-way. The specific synchronization process is to use the alignment mark (AM) generated at a fixed period in the PCS protocol and carried in the PCS processing data stream during transmission to query the alignment mark in the data, delete the data before the alignment mark, and make the alignment mark the boundary of the transmission data. For details, refer to IEEE 802.3-2018 clauses 82, 91, 108, 119, 134, etc. After the synchronization module realizes the synchronization of the data of the corresponding lane, it outputs the synchronization signal (carrying synchronization state information) and the lane mark (FEC lane number) to the alignment module corresponding to the set speed, and passes the synchronized data to the cache module.

[0049] Cache module deskew: The cache module includes eight FIFOs, and the data after synchronization of the N-way (or 8-way) FEC lane is directly written to the corresponding FIFO. The read and clear operations in each FIFO can be controlled by the downstream alignment module (the first alignment module, the second alignment module, or the third alignment module).

[0050] The alignment module performs data alignment, and depending on the set speed of the port, the first alignment module (align_2), the second alignment module (align_4), or the third alignment module (align_8) realizes data alignment of multiple FEC lanes by controlling the read and clear operations of the upstream FIFOs. Specifically, when the synchronized data of all lanes corresponding to the set speed have already been cached in the N FIFOs in the cache module, a notification message is sent to the alignment module, and the alignment module receives the notification message and the corresponding synchronization state information, and realizes data alignment by reading the synchronized data in the N FIFOs, sorts the data according to the lane marks, and then outputs it. The first alignment module (align_2) completes data alignment for a speed of 50GE, the second alignment module (align_4) completes data alignment for a speed of 100GE, and the third alignment module (align_8) completes data alignment for a speed of 200GE. The set speed of the port is considered as the supported speed set for the port.

[0051] As shown in FIG. 1, taking the third alignment module (align_8) as an example, the specific operation of data alignment is as follows:

[0052] In step 1, after being reset, the third alignment module (align_8) clears the eight FIFOs in the cache module (al_fifo_8).

[0053] In step 2, after a lane (if the number of lanes is less than 8) is synchronized, no reads are made to the corresponding FIFO, only writes are made.

[0054] In step 3, when all eight lanes are synchronized and all eight FIFOs are not empty, the cache module (al_fifo_8) starts reading the synchronized data in the eight FIFOs simultaneously, with AM being the first to be read.

[0055] In step 4, if any one of the FIFOs overflows, it means that the timing skew between the lanes exceeds the tolerance and alignment fails. In this case, the third alignment module (align_8) resets all eight FIFOs and restarts the synchronous alignment process.

[0056] In step 5, if the alignment is successful, the 8-way input data is rearranged and output in order according to the FEC lane number provided by the synchronization module.

[0057] The alignment process of the first alignment module (align_2) and the second alignment module (align_4) is similar to that of the third alignment module (align_8), except that the first alignment module (align_2) inputs data from two corresponding FIFOs and controls the read and clear operations of these two FIFOs, and the second alignment module (align_4) inputs data from four corresponding FIFOs and controls the read and clear operations of these four FIFOs.

[0058] In one exemplary method, when the set rate is the data rate of one lane, each of the synchronization modules receives data on the corresponding lane, synchronizes the received data, and transmits the synchronized data to a downstream receiver. Specifically, as shown in FIG. 3, the data rate of one lane is 25GE, the set rate includes four 25GE, and four synchronization modules receive data on four lanes correspondingly, synchronizes the received data, and transmits the synchronized data to a downstream receiver. That is, the synchronized data does not pass through the cache module and the alignment module. The reason is that since the set rate is the same as the data rate of one lane, there is no need to merge and output the synchronized data of at least two lanes, so the data output from the synchronization module can be transmitted directly to the downstream receiver.

[0059] In one exemplary method, when the set rate is the sum of the data rates of two lanes and the alignment modules receive data on eight lanes respectively, aligning the synchronized data of all lanes in the cache module by at least one alignment module of the plurality of alignment modules and merging and outputting the aligned data; The method includes using four first alignment modules to align synchronized data of eight lanes cached in eight FIFOs corresponding to each other in the cache module and merge-outputting the aligned data, and each first alignment module is configured to align synchronized data of two lanes cached in two FIFOs corresponding to each other in the cache module and merge-outputting the synchronized data of the two lanes.

[0060] Specifically, as shown in Figure 4, the data rate of one lane is 25GE, and the set rate is It includes four 50GEs, eight synchronization modules (lsync) correspondingly receive data on eight lanes, synchronize the received data, and cache the synchronized data in eight corresponding FIFOs, and four first alignment modules (align_2) align the synchronized data cached in the eight FIFOs, and merge and output the aligned data, where each first alignment module (align_2) aligns and merges and outputs the synchronized data cached in two FIFOs.

[0061] In one exemplary method, when the set speed is a sum of data speeds of four lanes and the plurality of alignment modules receive data on eight lanes, aligning the synchronized data of all lanes in the cache module by at least one alignment module of the plurality of alignment modules and merging and outputting the aligned data, The method includes using two second alignment modules to align synchronized data of eight lanes cached by eight FIFOs in the cache module correspondingly and merging-outputting the aligned data, each second alignment module being configured to align synchronized data of four lanes cached by four FIFOs in the cache module correspondingly and merging-outputting the synchronized data of the four lanes.

[0062] Specifically, as shown in Figure 5, 1 The data rate of one lane is 25GE, and the set rate includes two 100GEs; eight synchronization modules (lsync) receive data on the eight lanes correspondingly, synchronize the received data, and cache the synchronized data in the corresponding eight FIFOs; two second alignment modules (align_4) align the synchronized data of the eight lanes cached in the eight FIFOs, and merge and output the aligned data, where each second alignment module (align_4) aligns and merges and outputs the synchronized data of two lanes cached in the four FIFOs.

[0063] In one exemplary embodiment, if the set rate includes the sum of the data rates of the four lanes and the data rate of the two lanes, and multiple alignment modules receive data on eight lanes, Aligning the synchronized data of all lanes in the cache module by at least one alignment module of the multiple alignment modules and merging and outputting the aligned data includes aligning the synchronized data of four lanes correspondingly cached by four FIFOs in the cache module by one second alignment module, and aligning the synchronized data of four lanes correspondingly cached by the other four FIFOs in the cache module by two first alignment modules, and merging and outputting the synchronized data.

[0064] Specifically, as shown in FIG. 6, the data rate of one lane is 25GE, and the set rates include one 100GE and two 50GE, eight synchronization modules (lsync) receive data on the eight lanes correspondingly, synchronize the received data, and cache the synchronized data in the corresponding eight FIFOs, one second alignment module (align_4) aligns the synchronized data of the four lanes cached in four FIFOs, and merges and outputs the synchronized data of the four lanes in the four FIFOs, and two first alignment modules (align_2) align the synchronized data of the four lanes cached in the other four FIFOs, and merges and outputs the synchronized data of the four lanes in the other four FIFOs.

[0065] In one exemplary method, constant speed 8 lanes of degree Thea sum of data rates of the 8 lanes, and when the plurality of alignment modules receive data on 8 lanes, aligning the synchronized data of all lanes in the cache module by at least one alignment module of the plurality of alignment modules, and merging and outputting the aligned data; The method includes using one third alignment module to align the synchronized data of eight lanes cached in eight FIFOs in the cache module correspondingly and merge-outputting the synchronized data of the eight lanes, wherein the third alignment module is configured to align the synchronized data of the eight lanes cached in eight FIFOs in the cache module correspondingly and merge-outputting the synchronized data of the eight lanes.

[0066] Specifically, as shown in FIG. 7, the data rate of one lane is 25 GE, and the set rate includes one 200 GE, and eight synchronization modules (lsync) receive data on the eight lanes correspondingly, synchronize the received data, and cache the synchronized data in eight corresponding FIFOs, and one third alignment module (align_8) aligns the synchronized data of the eight lanes cached in the eight FIFOs, and merges and outputs the synchronized data of the eight lanes cached by the eight FIFOs.

[0067] 1 and 2 to 7, the direction of the arrow indicates the direction of data flow, and in FIGS. 2 to 7, the direction of the curved arrow indicates the actual data flow direction at different set speeds.

[0068] According to the technical solution provided by this application, multiple Ethernet speed settings and combinations can be supported, and the communication chip only contains one set of cache modules, and the cache module can contain eight FIFOs. In the data processing process, the communication chip can not only be flexibly configured and used, but also save the logic resources of the circuit and reduce the area and power consumption of the communication chip.

Claims

1. A communications chip including a plurality of synchronization modules, a set of cache modules, and a plurality of alignment modules, The synchronization module is configured to receive data of a corresponding lane, synchronize the received data, and store the synchronized data in the cache module; The cache module includes a plurality of FIFOs, which are first-in, first-out queues, and the FIFOs are configured to cache synchronized data output from corresponding synchronization modules; The alignment module is configured to align synchronized data of corresponding lanes in the cache module, and merge-output the aligned data; the number of said synchronization modules is eight, the number of said alignment modules is seven, and the number of said FIFOs is eight; the plurality of registration modules includes four first registration modules, two second registration modules, and one third registration module; The first alignment module is configured to align the synchronized data of the two lanes cached in the two FIFOs corresponding to each other, and merge and output the synchronized data of the two lanes; The second alignment module is configured to align the synchronized data of the four lanes cached in the four FIFOs correspondingly, and merge and output the synchronized data of the four lanes; The third alignment module is configured to align the synchronized data of the eight lanes cached by the eight FIFOs correspondingly, and merge and output the synchronized data of the eight lanes. A communications chip comprising:

2. The data output speeds of multiple alignment modules are not completely the same.

2. The communication chip according to claim 1.

3. A data processing method applied to the communication chip according to claim 1 or 2, comprising: receiving data on a corresponding lane by a synchronization module, synchronizing the received data, and storing the synchronized data in a cache module; caching the synchronized data output from the corresponding synchronization module by each FIFO in the cache module; Aligning the synchronized data of all lanes in the cache module upstream of the alignment module by at least one alignment module of the plurality of alignment modules, and merging and outputting the aligned data to a receiving side downstream of the alignment module; transmitting, by the synchronization module, synchronization status information and lane markings to an alignment module corresponding to the downstream receiver's set speed; When the cache module has cached the synchronized data of all lanes of the alignment module corresponding to the set speed, sending a notification message to the alignment module corresponding to the set speed; Including, aligning the synchronized data of all lanes in the cache module and merging and outputting the aligned data; When the synchronization state information and the notification message are received, reading the synchronized data of the corresponding lane cached in the FIFO in the cache module, aligning the read data based on the lane mark, and then outputting the read data.

23. A data processing method comprising:

4. When the set speed is a data speed of one lane, each of the synchronization modules receives data on a corresponding lane, synchronizes the received data, and transmits the synchronized data to a receiving side downstream of the alignment module.

4. The data processing method according to claim 3.

5. When the set speed corresponds to the sum of the data speeds of two lanes, and a plurality of alignment modules receive data on eight lanes correspondingly, aligning the synchronized data of all lanes in the cache module by at least one alignment module of the plurality of alignment modules and merging and outputting the aligned data; The method includes: aligning the synchronized data of the eight lanes cached by the eight FIFOs in the cache module correspondingly by the four first alignment modules, and merging and outputting the aligned data; Each of the first alignment modules is configured to align synchronized data of two lanes cached in two FIFOs in the cache module corresponding to each other, and to merge and output the synchronized data of the two lanes.

4. The data processing method according to claim 3.

6. When the set speed corresponds to a sum of the data speeds of four lanes and the alignment modules receive data on eight lanes, aligning the synchronized data of all lanes in the cache module by at least one alignment module of the plurality of alignment modules and merging and outputting the aligned data; The method includes aligning the synchronized data of the eight lanes cached by the eight FIFOs in the cache module by the two second alignment modules, and merging and outputting the aligned data; Each second alignment module is configured to align the synchronized data of the four lanes cached by the four FIFOs in the cache module, and merge and output the synchronized data of the four lanes.

4. The data processing method according to claim 3.

7. When the set speed corresponds to a sum of data speeds of eight lanes, and a plurality of alignment modules receive data on the eight lanes, aligning the synchronized data of all lanes in the cache module by at least one alignment module of the plurality of alignment modules and merging and outputting the aligned data; and a third alignment module aligns the synchronized data of the eight lanes cached in the eight FIFOs in the cache module, and merges and outputs the synchronized data of the eight lanes; The third alignment module is configured to align the synchronized data of the eight lanes cached by the eight FIFOs in the cache module, and merge and output the synchronized data of the eight lanes.

4. The data processing method according to claim 3.

8. When the set speeds of the second alignment module and the first alignment module are speeds corresponding to the sum of the data speeds of four lanes and the sum of the data speeds of two lanes, respectively, and the multiple alignment modules receive data on eight lanes, aligning the synchronized data of all lanes in the cache module by at least one alignment module of the plurality of alignment modules and merging and outputting the aligned data; The method includes aligning the synchronized data of the four lanes cached by the four FIFOs in the cache module correspondingly by one second alignment module, aligning the synchronized data of the four lanes cached by the other four FIFOs in the cache module correspondingly by two first alignment modules, and merging and outputting the synchronized data.

4. The data processing method according to claim 3.

9. and when a timing skew between the synchronized data of each of the two lanes exceeds a set range, the alignment module clears the FIFO in the cache module, and each synchronization module receives data on the corresponding lane, synchronizes the received data, and returns to the operation of storing the synchronized data in the cache module.

4. The data processing method according to claim 3.

Citation Information

Patent Citations

  • Active oxygen scavenger for food, and beverage and food containing the same

    JP2000253852A

  • Variable communication capacity data transmission device and data transmission device

    JP2006253852A

  • Optical transmission system integrated circuit

    JP2016046589A

  • Data communication systems with forward error correction

    US10009200B2

  • System comprising a state machine controlling transition between deskew enable mode and deskew disable mode of a system FIFO memory

    US6990538B2