Data processing apparatus, link training method, electronic device, and storage medium
Through multi-chip interconnection technology and parallel physical channels and clock calibration modules of data processing devices, the problems of traditional chip performance improvement and power consumption optimization cost reduction are solved, and high-bandwidth, low-latency chip interconnection is achieved.
Patent Information
- Application Number
- PCT/CN2024/085902
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-28
- Filing Date
- 2024-04-03
- Publication Date
- 2024-10-31
AI Technical Summary
As the cost of IC process upgrades increases exponentially, Moore's Law and Dennard Scaling Law slow down, traditional chip performance improvement and power consumption optimization are less cost-effective, and it is difficult to meet the needs of high-bandwidth, low-latency chip interconnection.
Multi-chip interconnection technology is used to optimize data transmission and improve signal bandwidth and transmission reliability through parallel physical transmission and reception channels in the data processing device, combined with the clock calibration module and offset voltage calibration module.
It significantly improves the signal bandwidth of cross-DIE data transmission, reduces the timing crossover between channels and the sampling delay of the digital-analog path, reduces the data transmission delay and cost, and meets the high-bandwidth, low-latency chip interconnection requirements.
Smart Images

Figure CN2024085902_31102024_PF_FP_ABST
Abstract
Description
Data processing device, link training method, electronic device and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application No. 202310490134.5 filed on April 28, 2023, the contents of which are incorporated herein by reference in their entirety. Technical Field
[0003] The embodiments of the present application relate to the field of multi-chip interconnection technology, and in particular to a data processing device, a link training method, an electronic device, and a computer-readable storage medium. Background Art
[0004] As society becomes increasingly information-based, the performance and power consumption requirements of information systems, the cornerstone of this information society, are also increasing. For the past few decades, chips have often relied on integrated circuit (IC) process upgrades to achieve performance improvements and optimize power consumption. However, with the exponential increase in the cost of IC process upgrades, Moore's Law and Dennard scaling have gradually slowed or even stagnated, making the performance improvement and power reduction achieved through IC process upgrades increasingly less cost-effective.
[0005] Chiplet heterogeneous integration technology integrates multiple bare die (DIEs) with specific functions into a single package through internal interconnection technology, creating specialized functional chips. By selecting appropriate manufacturing processes for each DIE with corresponding functions and enabling flexible reorganization between DIEs, this technology significantly improves chip manufacturing yield and cost optimization compared to the integrated SoC manufacturing process. It also effectively supports flexible customization of chips for specific fields, meeting the needs of diversified chip development.
[0006] Public content
[0007] In a first aspect, an embodiment of the present application provides a data processing device, comprising: a sending circuit and a receiving circuit; the sending circuit comprises: n parallel physical sending channels; the receiving circuit comprises: n parallel physical receiving channels; n is an integer greater than or equal to 2; the physical sending channel is configured to receive data from an upper layer, and send the received data according to a first clock and a second clock; the physical receiving channel is configured to receive data sent by the physical sending channel according to a third clock and a fourth clock, and cache the received data.
[0008] In a second aspect, an embodiment of the present application provides a link training method, including: configuring the data transmission rate of the above-mentioned data processing device; inputting test data into the physical sending channel of the data processing device for data transmission; performing corresponding calibration on the data processing device through a calibration module in the data processing device during the data transmission process; after the calibration is completed, scanning the data sent by the physical sending channel and the data received by the corresponding physical receiving channel; adjusting the data transmission rate of the data processing device according to the data sent by the physical sending channel and the data received by the corresponding physical receiving channel, and continuing to execute the step of inputting test data into the physical sending channel of the data processing device for data transmission until the preset maximum data transmission rate is met.
[0009] In a third aspect, an embodiment of the present application provides an electronic device, comprising: the above-mentioned data processing device; at least one processor; and a memory, on which at least one computer program is stored. When the at least one computer program is executed by the at least one processor, the at least one processor implements the above-mentioned link training method.
[0010] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the processor implements the above-mentioned link training method. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] FIG1 is a block diagram of a data processing device according to an embodiment of the present application;
[0012] FIG2 is a block diagram of a transmitting circuit according to an embodiment of the present application;
[0013] FIG3 is a block diagram of a receiving circuit according to an embodiment of the present application;
[0014] FIG4 is a block diagram of the physical transmission channel 201 according to an embodiment of the present application;
[0015] FIG5 is a block diagram of the physical receiving channel 301 according to an embodiment of the present application;
[0016] FIG6 is a block diagram of a fourth clock calibration module according to an embodiment of the present application;
[0017] FIG7 is a block diagram of a fifth clock calibration module according to an embodiment of the present application;
[0018] FIG8 is a block diagram of a first clock calibration module according to an embodiment of the present application;
[0019] FIG9 is a block diagram of an offset voltage calibration module according to an embodiment of the present application;
[0020] FIG10 is a block diagram of a receiving sampling calibration module according to an embodiment of the present application;
[0021] FIG11 is a block diagram of a second clock calibration module according to an embodiment of the present application;
[0022] FIG12 is a block diagram of a third clock calibration module according to an embodiment of the present application;
[0023] FIG13 is a block diagram of a sixth clock calibration module according to an embodiment of the present application;
[0024] FIG14 is a schematic diagram of the circuit structure of a data processing device provided by an example of an embodiment of the present application;
[0025] FIG15 is a flow chart of a link training method provided in an embodiment of the present application;
[0026] FIG16 is a block diagram of the composition of the electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the technical solution of the present application, the data processing device, link training method, and electronic device provided in the present application are described in detail below with reference to the accompanying drawings.
[0028] Example embodiments will be described more fully below with reference to the accompanying drawings, but the example embodiments may be embodied in different forms, and the present application should not be construed as limited to the embodiments set forth herein. These embodiments are provided to make this application more thorough and complete and to enable those skilled in the art to fully understand the scope of this application.
[0029] In the absence of conflict, the various embodiments of the present application and the various features therein may be combined with each other.
[0030] As used herein, the term "and / or" includes any and all combinations of at least one of the associated listed items.
[0031] The terms used herein are used only to describe specific embodiments and do not limit this application. As used herein, the singular forms "a," "an," and "the" also include the plural forms, unless the context clearly indicates otherwise. It will also be understood that when the terms "comprising" and / or "made of" are used in this specification, they specify the presence of a particular feature, whole, step, operation, element, and / or component, but do not exclude the presence or addition of at least one other feature, whole, step, operation, element, component, and / or group thereof.
[0032] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those skilled in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this application, and will not be interpreted as having an idealized or overly formal meaning unless expressly defined as such herein.
[0033] FIG1 is a block diagram of a data processing device according to an embodiment of the present application.
[0034] In the first aspect, referring to Figure 1, an embodiment of the present application provides a data processing device, which can be applied to any chip interconnection scenario requiring high bandwidth and low latency, such as server processor chip integration, artificial intelligence (AI) computing array chip integration, SoC chip integration, automotive-grade chip chip integration, data processor (DPU) chip integration, etc.
[0035] As shown in FIG1 , the data processing device includes a sending circuit 101 and a receiving circuit 102 .
[0036] In some embodiments, as shown in FIG2 , the transmitting circuit 101 includes: n parallel physical transmitting channels 201 ; as shown in FIG3 , the receiving circuit 102 includes: n parallel physical receiving channels 301 ; n is an integer greater than or equal to 2.
[0037] In some embodiments, a data processing device includes: a set of transmitting circuits and receiving circuits, n physical transmitting channels are located on a first die, and n physical receiving channels are located on a second die.
[0038] In some embodiments, a data processing device includes: a first set of transmitting circuits and receiving circuits, and a second set of transmitting circuits and receiving circuits.
[0039] The n physical transmit channels in the first set of transmit circuits and receive circuits and the n physical receive channels in the second set of transmit circuits and receive circuits are located on a first bare die (e.g., DIE-1 in FIG14 ), and the n physical receive channels in the first set of transmit circuits and receive circuits and the n physical transmit channels in the second set of transmit circuits and receive circuits are located on a second bare die (e.g., DIE-2 in FIG14 ).
[0040] In some embodiments, the functions of the physical transmission channel and the physical reception channel located in the first die are implemented by the first die, and the functions of the physical transmission channel and the physical reception channel located in the second die are implemented by the second die.
[0041] In some embodiments, n parallel physical transmission channels and n parallel physical reception channels in the same set of transmission circuits and reception circuits correspond one to one, and the corresponding physical transmission channels and physical reception channels in the same set of transmission circuits and reception circuits constitute a physical transmission channel. That is, the n parallel physical transmission channels and n parallel physical reception channels in the same set of transmission circuits and reception circuits constitute n parallel physical transmission channels, and each physical transmission channel includes a physical transmission channel and a physical reception channel.
[0042] In some embodiments, the physical sending channel 201 is configured to receive data from the upper layer and send the received data according to the first clock and the second clock; the physical receiving channel 301 is configured to receive data sent by the physical sending channel 201 according to the third clock and the fourth clock, and cache the received data.
[0043] In some embodiments, as shown in FIG4 , the physical transmission channel 201 includes: a transmission buffer module 401 (such as the first-in-first-out (FIFO) / REG module in FIG14 ), configured to cache data received from an upper layer; and an analog serializer 402 (such as the Serializer module in FIG14 ), configured to read data from the transmission buffer module 401 according to a first clock and a second clock, and to send the read data.
[0044] As shown in Figure 5, the physical receiving channel 301 includes: an analog deserializer 501 (such as the Deserializer module in Figure 14), configured to sample the data sent by the physical sending channel 201 according to the third clock and the fourth clock; and a receiving buffer module 502 (such as the second FIFO / REG in Figure 14), configured to cache the sampled data.
[0045] In some implementations, an upper layer synchronizes and reorganizes the data buffered by n parallel physical receiving channels.
[0046] In some embodiments, the analog serializer 402 and the analog deserializer 501 are implemented using analog circuits. Compared with related technologies, n parallel physical transmission channels improve the signal bandwidth transmitted across the DIE, significantly reduce the timing crossing between channels and the sampling delay of the digital-to-analog path, thereby reducing the overall transmission delay and improving transmission reliability.
[0047] In some embodiments, the physical sending channel 201 also includes: a fourth clock calibration module 403 (such as the first de-skew calibration module in Figure 14), configured to perform a fourth phase deviation calibration on the data read by the analog serializer 402, and send the data after the fourth phase deviation calibration to the physical receiving channel 301.
[0048] The physical receiving channel 301 also includes: a fifth clock calibration module 503 (such as the second de-skew calibration module in Figure 14), configured to perform a fifth phase deviation calibration on the data sent by the physical sending channel 201; the analog deserializer 501 is specifically configured to: sample the data after the fifth phase deviation calibration according to the third clock and the fourth clock.
[0049] In some implementations, different physical transmission channels correspond to different fourth clock calibration modules 403 .
[0050] In some implementations, some physical transmission channels correspond to the same fourth clock calibration module 403. For example, n physical transmission channels are grouped, with each group including A physical transmission channels, where A is an integer greater than or equal to 1. The A physical transmission channels in the same group correspond to different fourth clock calibration modules 403, and different groups reuse A fourth clock calibration modules 403. Therefore, during calibration, the A physical transmission channels within the same group are calibrated in parallel using the A fourth clock calibration modules 403, while the A physical transmission channels in different groups are calibrated in series using the A fourth clock calibration modules 403. For example, 64 physical transmission channels are divided into 8 groups, each group includes 8 physical transmission channels, and 8 fourth clock calibration modules 403 are used for calibration. First, 8 fourth clock calibration modules 403 are used to perform parallel calibration on the 8 physical transmission channels in the first group. After the calibration of the 8 physical transmission channels in the first group is completed, 8 fourth clock calibration modules 403 are reused to perform parallel calibration on the 8 physical transmission channels in the second group. After the calibration of the 8 physical transmission channels in the second group is completed, 8 fourth clock calibration modules 403 are reused to perform parallel calibration on the 8 physical transmission channels in the third group, and so on, until the calibration of 64 physical transmission channels is completed.
[0051] In some implementations, different physical receiving channels correspond to different fifth clock calibration modules 503 .
[0052] In some implementations, the fifth clock calibration modules 503 corresponding to some physical receive channels are identical. For example, n physical receive channels are grouped, with each group including B physical receive channels, where B is an integer greater than or equal to 1. The B physical receive channels in the same group correspond to different fifth clock calibration modules 503, and different groups reuse the B fifth clock calibration modules 503. During calibration, the B physical receive channels within the same group are calibrated in parallel using the B fifth clock calibration modules 503, while the B physical receive channels in different groups are calibrated in series using the B fifth clock calibration modules 503. For example, 64 physical receiving channels are divided into 8 groups, each group includes 8 physical receiving channels, and 8 fifth clock calibration modules 503 are used for calibration. First, 8 fifth clock calibration modules 503 are used to perform parallel calibration on the 8 physical receiving channels in the first group. After the calibration of the 8 physical receiving channels in the first group is completed, 8 fifth clock calibration modules 503 are reused to perform parallel calibration on the 8 physical receiving channels in the second group. After the calibration of the 8 physical receiving channels in the second group is completed, 8 fifth clock calibration modules 503 are reused to perform parallel calibration on the 8 physical receiving channels in the third group, and so on, until the calibration of 64 physical receiving channels is completed.
[0053] In some embodiments, the fourth clock calibration module 403 can be configured to perform a fourth phase deviation calibration on the data read by the analog serializer 402 after the receiving sampling calibration module 207 controls the phase interpolator 204 to adjust the phase difference of the four-phase clock after duty cycle adjustment based on the data received by the physical receiving channel 301 and the phase difference of the four-phase clock after duty cycle adjustment output by the phase interpolator 204.
[0054] In some embodiments, the fifth clock calibration module 503 can be configured to perform a fifth phase deviation calibration on the data sent by the physical sending channel 201 after the receiving sampling calibration module 207 controls the phase interpolator 204 to adjust the phase difference of the four-phase clock after the duty cycle is adjusted based on the data received by the physical receiving channel 301 and the phase difference of the four-phase clock after the duty cycle is adjusted output by the phase interpolator 204.
[0055] In some embodiments, the fourth clock calibration module 403 is specifically configured as follows: taking the received sampling calibration code P0 as a reference, within the range of the previous preset step size and the next preset step size of the calibration flag corresponding to the received sampling calibration code P0, the phase difference of the duty cycle-adjusted four-phase clock output by the phase interpolator 204 is scanned with a scanning step as a period; a 1-bit calibration flag is determined based on the scanning result and the data read by the analog serializer 402; the phase difference of the duty cycle-adjusted four-phase clock output by the phase interpolator 204 is continued to be scanned with a scanning step as a period until a d-bit calibration flag is obtained; d is an integer greater than or equal to 2; the d-bit calibration flag is filtered; the Pi calibration code corresponding to the currently calibrated physical transmission channel is determined based on the center position of the continuous sampling correct segment in the scanning result corresponding to the filtered d-bit calibration flag, and the difference between the Pi calibration code and the received sampling calibration code P0 is used as the fourth clock calibration code corresponding to the currently calibrated physical transmission channel; and a fourth phase deviation calibration is performed on the data read by the analog serializer 402 according to the fourth clock calibration code.
[0056] In some embodiments, the phase difference scanned by the fourth clock calibration module 403 may be the phase difference between any two phase clocks, for example, the phase difference between the second phase clock and the first phase clock, or the phase difference between the third phase clock and the first phase clock.
[0057] In some embodiments, the center position of the correct segment of continuous sampling in the scan result corresponding to the filtered d-bit calibration flag corresponds to a 1-bit calibration flag, and there is a one-to-one correspondence between the calibration flag and the Pi calibration code.
[0058] In some embodiments, the fifth clock calibration module 503 is specifically configured as follows: taking the received sampling calibration code P0 as a reference, within the range of the previous preset step size and the next preset step size of the calibration flag corresponding to the received sampling calibration code P0, the phase difference of the duty cycle-adjusted four-phase clock output by the phase interpolator 204 is scanned with a scanning step as a period; a 1-bit calibration flag is determined based on the scanning result and the data read by the analog deserializer 501; the phase difference of the duty cycle-adjusted four-phase clock output by the phase interpolator 204 is continued to be scanned with a scanning step as a period until a b-bit calibration flag is obtained; b is an integer greater than or equal to 2; the b-bit calibration flag is filtered; the Pi calibration code corresponding to the currently calibrated physical receiving channel is determined based on the center position of the continuous sampling correct segment in the scanning result corresponding to the filtered b-bit calibration flag, and the difference between the Pi calibration code and the received sampling calibration code P0 is used as the fifth clock calibration code corresponding to the currently calibrated physical receiving channel; and the data sent by the physical sending channel 201 is subjected to a fifth phase deviation calibration according to the fifth clock calibration code.
[0059] In some embodiments, the phase difference scanned by the fifth clock calibration module 503 may be the phase difference between any two phase clocks, for example, the phase difference between the second phase clock and the first phase clock, or the phase difference between the third phase clock and the first phase clock.
[0060] In some embodiments, the center position of the correct continuously sampled segment in the scan result corresponding to the filtered b-bit calibration flag corresponds to a 1-bit calibration flag, and there is a one-to-one correspondence between the calibration flag and the Pi calibration code.
[0061] In some implementations, as shown in FIG6 , the fourth clock calibration module 403 includes: a seventh clock calibration submodule 601 implemented in hardware and an eighth clock calibration submodule 602 implemented in software.
[0062] When no failure of the hardware-implemented seventh clock calibration submodule 601 is detected, the hardware-implemented seventh clock calibration submodule 601 performs fourth phase deviation calibration on the data read by the analog serializer 402 and sends the data after the fourth phase deviation calibration to the physical receiving channel 301 .
[0063] When a failure of the seventh clock calibration submodule 601 implemented in hardware is detected, the eighth clock calibration submodule 602 implemented in software performs a fourth phase deviation calibration on the data read by the analog serializer 402 and sends the data after the fourth phase deviation calibration to the physical receiving channel 301 .
[0064] In some implementations, as shown in FIG. 7 , the fifth clock calibration module 503 includes: a ninth clock calibration submodule 701 implemented in hardware and a tenth clock calibration submodule 702 implemented in software.
[0065] In the case that no failure of the ninth clock calibration submodule 701 implemented by hardware is detected, the ninth clock calibration submodule 701 implemented by hardware implements the fifth phase deviation calibration for the data sent by the physical sending channel 201 .
[0066] When a failure of the ninth clock calibration submodule 701 implemented in hardware is detected, the tenth clock calibration submodule 702 implemented in software performs the fifth phase deviation calibration on the data sent by the physical sending channel 201 .
[0067] In some embodiments, the fourth clock calibration module 403 and the fifth clock calibration module 503 are implemented using analog circuits to eliminate delay deviations between parallel transmission channels. Compared with digital circuits, analog circuits can perform more precise delay adjustments and significantly reduce calibration time delays.
[0068] In some embodiments, the physical receiving channel 301 further includes: a digital sampling calibration module 504 configured to perform recovery processing on the sampled data; and the receiving buffer module 502 is specifically configured to cache the recovered data.
[0069] In some implementations, the digital sampling calibration module 504 is specifically configured to implement recovery processing on the sampled data in the following manner: mapping the sampled data to the recovered data according to a preset mapping relationship.
[0070] In some implementations, a logical comparison may be performed between the test data sampled during the test process and the test data under normal circumstances to obtain a mapping relationship.
[0071] In some implementations, the sampled test data of the two preceding and following clock beats may be combined to obtain a 16-bit sampled test data, which is logically compared with the 16-bit test data under normal circumstances to obtain a mapping relationship.
[0072] In some implementations, the digital sampling calibration module 504 includes: a first digital sampling calibration submodule implemented in hardware and a second digital sampling calibration submodule implemented in software.
[0073] In the case that no failure of the first digital sampling and calibration submodule implemented by hardware is detected, the sampled data is restored by the first digital sampling and calibration submodule implemented by hardware.
[0074] In the case where a failure of the first digital sampling and calibration submodule implemented by hardware is detected, the sampled data is restored by the second digital sampling and calibration submodule implemented by software.
[0075] In some implementations, the digital sampling calibration module 504 can assist in completing testing functions such as channel reversal and channel repair during link initialization, and can also assist in analog sampling calibration to complete link transmission, thereby improving the reliability of analog circuit transmission.
[0076] In some embodiments, the transmitting circuit 101 further includes: a clock conversion module 202 (such as a delay lock loop (DLL) & clock duty cycle corrector (DCC) in Figure 14), a first clock transmission module 203 (such as a first divider (DIV) in Figure 14), a phase interpolator 204, a first clock calibration module 205 (such as the TX DLL & DCC calibration module in Figure 14), and an offset voltage calibration module 206; the receiving circuit 102 further includes: a second clock transmission module 302 (such as a digital-controller delay line (DCDL) and a second DIV module in Figure 14).
[0077] In some embodiments, the clock conversion module 202 is configured to convert a single-ended clock output by a phase-locked loop (PLL) into a four-phase clock, adjust the duty cycle of the four-phase clock, and send the first phase clock of the four-phase clock after the duty cycle adjustment as the first clock to the physical transmission channel 201.
[0078] In some embodiments, the four-phase clock can be four clocks with phases of 0°, 90°, 180°, and 270°, respectively. The clock with a phase of 0° is the first phase clock, the clock with a phase of 90° is the second phase clock, the clock with a phase of 180° is the third phase clock, and the clock with a phase of 270° is the fourth phase clock.
[0079] In some embodiments, the four-phase clock can be four clocks with phases of 0°, 45°, 90°, and 135°, respectively. The clock with a phase of 0° is the first phase clock, the clock with a phase of 45° is the second phase clock, the clock with a phase of 90° is the third phase clock, and the clock with a phase of 135° is the fourth phase clock.
[0080] In some embodiments, the first clock transmission module 203 is configured to determine a second clock according to the first-phase clock and the second-phase clock of the four-phase clock after duty cycle adjustment, and send the second clock to the physical transmission channel 201 .
[0081] In some implementations, the phase interpolator 204 is configured to adjust the phase differences of the duty cycle adjusted four-phase clocks.
[0082] In some embodiments, the phase interpolator 204 is specifically configured to adjust the phase difference between the second phase clock and the first phase clock in the duty cycle-adjusted four-phase clock, and adjust the phase difference between the third phase clock and the first phase clock.
[0083] In some embodiments, the second clock transmission module 302 is configured to send the second phase clock in the four-phase clock after duty cycle adjustment as the third clock to the physical receiving channel 301, determine the fourth clock based on the second phase clock and the third phase clock in the four-phase clock after duty cycle adjustment, and send the fourth clock to the physical receiving channel 301.
[0084] In some implementations, the first clock calibration module 205 is configured to perform a first phase deviation calibration on the clock conversion module 202 .
[0085] In some implementations, the first clock calibration module 205 may perform a first phase deviation calibration on the clock conversion module 202 after voltage offset calibration.
[0086] In some implementations, the first clock calibration module 205 is specifically configured to: perform coarse adjustment calibration and fine adjustment calibration on the phase difference of the four-phase clock; and calibrate the phase difference of the four-phase clock after the duty cycle is adjusted.
[0087] In some embodiments, the first clock calibration module 205 is specifically configured to: when in DLL calibration mode, perform coarse adjustment calibration and fine adjustment calibration on the phase difference of the four-phase clock; when in DCC calibration mode, calibrate the phase difference of the four-phase clock after duty cycle adjustment.
[0088] In some embodiments, the first clock calibration module 205 is specifically configured to implement coarse calibration and fine calibration of the phase difference of the four-phase clock in the following manner: set the initial value of the coarse calibration code to 0; periodically sample the comparison result of the comparator in the clock conversion module 202; adjust the coarse calibration code according to the ratio of high level and low level in the comparison result obtained by sampling; adjust the phase difference of the four-phase clock according to the adjusted coarse calibration code; continue to periodically sample the comparison result of the comparator in the clock conversion module 202 until the ratio of high level and low level is 1; set the initial value of the fine calibration code to 256; periodically sample the comparison result of the comparator in the clock conversion module 202; adjust the fine calibration code according to the ratio of high level and low level in the comparison result obtained by sampling; adjust the phase difference of the four-phase clock according to the adjusted fine calibration code; continue to periodically sample the comparison result of the comparator in the clock conversion module 202 until the ratio of high level and low level is 1.
[0089] In some implementations, the first clock calibration module 205 may periodically sample the comparison result of the comparator in the clock conversion module 202 for X consecutive times, where X is an integer greater than or equal to 2.
[0090] The comparison result obtained by each sampling can be a high level or a low level.
[0091] In some implementations, the number of high levels in the comparison results obtained by sampling is N1, and the number of low levels is N0. Then, the ratio of high levels to low levels is N1 / N0.
[0092] In some embodiments, the first clock calibration module 205 is specifically configured to adjust the coarse adjustment calibration code according to the ratio of high level and low level in the comparison result obtained by sampling in the following manner: when the ratio of high level and low level is greater than 1, the coarse adjustment calibration code is reduced, for example, the coarse adjustment calibration code is subtracted by 1; when the ratio of high level and low level is less than 1, the coarse adjustment calibration code is increased, for example, the coarse adjustment calibration code is added by 1.
[0093] In some implementations, after the coarse adjustment calibration is completed, the coarse adjustment calibration code when the ratio of the high level to the low level is 1 is latched and no further adjustment is performed.
[0094] In some embodiments, the first clock calibration module 205 is specifically configured to adjust the fine-tuning calibration code according to the ratio of high level and low level in the comparison result obtained by sampling in the following manner: when the ratio of high level and low level is greater than 1, the fine-tuning calibration code is increased, for example, the fine-tuning calibration code is increased by 1; when the ratio of high level and low level is less than 1, the fine-tuning calibration code is reduced, for example, the fine-tuning calibration code is reduced by 1.
[0095] In some implementations, after the fine adjustment calibration is completed, the fine adjustment calibration code when the ratio of the high level to the low level is 1 is latched and no further adjustment is performed.
[0096] In some embodiments, the first clock calibration module 205 calibrates the phase difference of the four-phase clock after the duty cycle adjustment, and calibrates the phase difference between the third-phase clock and the first-phase clock, and the phase difference between the fourth-phase clock and the second-phase clock. The two calibration processes are the same.
[0097] In some embodiments, the first clock calibration module 205 is specifically configured to calibrate the phase difference of the four-phase clock after duty cycle adjustment in the following manner: in the process of the duty cycle calibration code changing from 0 to a preset maximum value, the comparison result of the comparator in the clock conversion module 202 is periodically sampled, and the first duty cycle calibration code when the sampled comparison result jumps from a low level to a high level is recorded; in the process of the duty cycle calibration code changing from a preset maximum value to 0, the comparison result of the comparator in the clock conversion module 202 is periodically sampled, and the second duty cycle calibration code when the sampled comparison result jumps from a low level to a high level is recorded; and the phase difference of the four-phase clock after duty cycle adjustment is adjusted according to the average value of the first duty cycle calibration code and the second duty cycle calibration code.
[0098] In some implementations, as shown in FIG8 , the first clock calibration module 205 includes: a first clock calibration submodule 801 implemented in hardware and a second clock calibration submodule 802 implemented in software.
[0099] In the case that no failure of the first clock calibration submodule 801 implemented by hardware is detected, the first phase deviation calibration is performed on the clock conversion module 202 through the first clock calibration submodule 801 implemented by hardware.
[0100] When a failure of the first clock calibration submodule 801 implemented in hardware is detected, the first phase deviation calibration is performed on the clock conversion module 202 through the second clock calibration submodule 802 implemented in software.
[0101] In some implementations, the offset voltage calibration module 206 is configured to perform voltage offset calibration on the clock conversion module 202 .
[0102] In some embodiments, voltage offset calibration is used to calibrate clock and phase deviations caused by voltage offset. The clock conversion module 202 serves as the direct clock source for the transmitting circuit 101 and the receiving circuit 102. Introducing offset voltage calibration logic can improve the stability of circuit operation.
[0103] In some implementations, the offset voltage calibration module 206 is specifically configured to perform voltage offset calibration on the clock conversion module 202 when in the offset voltage calibration mode.
[0104] In some embodiments, the offset voltage calibration module 206 is specifically configured to: periodically sample the comparison result of the comparator in the clock conversion module 202; adjust the offset voltage control word according to the ratio of high level to low level in the sampled comparison result; adjust the voltage of the clock conversion module 202 according to the adjusted offset voltage control word; and continue to periodically sample the comparison result of the comparator in the clock conversion module 202 until the ratio of high level to low level is 1.
[0105] In some implementations, the offset voltage calibration module 206 may periodically sample the comparison result of the comparator in the clock conversion module X times in succession; X is an integer greater than or equal to 2.
[0106] The comparison result obtained by each sampling can be a high level or a low level.
[0107] In some implementations, the number of high levels in the comparison results obtained by sampling is N1, and the number of low levels is N0. Then, the ratio of high levels to low levels is N1 / N0.
[0108] In some embodiments, the offset voltage calibration module 206 is specifically configured to adjust the offset voltage control word according to the ratio of the high level to the low level in the comparison result obtained by sampling in the following manner: when the ratio of the high level to the low level is greater than 1, the offset voltage control word OFFSET is reduced, for example, the offset voltage control word OFFSET is subtracted by 1; when the ratio of the high level to the low level is less than or equal to 1, the offset voltage control word OFFSET is increased, for example, the offset voltage control word OFFSET is increased by 1.
[0109] In some implementations, after the offset voltage calibration is completed, the offset voltage control word when the ratio of the high level to the low level is 1 is latched and no further adjustment is performed.
[0110] In some embodiments, as shown in FIG. 9 , the offset voltage calibration module 206 includes: a first offset voltage calibration submodule 901 implemented in hardware and a second offset voltage calibration submodule 902 implemented in software.
[0111] In the case that no failure of the hardware-implemented first offset voltage calibration submodule 901 is detected, the voltage offset calibration of the clock conversion module 202 is implemented by the hardware-implemented first offset voltage calibration submodule 901 .
[0112] When a failure of the first offset voltage calibration submodule 901 implemented in hardware is detected, the voltage offset calibration of the clock conversion module 202 is performed through the second offset voltage calibration submodule 902 implemented in software.
[0113] In some embodiments, the receiving circuit 102 further includes: a channel data calibration feedback module 303, configured to detect whether the data received by the physical receiving channel 301 matches the expected data, and if it is detected that the data received by the physical receiving channel 301 matches the expected data, transmit the data received by the physical receiving channel 301 to the receiving sampling calibration module of the transmitting circuit via the sideband transmission feedback module;
[0114] The transmitting circuit 101 also includes: a receiving sampling calibration module 207 (such as the RX sampling calibration module in Figure 14), which is configured to control the phase interpolator 204 to adjust the phase difference of the four-phase clock after the duty cycle is adjusted based on the data received by the physical receiving channel 301 and the phase difference of the four-phase clock after the duty cycle is adjusted output by the phase interpolator 204.
[0115] In some embodiments, the channel data calibration feedback module 303 is specifically configured to: detect whether the data after the recovery and processing of the physical receiving channel 301 matches the expected data; when it is detected that the data after the recovery and processing of the physical receiving channel 301 matches the expected data, transmit the data after the recovery and processing of the physical receiving channel 301 to the receiving sampling calibration module of the transmitting circuit through the sideband transmission feedback module.
[0116] In some embodiments, the receiving sampling calibration module 207 is specifically configured as follows: scanning the phase difference of the duty cycle-adjusted four-phase clock output by the phase interpolator 204 with a preset step size as a period; determining a 1-bit calibration flag based on the scanning result and the data received by the physical receiving channel 301; continuing to scan the phase difference of the duty cycle-adjusted four-phase clock output by the phase interpolator 204 with a preset step size as a period until an m-bit calibration flag is obtained; m is an integer greater than or equal to 2; filtering the m-bit calibration flag; determining the receiving sampling calibration code based on the center position of the continuous sampling correct segment in the scanning result corresponding to the filtered m-bit calibration flag; and controlling the phase interpolator 204 to adjust the phase difference of the duty cycle-adjusted four-phase clock according to the receiving sampling calibration code.
[0117] In some embodiments, the phase difference scanned by the receiving sampling calibration module 207 may be the phase difference between any two phase clocks, for example, the phase difference between the second phase clock and the first phase clock, or the phase difference between the third phase clock and the first phase clock.
[0118] In some embodiments, the center position of the correct continuous sampling segment in the scan result corresponding to the filtered m-bit calibration flag corresponds to a 1-bit calibration flag, and there is a one-to-one correspondence between the calibration flag and the received sample calibration code.
[0119] In some implementations, during the calibration process of the receiving sampling calibration module 207 , fixed test data 8′b0000_1111 may be sent to the physical transmission channel to control the phase interpolator 204 to adjust the phase difference of the four-phase clock after duty cycle adjustment.
[0120] In some embodiments, as shown in FIG10 , the reception sampling calibration module 207 includes: a first reception sampling calibration submodule 1001 implemented in hardware and a second reception sampling calibration submodule 1002 implemented in software.
[0121] When no failure of the hardware-implemented first receiving sampling calibration submodule 1001 is detected, the first receiving sampling calibration submodule 1001 implemented by hardware realizes the phase difference of the four-phase clock after duty cycle adjustment output by the phase interpolator 204 based on the data received by the physical receiving channel 301 and the phase interpolator 204, and controls the phase interpolator 204 to adjust the phase difference of the four-phase clock after duty cycle adjustment.
[0122] When a failure of the first receiving sampling calibration submodule 1001 implemented in hardware is detected, the second receiving sampling calibration submodule 1002 implemented in software realizes the phase difference of the four-phase clock after duty cycle adjustment output by the phase interpolator 204 based on the data received by the physical receiving channel 301 and the phase difference of the four-phase clock after duty cycle adjustment output by the phase interpolator 204, and controls the phase interpolator 204 to adjust the phase difference of the four-phase clock after duty cycle adjustment.
[0123] In some embodiments, the transmitting circuit 101 further includes: a second clock calibration module 208 (such as the TX IO DCC calibration module in Figure 14), configured to perform a second phase deviation calibration on the first phase clock of the four-phase clock after duty cycle adjustment to obtain the first clock corresponding to the corresponding physical transmitting channel 201.
[0124] The physical sending channel 201 is specifically configured to receive data from an upper layer, and send the received data according to the first clock and the second clock after the second phase deviation is calibrated.
[0125] In some implementations, different physical transmission channels correspond to different second clock calibration modules 208 .
[0126] In some implementations, some physical transmission channels may use the same second clock calibration module 208. For example, n physical transmission channels may be divided into C groups, where C is an integer greater than or equal to 1. Physical transmission channels within a group may use the same second clock calibration module 208 for calibration, while physical transmission channels in different groups may use different second clock calibration modules 208. Therefore, during calibration, physical transmission channels within the same group may use the same second clock calibration module 208 for serial calibration, while physical transmission channels in different groups may use different second clock calibration modules 208 for parallel calibration. For example, 64 physical transmission channels are divided into 8 groups, each group includes 8 physical transmission channels, and 8 second clock calibration modules 208 are used for calibration. First, 8 second clock calibration modules 208 are used to perform a second phase deviation calibration on the first phase clock in the four-phase clock after duty cycle adjustment to obtain the first clock corresponding to the first physical transmission channel in the 8 groups. After the calibration of the first physical transmission channel in the 8 groups is completed, 8 second clock calibration modules 208 are reused to perform a second phase deviation calibration on the first phase clock in the four-phase clock after duty cycle adjustment to obtain the first clock corresponding to the second physical transmission channel in the 8 groups. After the calibration of the second physical transmission channel in the 8 groups is completed, 8 second clock calibration modules 208 are reused to perform a second phase deviation calibration on the first phase clock in the four-phase clock after duty cycle adjustment to obtain the first clock corresponding to the third physical transmission channel in the 8 groups, and so on, until the calibration of 64 physical transmission channels is completed.
[0127] In some embodiments, the second clock calibration module 208 is specifically configured as follows: in the process of the duty cycle calibration code changing from 0 to a preset maximum value, the comparison result of the comparator in the second clock calibration module 208 is periodically sampled, and the first duty cycle calibration code when the sampled comparison result jumps from a low level to a high level is recorded; in the process of the duty cycle calibration code changing from a preset maximum value to 0, the comparison result of the comparator in the second clock calibration module 208 is periodically sampled, and the second duty cycle calibration code when the sampled comparison result jumps from a low level to a high level is recorded; the phase of the first phase clock is adjusted according to the average value of the first duty cycle calibration code and the second duty cycle calibration code to obtain the first clock corresponding to the corresponding physical sending channel 201.
[0128] In some implementations, as shown in FIG11 , the second clock calibration module 208 includes: a third clock calibration submodule 1101 implemented in hardware and a fourth clock calibration submodule 1102 implemented in software.
[0129] When no failure of the hardware-implemented third clock calibration submodule 1101 is detected, the hardware-implemented third clock calibration submodule 1101 performs a second phase deviation calibration on the first phase clock in the four-phase clock after duty cycle adjustment to obtain the first clock corresponding to the corresponding physical sending channel.
[0130] When a failure of the third clock calibration submodule 1101 implemented in hardware is detected, the fourth clock calibration submodule 1102 implemented in software performs a second phase deviation calibration on the first phase clock in the four-phase clock after duty cycle adjustment to obtain the first clock corresponding to the corresponding physical sending channel.
[0131] In some embodiments, the second clock transmission module 302 is specifically configured to: send the second phase clock in the four-phase clock after duty cycle adjustment to the third clock calibration module 304, determine the fourth clock based on the second phase clock and the third phase clock in the four-phase clock after duty cycle adjustment, and send the fourth clock to the physical receiving channel 301.
[0132] The receiving circuit 102 further includes: a third clock calibration module 304 (such as the RX IO DCC calibration module in FIG14 ), configured to perform a third phase deviation calibration on the second phase clock of the four-phase clock after duty cycle adjustment to obtain a third clock corresponding to the corresponding physical receiving channel 301 .
[0133] The physical receiving channel 301 is specifically configured to receive data sent by the physical sending channel 201 according to the third clock and the fourth clock after the third phase deviation is calibrated, and buffer the received data.
[0134] In some implementations, different physical receiving channels correspond to different third clock calibration modules 304 .
[0135] In some implementations, some physical receiving channels may use the same third clock calibration module 304. For example, n physical receiving channels may be divided into D groups, where D is an integer greater than or equal to 1. Physical receiving channels within a group may use the same third clock calibration module 304 for calibration, while physical receiving channels in different groups may use different third clock calibration modules 304. Therefore, during calibration, physical receiving channels within the same group may use the same third clock calibration module 304 for serial calibration, while physical receiving channels in different groups may use different third clock calibration modules 304 for parallel calibration. For example, 64 physical receiving channels are divided into 8 groups, each group includes 8 physical receiving channels, and 8 third clock calibration modules 304 are used for calibration. First, 8 third clock calibration modules 304 are used to perform third phase deviation calibration on the second phase clock in the four-phase clock after duty cycle adjustment to obtain the third clock corresponding to the first physical receiving channel in the 8 groups. After the calibration of the first physical receiving channel in the 8 groups is completed, 8 third clock calibration modules 304 are reused to perform third phase deviation calibration on the second phase clock in the four-phase clock after duty cycle adjustment to obtain the third clock corresponding to the second physical receiving channel in the 8 groups. After the calibration of the second physical receiving channel in the 8 groups is completed, 8 third clock calibration modules 304 are reused to perform third phase deviation calibration on the second phase clock in the four-phase clock after duty cycle adjustment to obtain the third clock corresponding to the third physical receiving channel in the 8 groups, and so on, until the calibration of 64 physical receiving channels is completed.
[0136] In some embodiments, the third clock calibration module 304 is specifically configured as follows: in the process of the duty cycle calibration code changing from 0 to a preset maximum value, the comparison result of the comparator in the third clock calibration module 304 is periodically sampled, and the third duty cycle calibration code is recorded when the sampled comparison result jumps from a low level to a high level; in the process of the duty cycle calibration code changing from a preset maximum value to 0, the comparison result of the comparator in the third clock calibration module 304 is periodically sampled, and the fourth duty cycle calibration code is recorded when the sampled comparison result jumps from a low level to a high level; the phase of the third phase clock is adjusted according to the average value of the third duty cycle calibration code and the fourth duty cycle calibration code to obtain the third clock corresponding to the corresponding physical receiving channel.
[0137] In some implementations, as shown in FIG12 , the third clock calibration module 304 includes: a fifth clock calibration submodule 1201 implemented in hardware and a sixth clock calibration submodule 1202 implemented in software.
[0138] In the absence of a fault in the hardware-implemented fifth clock calibration submodule 1201, the hardware-implemented fifth clock calibration submodule 1201 performs a third phase deviation calibration on the second phase clock of the four-phase clock after duty cycle adjustment to obtain a third clock corresponding to the corresponding physical receiving channel.
[0139] When a failure of the fifth clock calibration submodule 1201 implemented in hardware is detected, the sixth clock calibration submodule 1202 implemented in software performs a third phase deviation calibration on the second phase clock in the four-phase clock after duty cycle adjustment to obtain the third clock corresponding to the corresponding physical receiving channel.
[0140] In some embodiments, the receiving circuit 102 further includes: a phase detection module 305 configured to detect the phase difference between the second phase clock and the track clock; and a sixth clock calibration module 306 (such as the RX DLL calibration module in Figure 14), configured to perform a sixth phase deviation calibration on the phase difference between the second phase clock and the track clock, so that the phase difference between the second phase clock and the track clock is less than one unit of the delay locked loop calibration code.
[0141] In some embodiments, the sixth clock calibration module 306 is specifically configured to: adjust the delay phase-locked loop calibration code according to the phase difference between the second phase clock and the track clock; adjust the phase difference between the second phase clock and the track clock according to the delay phase-locked loop calibration code; continue to adjust the delay phase-locked loop calibration code according to the phase difference between the second phase clock and the track clock until the phase difference between the second phase clock and the track clock is less than one unit of the delay phase-locked loop calibration code.
[0142] In some embodiments, the sixth clock calibration module 306 is specifically configured to adjust the delay phase-locked loop calibration code according to the phase difference between the second phase clock and the track clock in the following manner: when the phase difference between the second phase clock and the track clock indicates that the phase of the second phase clock is earlier than the phase of the track clock, the delay phase-locked loop calibration code is increased; when the phase difference between the second phase clock and the track clock indicates that the phase of the second phase clock is later than the phase of the track clock, the delay phase-locked loop calibration code is reduced.
[0143] In some implementations, as shown in FIG13 , the sixth clock calibration module 306 includes: an eleventh clock calibration submodule 1301 implemented in hardware and a twelfth clock calibration submodule 1302 implemented in software.
[0144] If no fault is detected in the eleventh hardware-implemented clock calibration submodule 1301, the eleventh hardware-implemented clock calibration submodule 1301 performs a sixth phase deviation calibration on the phase difference between the second-phase clock and the track clock, such that the phase difference between the second-phase clock and the track clock is less than one unit of the delay-locked loop calibration code.
[0145] When a failure of the hardware-implemented eleventh clock calibration submodule 1301 is detected, the software-implemented twelfth clock calibration submodule 1302 performs a sixth phase deviation calibration on the phase difference between the second phase clock and the track clock, so that the phase difference between the second phase clock and the track clock is less than one unit of the delay locked loop calibration code.
[0146] The data processing device provided in the embodiment of the present application realizes data transmission across DIEs through n parallel physical transmission channels and n parallel physical receiving channels, thereby improving the signal bandwidth of data transmission. The clock conversion module is calibrated through the first clock calibration module and the offset voltage calibration module, thereby reducing wiring delays, reducing data transmission delays, and ensuring the reliability of data transmission.
[0147] In some implementations, the sampled data is recovered and processed by a digital sampling calibration module, thereby reducing the sampling delay of the digital-to-analog path, further reducing the overall data transmission delay, and improving the reliability of data transmission.
[0148] In some embodiments, calibration modules implemented in hardware and software collaborate to perform corresponding calibration on the data processing device, ensuring normal calibration and further improving the reliability of data transmission.
[0149] In order to more completely present the data processing device of the embodiment of the present application, the following example is given as an example. The enumerated example does not limit the protection scope of the data processing device of the embodiment of the present application.
[0150] Example
[0151] As shown in FIG14 , the data processing device includes a sending circuit and a receiving circuit.
[0152] The transmitting circuit includes: n parallel physical transmitting channels, offset voltage calibration module, PLL, DLL&DCC, CPU, first DIV, TX IO DCC calibration module, phase interpolator, RX sampling calibration module, TX DLL&DCC calibration module.
[0153] Each physical transmission channel includes DIE-1, which includes: a first FIFO / REG, a Serializer (analog serializer) and a first de-skew calibration module.
[0154] The first FIFO / REG is configured to buffer data received from an upper layer.
[0155] The serializer (simulated serializer) is configured to read data from the sending buffer module (ie, the first FIFO / REG) according to the first clock and the second clock.
[0156] The first de-skew calibration module is configured to perform a fourth phase deviation calibration on the read data, and send the data after the fourth phase deviation calibration to DIE-2.
[0157] The PLL is configured to output a single-ended clock.
[0158] The DLL&DCC is configured to convert the single-ended clock output by the PLL into a four-phase clock, adjust the duty cycle of the four-phase clock, send the first phase clock of the four-phase clock after duty cycle adjustment to the TX IO DCC calibration module, and send the first phase clock and the second phase clock to the first DIV.
[0159] The first DIV is configured to determine a second clock according to the first-phase clock and the second-phase clock of the four-phase clock after the duty cycle is adjusted, and send the second clock to the Serializer.
[0160] The TX IO DCC calibration module is configured to perform a second phase deviation calibration on a first phase clock of the four-phase clock after the duty cycle is adjusted to obtain a first clock corresponding to the corresponding physical transmission channel.
[0161] The phase interpolator is configured to adjust the phase difference of the duty cycle adjusted four-phase clocks.
[0162] The offset voltage calibration block is configured to perform voltage offset calibration for the DLL&DCC blocks.
[0163] The TX DLL&DCC calibration module is configured to perform a first phase deviation calibration on the DLL&DCC after voltage offset calibration.
[0164] The RX sampling calibration module is configured to control the phase interpolator to adjust the phase difference of the four-phase clock after the duty cycle is adjusted according to the data received by DIE-2 and the phase difference of the four-phase clock after the duty cycle is adjusted output by the phase interpolator.
[0165] The receiving circuit includes: n parallel physical receiving channels, RX IO DCC calibration module, DCDL, second DIV, phase detection module, RX DLL calibration module, channel data calibration feedback module, sideband transmission feedback module, CPU configuration SPI transmission bill fast module.
[0166] Each physical receiving channel includes DIE-2, which includes: a second de-skew calibration module, a Deserializer (analog deserializer), a digital sampling calibration module, and a second FIFO / REG.
[0167] The second de-skew calibration module is configured to perform a fifth phase deviation calibration on the data sent by DIE-1.
[0168] The deserializer (analog deserializer) is configured to sample the fifth phase offset-calibrated data according to the third clock and the fourth clock.
[0169] The digital sampling calibration module is configured to perform recovery processing on the sampled data.
[0170] The second FIFO / REG is configured to cache the restored data.
[0171] The DCDL is configured to send the second phase clock of the four-phase clock after duty cycle adjustment to the RX IO DCC calibration module; and send the second phase clock and the third phase clock of the four-phase clock after duty cycle adjustment to the second DIV.
[0172] The phase detection module is configured to detect a phase difference between the second phase clock and the track clock.
[0173] The RX DLL calibration module is configured to perform a sixth phase deviation calibration on the phase difference between the second phase clock and the track clock, so that the phase difference between the second phase clock and the track clock is less than one unit of the delay locked loop calibration code.
[0174] The RX IO DCC calibration module is configured to perform a third phase deviation calibration on the second phase clock of the four-phase clock after the duty cycle is adjusted to obtain a third clock corresponding to the corresponding physical receiving channel.
[0175] The second DIV is configured to determine a fourth clock according to the second-phase clock and the third-phase clock in the four-phase clock after the duty cycle is adjusted, and send the fourth clock to the Deserializer.
[0176] The channel data calibration feedback module is configured to detect whether the data after DIE-2 recovery processing matches the expected data. When it is detected that the data after DIE-2 recovery processing matches the expected data, the data after DIE-2 recovery processing is transmitted to the RX sampling calibration module of the transmitting circuit through the sideband transmission feedback module.
[0177] The CPU configures the SPI transmission feedback module to activate the software feedback channel of the RX sampling calibration module to the CPU and complete the SPI communication link across the DIE.
[0178] N parallel physical transmission channels and n parallel physical receiving channels constitute n parallel physical transmission channels.
[0179] FIG15 is a flowchart of a link training method provided in an embodiment of the present application.
[0180] In a second aspect, referring to FIG. 15 , the present embodiment provides a link training method, including steps 1500 to 1503 .
[0181] Step 1500: Configure the data transmission rate of the data processing device.
[0182] In some embodiments, configuring the data transmission rate of the data processing device (step 1500) includes configuring the data transmission rate of the data processing device to any one of N lowest rates; N is an integer greater than or equal to 2.
[0183] In some embodiments, after configuring the data transmission rate of the data processing device to any one of N lowest rates, configuring the data transmission rate of the above-mentioned data processing device (step 1500) further includes: when the data processing device at a low rate is operating normally, configuring the data transmission rate of the data processing device to any one of M highest rates; M is an integer greater than or equal to 2.
[0184] Step 1501: input the test data into the physical transmission channel of the data processing device for data transmission; during the data transmission process, the data processing device is calibrated accordingly by a calibration module in the data processing device.
[0185] Step 1502 : After calibration is completed, scan the data sent by the physical transmission channel and the data received by the corresponding physical reception channel.
[0186] Step 1503, adjust the data transmission rate of the data processing device according to the data sent by the physical transmission channel and the data received by the corresponding physical receiving channel, and continue to input the test data into the physical transmission channel of the data processing device for data transmission until the preset maximum data transmission rate is met.
[0187] In some embodiments, adjusting the data transmission rate of the data processing device based on the data sent by the physical transmission channel and the data received by the corresponding physical reception channel (step 1503) includes: determining a bit error rate based on the data sent by the physical transmission channel and the data received by the corresponding physical reception channel; and adjusting the data transmission rate of the data processing device based on the bit error rate.
[0188] In some implementations, satisfying a preset requirement means that a bit error rate satisfies a preset requirement.
[0189] In some embodiments, adjusting the data transmission rate of the data processing device according to the bit error rate includes: increasing the data transmission rate of the data processing device when the bit error rate meets the preset requirements; and reducing the data transmission rate of the data processing device when the bit error rate does not meet the preset requirements.
[0190] In some embodiments, the link training method further includes: configuring the data transmission rate of the data processing device to a maximum data transmission rate that meets preset requirements; and performing data transmission based on the maximum data transmission rate that meets the preset requirements.
[0191] In some implementations, link training may be performed in an intrinsic (Valid) test mode or in a BIST signal test mode.
[0192] In some implementations, whether the bit error rate meets the preset condition may be determined in the Valid test mode, or may be determined in the BIST signal test mode.
[0193] In some implementations, during the data transmission process, when the calibration module feedback indicates a fatal error, the data transmission process is exited and link training is performed again.
[0194] The link training method of the embodiment of the present application ensures the reliability of data transmission by performing link training on the data processing device.
[0195] In the third aspect, referring to Figure 16, an embodiment of the present application provides an electronic device, including: the above-mentioned data processing device 1601; at least one processor 1602; and a memory 1603, on which at least one computer program is stored. When the at least one computer program is executed by the at least one processor 1602, the at least one processor 1602 implements the above-mentioned link training method.
[0196] In some implementations, the electronic device further includes: at least one I / O interface 1604 , connected between the processor 1602 and the memory 1603 , and configured to implement information interaction between the processor 1602 and the memory 1603 .
[0197] The processor 1602 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 1603 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and flash memory (FLASH); the I / O interface (read-write interface) 1604 is connected between the processor 1602 and the memory 1603, and can realize information exchange between the processor 1602 and the memory 1603, including but not limited to a data bus (Bus), etc.
[0198] In some implementations, the processor 1602 , the memory 1603 , and the I / O interface 1604 are connected to each other, and in turn to other components of the computing device, via a bus 1605 .
[0199] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the processor implements the above-mentioned link training method.
[0200] It will be appreciated by those skilled in the art that all or some of the steps in the method disclosed above, and the functional modules / units in the device can be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware implementation, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor (such as a central processing unit, a digital signal processor, or a microprocessor), or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As is well known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable, and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, as is well known to those skilled in the art, communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0201] Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted only in a general illustrative sense and not for purposes of limitation. In some instances, it will be apparent to those skilled in the art that, unless otherwise expressly indicated, features, characteristics, and / or elements described in conjunction with a particular embodiment may be used alone or in combination with features, characteristics, and / or elements described in conjunction with other embodiments. Therefore, it will be understood by those skilled in the art that various changes in form and detail may be made without departing from the scope of the present application as set forth in the appended claims.
Claims
1. A data processing device, comprising: Transmitting circuit and receiving circuit; Wherein, the transmitting circuit comprises: n parallel physical transmitting channels; the receiving circuit comprises: n parallel physical receiving channels; wherein n is an integer greater than or equal to 2; The physical sending channel is configured to receive data from an upper layer and send the received data according to a first clock and a second clock; the physical receiving channel is configured to receive data sent by the physical sending channel according to a third clock and a fourth clock, and cache the received data.
2. The data processing device according to claim 1, wherein the sending circuit further comprises: A clock conversion module, a first clock transmission module, a phase interpolator, a first clock calibration module, and an offset voltage calibration module; The receiving circuit further includes: a second clock transmission module; The clock conversion module is configured to convert a single-ended clock output by a phase-locked loop into a four-phase clock, adjust the duty cycle of the four-phase clock, and send a first phase clock of the four-phase clock after the duty cycle adjustment as the first clock to the physical transmission channel; The first clock transmission module is configured to determine the second clock according to the first phase clock and the second phase clock of the four-phase clock after the duty cycle is adjusted, and send the second clock to the physical sending channel; wherein the phase interpolator is configured to adjust the phase difference of the duty cycle adjusted four-phase clock; The second clock transmission module is configured to send the second phase clock of the four-phase clock after the duty cycle is adjusted as the third clock to the physical receiving channel, determine the fourth clock according to the second phase clock and the third phase clock of the four-phase clock after the duty cycle is adjusted, and send the fourth clock to the physical receiving channel; Wherein, the first clock calibration module is configured to perform a first phase deviation calibration on the clock conversion module; The offset voltage calibration module is configured to perform voltage offset calibration on the clock conversion module.
3. The data processing device according to claim 2, wherein the receiving circuit further comprises: a channel data calibration feedback module, configured to detect whether the data received by the physical receiving channel matches the expected data, and if it is detected that the data received by the physical receiving channel matches the expected data, transmit the data received by the physical receiving channel to the receiving sampling calibration module of the transmitting circuit through the sideband transmission feedback module; The transmitting circuit further comprises: The receiving sampling calibration module is configured to control the phase interpolator to adjust the phase difference of the duty cycle-adjusted four-phase clock according to the data received by the physical receiving channel and the phase difference of the duty cycle-adjusted four-phase clock output by the phase interpolator.
4. The data processing device according to claim 3, wherein: The receiving sampling calibration module is configured as follows: Scanning the phase difference of the duty cycle-adjusted four-phase clock output by the phase interpolator with a preset step length as a period; Determine a 1-bit calibration flag bit according to the scan result and the data received by the physical receiving channel; Continue to perform the duty cycle of the phase interpolator output with a preset step length Scanning the phase difference of the adjusted four-phase clock until an m-bit calibration flag is obtained; wherein m is an integer greater than or equal to 2; Filter the m-bit calibration flag bit; Determine the received sampling calibration code according to the center position of the continuous sampling correct segment in the scanning result corresponding to the filtered m-bit calibration flag bit; The phase interpolator is controlled to adjust the phase difference of the four-phase clock after the duty cycle is adjusted according to the received sampling calibration code.
5. The data processing device according to claim 3, wherein: The receiving sampling calibration module comprises: a first receiving sampling calibration submodule implemented by hardware and a second receiving sampling calibration submodule implemented by software; In the case where no failure of the first receiving sampling calibration submodule implemented by the hardware is detected, the first receiving sampling calibration submodule implemented by the hardware is used to control the phase interpolator to adjust the phase difference of the four-phase clock after the duty cycle is adjusted according to the data received by the physical receiving channel and the phase difference of the four-phase clock after the duty cycle is adjusted output by the phase interpolator; When a failure of the first receiving sampling calibration submodule implemented by the hardware is detected, the second receiving sampling calibration submodule implemented by the software is used to control the phase interpolator to adjust the phase difference of the four-phase clock after the duty cycle is adjusted based on the data received by the physical receiving channel and the phase difference of the four-phase clock after the duty cycle is adjusted output by the phase interpolator.
6. The data processing device according to claim 2, wherein the sending circuit further comprises: The second clock calibration module is configured to perform a second phase deviation calibration on the first phase clock of the four-phase clock after the duty cycle is adjusted to obtain a first clock corresponding to the corresponding physical sending channel; The physical transmission channel is configured to receive data from an upper layer, and transmit the received data according to the first clock and the second clock calibrated with a second phase deviation.
7. The data processing device according to claim 6, wherein: The second clock calibration module is configured as follows: During the change of the duty cycle calibration code from 0 to a preset maximum value, periodically sampling the comparison result of the comparator in the second clock calibration module, and recording the first duty cycle calibration code when the sampled comparison result jumps from a low level to a high level; During the change process of the duty cycle calibration code from the preset maximum value to 0, periodically sampling the comparison result of the comparator in the second clock calibration module, and recording the second duty cycle calibration code when the comparison result obtained by sampling jumps from a low level to a high level; The phase of the first phase clock is adjusted according to the average value of the first duty cycle calibration code and the second duty cycle calibration code to obtain the first clock corresponding to the corresponding physical sending channel.
8. The data processing device according to claim 6, wherein: The second clock calibration module includes: a third clock calibration submodule implemented by hardware and a fourth clock calibration submodule implemented by software; In the case where no failure of the third clock calibration submodule implemented by the hardware is detected, the third clock calibration submodule implemented by the hardware performs a second phase deviation calibration on the first phase clock of the four-phase clock after the duty cycle is adjusted to obtain the first clock corresponding to the corresponding physical sending channel; In the case of detecting a failure of the third clock calibration submodule implemented by the hardware, The fourth clock calibration submodule implemented by the software performs a second phase deviation calibration on the first phase clock of the four-phase clock after the duty cycle is adjusted to obtain the first clock corresponding to the corresponding physical sending channel.
9. The data processing device according to claim 2, wherein the receiving circuit further comprises: The third clock calibration module is configured to perform a third phase deviation calibration on the second phase clock of the four-phase clock after the duty cycle is adjusted to obtain a third clock corresponding to the corresponding physical receiving channel; The physical receiving channel is configured to receive data sent by the physical sending channel according to the third clock after the third phase deviation is calibrated and the fourth clock, and buffer the received data.
10. The data processing device according to claim 9, wherein: The third clock calibration module is configured as follows: During the change of the duty cycle calibration code from 0 to a preset maximum value, periodically sampling the comparison result of the comparator in the third clock calibration module, and recording the third duty cycle calibration code when the comparison result obtained by sampling jumps from a low level to a high level; During the change process of the duty cycle calibration code from the preset maximum value to 0, periodically sampling the comparison result of the comparator in the third clock calibration module, and recording the fourth duty cycle calibration code when the comparison result obtained by sampling jumps from a low level to a high level; The phase of the third phase clock is adjusted according to the average value of the third duty cycle calibration code and the fourth duty cycle calibration code to obtain the third clock corresponding to the corresponding physical receiving channel.
11. The data processing device according to claim 9, wherein: The third clock calibration module includes: a fifth clock calibration submodule implemented by hardware and a sixth clock calibration submodule implemented by software; In the case where no failure of the fifth clock calibration submodule implemented by the hardware is detected, the third phase deviation calibration is performed on the second phase clock of the four-phase clock after the duty cycle is adjusted by the fifth clock calibration submodule implemented by the hardware to obtain the third clock corresponding to the corresponding physical receiving channel; When a failure of the fifth clock calibration submodule implemented by the hardware is detected, the sixth clock calibration submodule implemented by the software performs a third phase deviation calibration on the second phase clock of the four-phase clock after the duty cycle is adjusted to obtain the third clock corresponding to the corresponding physical receiving channel.
12. The data processing device according to claim 1, wherein: The data processing device comprises: a first set of the sending circuit and the receiving circuit, and a second set of the sending circuit and the receiving circuit; The n physical transmission channels in the first set of the transmitting circuits and the receiving circuits and the n physical receiving channels in the second set of the transmitting circuits and the receiving circuits are located on the first bare die, and the n physical receiving channels in the first set of the transmitting circuits and the receiving circuits and the n physical transmitting channels in the second set of the transmitting circuits and the receiving circuits are located on the second bare die.
13. The data processing device according to any one of claims 1 to 12, wherein: The physical transmission channel includes: A send buffer module configured to buffer data received from an upper layer; A simulation serializer, configured to read data from the sending buffer module according to the first clock and the second clock, and send the read data; The physical receiving channel includes: an analog deserializer configured to sample data sent by the physical sending channel according to the third clock and the fourth clock; A receiving cache module is configured to cache sampled data.
14. The data processing device according to claim 13, wherein the physical transmission channel further comprises: a fourth clock calibration module, configured to perform a fourth phase deviation calibration on the data read by the analog serializer, and send the data after the fourth phase deviation calibration to the physical receiving channel; The physical receiving channel further includes: a fifth clock calibration module configured to perform a fifth phase deviation calibration on the data sent by the physical sending channel; The analog deserializer is configured to sample the data after the fifth phase deviation calibration according to the third clock and the fourth clock.
15. The data processing apparatus according to claim 14, wherein: The fourth clock calibration module includes: a seventh clock calibration submodule implemented by hardware and an eighth clock calibration submodule implemented by software; In the case where no failure of the seventh clock calibration submodule implemented by the hardware is detected, the seventh clock calibration submodule implemented by the hardware implements a fourth phase deviation calibration on the data read by the analog serializer, and sends the data after the fourth phase deviation calibration to the physical receiving channel; When a failure of the seventh clock calibration submodule implemented by the hardware is detected, the eighth clock calibration submodule implemented by the software performs a fourth phase deviation calibration on the data read by the analog serializer, and sends the data after the fourth phase deviation calibration to the physical receiving channel.
16. The data processing apparatus according to claim 14, wherein: The fifth clock calibration module includes: a ninth clock calibration submodule implemented by hardware and a tenth clock calibration submodule implemented by software; In the case where no failure of the ninth clock calibration submodule implemented by the hardware is detected, performing a fifth phase deviation calibration on the data sent by the physical sending channel through the ninth clock calibration submodule implemented by the hardware; In the case where a failure of the ninth clock calibration submodule implemented by the hardware is detected, the fifth phase deviation calibration is performed on the data sent by the physical sending channel through the tenth clock calibration submodule implemented by the software.
17. The data processing device according to claim 13, wherein the physical receiving channel further comprises: A digital sampling calibration module, configured to perform recovery processing on the sampled data; The receiving cache module is configured to cache the data after recovery processing.
18. The data processing device according to any one of claims 1 to 12, wherein the receiving circuit further comprises: a phase detection module, configured to detect a phase difference between the second phase clock and a track clock; The sixth clock calibration module is configured to calibrate the second phase clock and the track clock. The phase difference performs a sixth phase deviation calibration so that the phase difference between the second phase clock and the track clock is less than one unit of the delay locked loop calibration code.
19. The data processing apparatus according to claim 18, wherein: The sixth clock calibration module is configured as follows: adjusting a delay-locked loop calibration code according to a phase difference between the second phase clock and the track clock; adjusting the phase difference between the second phase clock and the track clock according to the delay locked loop calibration code; Continue to execute the step of adjusting the delay locked loop calibration code according to the phase difference between the second phase clock and the track clock until the phase difference between the second phase clock and the track clock is less than one unit of the delay locked loop calibration code.
20. The data processing apparatus according to claim 18, wherein: The sixth clock calibration module comprises: an eleventh clock calibration submodule implemented by hardware and a twelfth clock calibration submodule implemented by software; In the case where the fault of the eleventh clock calibration submodule implemented by the hardware is not detected, a sixth phase deviation calibration is performed on the phase difference between the second phase clock and the track clock through the eleventh clock calibration submodule implemented by the hardware, so that the phase difference between the second phase clock and the track clock is less than one unit of the delay locked loop calibration code; When a failure of the eleventh clock calibration submodule implemented by the hardware is detected, the sixth phase deviation calibration is performed on the phase difference between the second phase clock and the track clock through the twelfth clock calibration submodule implemented by the software, so that the phase difference between the second phase clock and the track clock is less than one unit of the delay locked loop calibration code.
21. The data processing device according to any one of claims 1 to 12, wherein: The offset voltage calibration module is configured as follows: Periodically sampling the comparison result of the comparator in the clock conversion module; Adjust the offset voltage control word according to the ratio of the high level and the low level in the comparison result obtained by sampling; Adjusting the voltage of the clock conversion module according to the adjusted offset voltage control word; The periodic sampling of the comparison result of the comparator in the clock conversion module continues until the ratio of the high level to the low level is 1.
22. The data processing device according to any one of claims 1 to 12, wherein: The first clock calibration module is configured as follows: Performing coarse adjustment calibration and fine adjustment calibration on the phase difference of the four-phase clock; The phase difference of the four-phase clock after the duty cycle is adjusted is calibrated.
23. The data processing apparatus according to claim 22, wherein: The first clock calibration module is configured to implement the coarse adjustment calibration and fine adjustment calibration of the phase difference of the four-phase clock in the following manner: Set the initial value of the coarse adjustment calibration code to 0; Periodically sampling the comparison result of the comparator in the clock conversion module; Adjust the coarse adjustment calibration code according to the ratio of the high level and the low level in the comparison result obtained by sampling; adjusting the phase difference of the four-phase clock according to the adjusted coarse adjustment calibration code; Continue to perform the periodic sampling of the comparison result of the comparator in the clock conversion module until the ratio of the high level to the low level is 1; Set the initial value of the fine-tuning calibration code to 256; Periodically sampling the comparison result of the comparator in the clock conversion module; The fine-tuning calibration code is adjusted according to the ratio of the high level and the low level in the comparison result obtained by sampling; adjusting the phase difference of the four-phase clock according to the adjusted fine adjustment calibration code; The periodic sampling of the comparison result of the comparator in the clock conversion module continues until the ratio of the high level to the low level is 1.
24. The data processing apparatus according to claim 22, wherein: The first clock calibration module is configured to implement the calibration of the phase difference of the four-phase clock after the duty cycle is adjusted in the following manner: During the change of the duty cycle calibration code from 0 to a preset maximum value, periodically sampling the comparison result of the comparator in the clock conversion module, and recording the first duty cycle calibration code when the comparison result obtained by sampling jumps from a low level to a high level; During the change process of the duty cycle calibration code from the preset maximum value to 0, periodically sampling the comparison result of the comparator in the clock conversion module, and recording the second duty cycle calibration code when the comparison result obtained by sampling jumps from a low level to a high level; The phase difference of the duty cycle-adjusted four-phase clock is adjusted according to an average value of the first duty cycle calibration code and the second duty cycle calibration code.
25. The data processing device according to any one of claims 1 to 12, wherein: The first clock calibration module includes: a first clock calibration submodule implemented by hardware and a second clock calibration submodule implemented by software; In the case where no failure of the hardware-implemented first clock calibration submodule is detected, performing a first phase deviation calibration on the clock conversion module through the hardware-implemented first clock calibration submodule; In the case where a failure of the first clock calibration submodule implemented by hardware is detected, the first phase deviation calibration of the clock conversion module is implemented by the second clock calibration submodule implemented by software.
26. The data processing apparatus according to any one of claims 1 to 12, wherein: The offset voltage calibration module comprises: a first offset voltage calibration submodule implemented by hardware and a second offset voltage calibration submodule implemented by software; In the case where no failure of the hardware-implemented first offset voltage calibration submodule is detected, voltage offset calibration is performed on the clock conversion module through the hardware-implemented first offset voltage calibration submodule; In the case where a failure of the first offset voltage calibration submodule implemented by hardware is detected, voltage offset calibration is performed on the clock conversion module through the second offset voltage calibration submodule implemented by software.
27. A link training method, comprising: Configuring the data transmission rate of the data processing apparatus according to any one of claims 1 to 26; Input the test data into the physical transmission channel of the data processing device for data transmission; wherein, during the data transmission process, the data processing device is calibrated accordingly by a calibration module in the data processing device; After the calibration is completed, scan the data sent by the physical sending channel and the data received by the corresponding physical receiving channel; The data transmission rate of the data processing device is adjusted according to the data sent by the physical sending channel and the corresponding data received by the physical receiving channel, and the step of inputting the test data into the physical sending channel of the data processing device for data transmission is continued until the preset maximum data transmission rate is met.
28. The link training method according to claim 27, further comprising: Configuring the data transmission rate of the data processing device to a maximum data transmission rate that meets preset requirements; Data is transferred based on the highest data transfer rate that meets the preset requirements.
29. The link training method according to any one of claims 27 to 28, wherein: The data transmission rate of the data processing device configured as claimed in any one of claims 1 to 24 includes: The data transmission rate of the data processing device is configured to be any one of N lowest rates; wherein N is an integer greater than or equal to 2.
30. The link training method according to claim 29, after configuring the data transmission rate of the data processing device to any one of N lowest rates, configuring the data transmission rate of the data processing device according to any one of claims 1 to 24 further comprises: When the data processing device at a low rate operates normally, the data transmission rate of the data processing device is configured to be any one of M highest rates; wherein M is an integer greater than or equal to 2.
31. The link training method according to any one of claims 27 to 28, wherein: The adjusting the data transmission rate of the data processing device according to the data sent by the physical sending channel and the corresponding data received by the physical receiving channel comprises: Determine a bit error rate according to data sent by the physical transmission channel and data received by the corresponding physical reception channel; The data transmission rate of the data processing device is adjusted according to the bit error rate.
32. An electronic device comprising: The data processing device according to any one of claims 1 to 26; at least one processor; A memory having at least one computer program stored thereon, wherein when the at least one computer program is executed by the at least one processor, the at least one processor implements the link training method described in any one of claims 27 to 31.
33. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the processor implements the link training method according to any one of claims 27 to 31.
Citation Information
Patent Citations
FPGA-based high-speed serial transmit-receive interface and working method thereof
CN106303759A
Extensible adaptive NxN channel data communication system
CN107066419A
Integrated circuit in physical layer of receiver, and physical layer of receiver
CN112311405A
System of virtual data channels across clock boundaries in an integrated circuit
US20070038782A1
