A phase interpolation calibration method, digital calibration module and pseudo-random detection system
Through the phase interpolation calibration method, the digital calibration module is used to adjust the phase difference between the clock signal and the data signal in the high-speed interface chip, which solves the problem of increased power consumption and area of phase calibration in the existing technology, and achieves higher accuracy and applicability. .
Patent Information
- Application Number
- CN202410954574.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-17
AI Technical Summary
In high-speed interface chips, during the pseudo-random code test process, there may be a phase difference between the recovered clock signal and the data signal, resulting in sampling errors. The existing technology uses a full-rate delay phase-locked loop or a passive polyphase filter for calibration, which increases power consumption and area.
Using the phase interpolation calibration method, the digital calibration module sends a phase interpolation sequence to the phase adjustment unit, adjusts the phase difference between the recovered clock signal and the data signal, determines the communication environment status based on the bit error value, and generates an eye diagram sequence to determine the final phase interpolation value , to achieve phase calibration.
On the basis of reducing the power consumption and area of the interface chip, the calibration accuracy is improved, and the applicability and response speed of the pseudo-random detection system are enhanced.
Smart Images

Figure CN118509130B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of integrated circuits, and in particular to a phase interpolation calibration method, a digital calibration module and a pseudo-random detection system. Background Art
[0002] In high-speed interface chips, it is necessary to test the signal passing through the channel to determine the signal loss. In the prior art, a pseudo-random binary sequence (PRBS) code stream is usually used to simulate the real chip line network code stream environment to test the high-speed serial channel.
[0003] Normally, the pseudo-random code test scheme is as follows: the pseudo-random code generator on the analog side generates an initial pseudo-random code, which is transmitted to the signal channel recovery link and then recovered by the signal channel recovery link to obtain a recovered clock signal and a recovered data signal. At the same time, the pseudo-random code detector on the analog side compares the recovered data signal to obtain error statistics. For example, the pseudo-random code detector obtains a reference data signal based on the initial pseudo-random code according to the original generating polynomial, and then compares the difference between the recovered data signal and the reference data signal to obtain error statistics.
[0004] However, in this process, when the signal channel recovery link obtains the recovered clock signal and data signal, the recovered clock signal and the recovered data signal may have different delays, resulting in a phase difference between the recovered clock signal and the recovered data signal. If the recovered data signal is directly sampled using the recovered clock signal, errors will occur. Therefore, in order to avoid errors, the recovered clock signal or the recovered data signal needs to be calibrated to align the phases of the recovered clock signal and the recovered data signal.
[0005] Traditional pseudo-random code test schemes often use a full-rate delay-locked loop (DLL) or passive polyphase filter (PPF) unit to calibrate the phase of the clock signal. However, this method increases the power consumption and area of the interface chip.
[0006] On this basis, a calibration solution is urgently needed to improve the existing calibration process while reducing the power consumption and area of the interface chip. Summary of the invention
[0007] The present invention provides a phase interpolation calibration method, a digital calibration module and a pseudo-random detection system, which can improve the existing calibration process and enhance the calibration accuracy on the basis of reducing the power consumption and area of an interface chip.
[0008] The present invention can be implemented like this:
[0009] In a first aspect, the present invention provides a phase interpolation calibration method, which is applied to a digital calibration module in a pseudo-random detection system, wherein the pseudo-random detection system also includes an analog detection module, and the analog detection module includes a signal channel recovery link, a phase adjustment unit, and an analog detection unit; the phase adjustment unit is respectively connected to the signal channel recovery link, the digital calibration module, and the analog detection unit, and the digital calibration module is also connected to the analog detection unit; wherein the signal channel recovery link is used to obtain a recovered data signal and a recovered clock signal; the analog detection unit is used to detect a bit error value of the recovered data signal; the phase adjustment unit is used to adjust the phase of the recovered data signal or the recovered clock signal according to phase interpolation; the phase interpolation calibration method includes:
[0010] Sending a phase interpolation sequence to the phase adjustment unit; wherein the phase interpolation sequence includes a plurality of different phase interpolations, and the phase interpolation is used to adjust the phase difference between the recovered clock signal and the recovered data signal;
[0011] receiving the bit error value of each phase interpolation based on the recovered data signal sent sequentially by the analog detection unit;
[0012] For each phase interpolation, determining the communication environment state corresponding to the recovered data signal according to the bit error value; the communication environment state includes a pass state or a fail state;
[0013] An eye diagram sequence is generated according to all communication environment states, and a final phase interpolation is determined according to the eye diagram sequence.
[0014] Optionally, the step of determining, for each phase interpolation, a communication environment state corresponding to the restored data signal according to the bit error value comprises:
[0015] Determine whether the bit error value is less than a preset value; if so, determine that the communication environment state under the current phase interpolation is a pass state; if not, determine that the communication environment state under the current phase interpolation is a fail state.
[0016] Optionally, the step of sending the phase interpolation sequence to the phase adjustment unit includes:
[0017] The phase interpolations in the phase interpolation sequence are sequentially sent to the phase adjustment unit, wherein the phase gradient values between adjacent phase interpolations are the same.
[0018] Optionally, when the phase interpolation sequence includes an end phase interpolation, and the phase gradient value between adjacent phase interpolations is a preset gradient value, the step of sending the phase interpolation sequence to the phase adjustment unit further includes:
[0019] Sending a phase interpolation in a phase interpolation sequence to a phase adjustment unit;
[0020] The currently sent phase interpolation is used as the target phase interpolation; and it is determined whether the target phase interpolation is the end phase interpolation;
[0021] If yes, stop sending the phase interpolation to the phase adjustment unit;
[0022] If not, the next phase interpolation is sent to the phase adjustment unit in the order of the phase interpolation sequence, and the step of taking the currently sent phase interpolation as the target phase interpolation and determining whether the target phase interpolation is the end phase interpolation is returned to be executed.
[0023] Optionally, the step of sending the phase interpolation sequence to the phase adjustment unit further includes:
[0024] When sending the next phase interpolation to the phase adjustment unit, a clearing signal is sent to the phase adjustment unit to eliminate the bit error value corresponding to the previous phase interpolation.
[0025] Optionally, the step of generating an eye diagram sequence according to all communication environment states includes:
[0026] According to the order of each phase interpolation, the phase interpolation at which the phase jumps from the failure state to the pass state is selected in sequence as the first jump value, and a first phase jump set is constructed;
[0027] According to the order of the phase interpolation values, the phase interpolation values at the point where the pass state jumps to the fail state are sequentially selected as second jump values to construct a second phase jump set;
[0028] According to the order of the phase interpolation, the second jump values adjacent to the first jump values are selected;
[0029] The phase interpolation intervals between each of the first jump values and the second jump values adjacent to each of the first jump values are calculated to obtain a data window, and an eye diagram sequence is determined.
[0030] Optionally, when the eye diagram sequence includes a plurality of data windows formed between phase interpolation values at each of the communication environment states where a jump occurs, the step of determining a final phase interpolation value based on the eye diagram sequence includes:
[0031] The window value of each of the data windows is determined, and the window values are sorted, and the window median value corresponding to the maximum window value is used as the final phase interpolation value.
[0032] Optionally, the step of determining, for each phase interpolation, the communication environment state corresponding to the restored data signal according to the bit error value further includes:
[0033] Converting the bit error statistics of the recovered data signal at each phase interpolation into a bit error rate;
[0034] Determine whether the bit error rate is less than a preset value; if so, determine that the communication environment state under the current phase interpolation is a pass state; if not, determine that the communication environment state under the current phase interpolation is a fail state.
[0035] In a second aspect, the present invention provides a digital calibration module, comprising a processor and a memory, wherein the memory stores a computer program that can be executed by the processor, and the processor can execute the computer program to implement the phase interpolation calibration method as described in any one of the first aspects above.
[0036] In a third aspect, the present invention provides a pseudo-random detection system, comprising: an analog detection module and a digital calibration module for executing the phase interpolation calibration method described in any one of the first aspects above, wherein the analog detection module comprises a signal channel recovery link, a phase adjustment unit, and an analog detection unit, the phase adjustment unit is respectively connected to the signal channel recovery link, the phase adjustment unit, and the digital calibration module, and the digital calibration module is also connected to the analog detection unit.
[0037] The beneficial effects of the present invention include, for example:
[0038] The present invention provides a phase interpolation calibration method, a digital calibration module and a pseudo-random detection system. The pseudo-random detection system includes a digital calibration module and an analog detection module. The analog detection module includes a channel recovery link, a phase adjustment unit and an analog detection unit. The above phase interpolation calibration method is applied to the digital calibration module, so that the digital calibration module sends a phase interpolation sequence to the phase adjustment unit to adjust the phase difference between the recovered clock signal and the recovered data signal. Among them, the phase interpolation sequence includes a plurality of different phase interpolations. And receive the bit error value of the recovered data signal under each phase interpolation sent by the analog detection unit in sequence. Then, for each phase interpolation, the communication environment state corresponding to the recovered data signal is determined according to the bit error value; the communication environment state includes a pass state or a fail state. Finally, an eye diagram sequence is generated according to all the communication environment states, and the final phase interpolation is determined according to the eye diagram sequence. The present invention can improve the existing calibration process on the basis of reducing the power consumption and area of the interface chip, and improve the calibration accuracy by customizing the phase interpolation sequence, thereby improving the applicability of the pseudo-random detection system. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0040] Figure 1 A schematic diagram of the structure of a pseudo-random detection system provided by the present invention;
[0041] Figure 2 A structural schematic diagram of a digital calibration module provided by the present invention;
[0042] Figure 3 A schematic diagram of the steps of a phase interpolation calibration method provided by the present invention;
[0043] Figure 4 It is a schematic diagram of the steps of step 201 in the present invention;
[0044] Figure 5 A schematic diagram of the phase difference between the data signal recovered after phase interpolation adjustment and the clock signal recovered in the present invention;
[0045] Figure 6 It is a schematic diagram of the steps of step 204 in the present invention;
[0046] Figure 7 It is the eye diagram sequence corresponding to the phase interpolation sequence in the present invention.
[0047] Icon: 100 - pseudo-random detection system; 200 - digital calibration module; 300 - processor; 400 - memory; 500 - analog detection module; 600 - signal channel recovery link; 700 - phase adjustment unit; 800 - analog detection unit. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0049] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0051] In the description of the present invention, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. appear to indicate an orientation or position relationship, they are based on the orientation or position relationship shown in the accompanying drawings, or are the orientation or position relationship in which the product of the invention is usually placed when used. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0052] In addition, the terms “first”, “second”, etc., if used, are merely used to distinguish between the descriptions and should not be understood as indicating or implying relative importance.
[0053] It should be noted that, in the absence of conflict, the features in the embodiments of the present invention may be combined with each other.
[0054] In combination with the background technology, it can be known that during the pseudo-random code test process, when the initial pseudo-random code obtains the recovered clock signal and data signal through the signal channel recovery link, the recovered clock signal and the recovered data signal will produce different delays. At this time, if the recovered data signal is directly sampled with the above-mentioned recovered clock signal, an error will occur. Therefore, in order to avoid errors, the recovered clock signal needs to be calibrated to align the phase of the recovered clock signal and the recovered data signal. In the prior art, a full-rate delay-locked loop or a passive multi-phase filter unit is often used to perform phase calibration on the clock signal. This solution will greatly increase the power consumption and area of the interface chip.
[0055] Based on the above considerations, the present invention provides a phase interpolation calibration solution, which improves the existing calibration process and improves the calibration accuracy on the basis of reducing the power consumption and area of the interface chip.
[0056] The phase interpolation calibration scheme will be described in detail below.
[0057] Figure 1 The following is a schematic diagram showing the structure of a pseudo-random code detection system 100 in a technical solution of the present invention. The pseudo-random code detection system 100 can execute a pseudo-random code test solution. In one embodiment, please refer to Figure 1The pseudo-random detection system 100 includes an analog detection module 500 and a digital calibration module 200, wherein the analog detection module 500 is used to perform pseudo-random detection on the analog side, and the digital calibration module 200 is used to perform phase interpolation control on the digital side to change the phase difference between the recovered data signal and the recovered clock signal through the analog detection module 500.
[0058] In this embodiment, the analog detection module 500 includes a signal channel recovery link 600, a phase adjustment unit 700, and an analog detection unit 800, and the phase adjustment unit 700 is respectively connected to the signal channel recovery link 600 and the analog detection unit 800. The digital calibration module 200 is also respectively connected to the analog detection unit 800 and the phase adjustment unit 700 to realize data communication between the data side and the analog side.
[0059] In a possible implementation method, the pseudo-random code generator generates an initial pseudo-random code according to the seed signal and the original generating polynomial. The signal channel recovery link 600 on the analog side recovers and obtains the recovered data signal and the recovered clock signal according to the initial pseudo-random code. At the same time, the analog detection unit 800 obtains the reference data signal according to the same seed signal and the same original generating polynomial to compare the code sequence of the recovered data signal within the sampling period and determine the bit error value.
[0060] Specifically, after the signal channel recovery link 600 in the analog side obtains the recovered data signal and the recovered clock signal, the recovered data signal and the recovered clock signal are fed back to the phase adjustment unit 700. The phase adjustment unit 700 adjusts the phase difference between the recovered data signal and the recovered clock signal according to each phase interpolation sent by the digital calibration module 200, and then sends the data corresponding to each data bit in the adjusted recovered data signal to the analog detection unit 800 at each rising edge of the recovered clock signal. The analog detection unit 800 compares the data signal corresponding to each data bit with the reference data signal to obtain a bit error value.
[0061] In order to avoid the phase difference between the recovered clock signal and the recovered data signal, this embodiment provides phase interpolation for the phase adjustment unit through the digital calibration module, so that the phase adjustment unit adjusts the phase difference between the recovered data signal and the recovered digital signal according to the above phase interpolation. Then, on the basis of reducing the power consumption and area of the interface chip, the adjustment of multiple unit interval ranges of the clock delay is realized, and multiple alignment windows are found during the delay calibration to align the phases of the clock and data, thereby increasing the calibration accuracy. At the same time, this embodiment can adaptively adjust the phase interpolation to realize the phase interpolation calibration coding output in multiple situations.
[0062] According to the design concept of the above embodiment, Figure 2The structural schematic diagram of a digital calibration module 200 in a technical solution of the present invention is shown. The digital calibration module 200 can be used to adjust the phase interpolation of the phase adjustment unit 700, so as to achieve the adjustment of multiple unit interval ranges of clock delay on the basis of reducing the power consumption and area of the interface chip, and find multiple alignment windows during delay calibration to align the phase of the clock and data, etc.
[0063] In one embodiment, continue to refer to Figure 2 The digital calibration module 200 includes a processor 300 and a memory 400. The memory 400 stores a computer program that can be executed by the processor 300. The processor 300 can execute the above computer program to implement various implementation schemes of the phase interpolation calibration method provided in the following examples of the present invention.
[0064] The processor 300 may be a central processing unit, an image processor, a neural network processor, a microcontroller, a programmable logic device, a digital signal processor, an application-specific integrated circuit, or one or more integrated circuits. The processor 300 may be used to perform functions related to the technology described in the technical solution of the present invention. In some technical solutions, the processor 300 may also include multiple processors integrated into a single logical component. The memory 400 may be configured to store data (e.g., instruction sets, computer codes, intermediate data, etc.).
[0065] In some technical solutions, the phase interpolation calibration method may be a computer program stored in the memory 400. The data stored in the memory 400 may include program instructions and data to be processed. The processor 300 may also access the program instructions and data stored in the memory 400, and execute the program instructions to operate on the data to be processed. The memory 400 may include a volatile storage device or a non-volatile storage device. In some technical solutions, the memory 400 may include a random access memory, a read-only memory, an optical disk, a magnetic disk, a hard disk, a solid-state drive, a flash memory, a memory stick, etc.
[0066] It should be noted that, although the above host architecture only shows the processor 300 and the memory 400, in the specific implementation process, the architecture of the electronic device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the architecture of the above electronic device may also only include components necessary for implementing the technical solution of the present invention, and does not necessarily include all the components shown in the figure.
[0067] According to the design concept of the above embodiment, Figure 3 A schematic diagram showing the steps of a phase interpolation calibration method in a technical solution of the present invention. In one embodiment, please refer to Figure 3The above phase interpolation calibration method includes steps 201 to 204. The phase interpolation calibration method can be applied to the digital calibration module 200 of the above embodiment.
[0068] Step 201: Send a phase interpolation sequence to a phase adjustment unit.
[0069] The phase interpolation sequence includes a plurality of different phase interpolations, and the phase interpolation is used to adjust the phase difference between the recovered clock signal and the recovered data signal.
[0070] Step 202: Receive the bit error value of the restored data signal at each phase interpolation sent sequentially by the analog detection unit.
[0071] Step 203: For each phase interpolation, determine the communication environment state corresponding to the restored data signal according to the bit error value.
[0072] The communication environment status includes a pass status or a fail status.
[0073] Step 204: Generate an eye diagram sequence according to all communication environment states, and determine a final phase interpolation value according to the eye diagram sequence.
[0074] In one possible implementation method, the digital calibration module sends phase interpolations to the analog detection module in sequence according to the order of each phase interpolation in the phase interpolation sequence. The phase adjustment unit is used to obtain and adjust the phase difference between the recovered data signal and the recovered clock signal according to each phase interpolation. The analog detection unit is used to detect the bit error value of the recovered data signal under each phase interpolation and send it to the digital calibration module in sequence. After obtaining the bit error value corresponding to each phase interpolation in the above-mentioned phase interpolation sequence, the digital calibration module determines the communication environment state corresponding to each phase interpolation according to each bit error value, and then generates an eye diagram sequence according to all communication environment states, and determines the final phase interpolation according to the eye diagram sequence.
[0075] The present invention adopts a digital-analog combination method to reduce the power consumption and area of the interface chip; and controls the phase interpolation on the digital side to adjust the phase difference between the recovered data signal and the recovered clock signal, thereby improving the existing calibration process and increasing the response speed of the pseudo-random detection system. At the same time, the present invention can also obtain multiple alignment windows in the delay calibration by adaptively adjusting the phase interpolation sequence, thereby greatly improving the calibration accuracy.
[0076] exist Figure 3 On the basis of, in this embodiment, step 201 of sending the phase interpolation sequence to the phase adjustment unit 700 by the digital side through the digital calibration module 200 is: sending each phase interpolation in the phase interpolation sequence to the phase adjustment unit in sequence.
[0077] It should be noted that the phase interpolation sequence sent to the phase adjustment unit in the present invention includes multiple different phase interpolations, and the phase gradient values between adjacent phase interpolations are the same. In this embodiment, the specific values of the phase interpolations in the above-mentioned phase interpolation sequence are not limited, as long as the phase interpolation sequence includes multiple different phase interpolations, and the phase gradient values between adjacent phase interpolations are the same.
[0078] In one possible implementation method, the phase interpolation sequence may be an increasing sequence or a decreasing sequence, wherein the increasing sequence or the decreasing sequence includes multiple phase interpolations, so that after obtaining the communication environment state corresponding to each phase interpolation, multiple alignment windows are determined according to the communication environment state.
[0079] In this embodiment, the phase interpolation sequence may include N (N is a positive integer) phase interpolations, and the phase gradient between adjacent phase interpolations is a preset threshold. The phase interpolation sequence may include an initial phase interpolation (PI i=1 ) and end phase interpolation (PI i =N , N is a positive integer).
[0080] The initial phase interpolation is the phase interpolation numbered i=1 in the phase interpolation sequence. Similarly, the end phase interpolation is the phase interpolation numbered i=N in the phase interpolation sequence.
[0081] Furthermore, the above phase interpolation sequence can be set adaptively to achieve multiple unit intervals of delay.
[0082] In one possible implementation method, the number of phase interpolations, initial phase interpolation and end phase interpolation corresponding to the current phase interpolation sequence can be set according to requirements; and then the phase interpolation gradient is set according to the number of phase interpolations, initial phase interpolation and end phase interpolation so that the phase gradient values between adjacent phase interpolations are the same.
[0083] In another possible implementation, the number of phase interpolations, the phase interpolation gradient, and the initial phase interpolation corresponding to the current phase interpolation sequence can be set according to requirements, and then the end phase interpolation is determined based on the number of phase interpolations, the phase interpolation gradient, and the initial phase interpolation. In this embodiment, the phase interpolation gradient can be any value, for example, any value from milliseconds to microseconds.
[0084] In this embodiment, the phase interpolation calibration process can be adjusted according to the end phase interpolation. In one possible implementation method, when the digital calibration module sends phase interpolations to the phase adjustment unit in sequence starting from the initial phase interpolation, the phase interpolation sequence can be directly obtained based on the initial phase interpolation, the end phase interpolation and the phase interpolation gradient determined in the above manner. For example, when the phase interpolation sequence is an increasing sequence, and it is determined that the currently sent phase interpolation is not the end phase interpolation, the value corresponding to the phase interpolation gradient can be superimposed on the currently sent phase interpolation as the next phase interpolation. When it is determined that the currently sent phase interpolation is the end phase interpolation, an eye diagram sequence is generated based on all communication environment states, and the final phase interpolation is determined based on the eye diagram sequence.
[0085] Specifically, the digital calibration module starts with the initial phase interpolation, sends phase interpolation values to the phase adjustment unit in sequence, and determines whether the currently sent phase interpolation value is the end phase interpolation value; if it is not the end phase interpolation value, the digital calibration module continues to send the next phase interpolation value to the phase adjustment unit. If it is the end phase interpolation value, the digital calibration module stops sending phase interpolation values to the phase adjustment unit.
[0086] When the digital calibration module continuously sends phase interpolation to the phase adjustment unit and continuously receives the bit error value based on the recovered data signal sent by the analog detection unit under the currently sent phase interpolation, as long as it detects that the currently sent phase interpolation is not the end phase interpolation, the digital calibration module will send the next phase interpolation to the phase adjustment unit.
[0087] In this embodiment, Figure 3 Based on the reference Figure 4 , step 201 of sending a phase interpolation sequence to a phase adjustment unit includes steps 1001 and 1002.
[0088] Step 1001: Send a phase interpolation in a phase interpolation sequence to a phase adjustment unit.
[0089] Step 1002: Use the currently sent phase interpolation as the target phase interpolation, and determine whether the target phase interpolation is the end phase interpolation.
[0090] If yes, stop sending the phase interpolation to the phase adjustment unit.
[0091] If not, the next phase interpolation is sent to the phase adjustment unit in the order of the phase interpolation sequence, and the process returns to the step of using the currently sent phase interpolation as the target phase interpolation and determining whether the target phase interpolation is the end phase interpolation.
[0092] In this embodiment, the phase interpolation sequence can be constructed by repeatedly superimposing a preset phase gradient value on the initial phase interpolation within the interval between the initial phase interpolation and the end phase interpolation. The above step 1002 can also be: taking the currently sent phase interpolation as the target phase interpolation, and determining whether the target phase interpolation is the end phase interpolation, and if so, stopping sending the phase interpolation to the phase adjustment unit.
[0093] If not, the preset phase gradient value is superimposed on the target phase interpolation as the next phase interpolation, sent to the phase adjustment unit, and the step of returning to execute the currently sent phase interpolation as the target phase interpolation and determining whether the target phase interpolation is the end phase interpolation is performed.
[0094] In another possible implementation, combined with the above Figure 1 As shown, when the digital calibration module 200 sends a phase interpolation to the phase adjustment unit 700, after receiving the bit error value of the recovered data signal under the currently transmitted phase interpolation sent by the analog detection unit 800, the next phase interpolation can be sent to the phase adjustment unit 700. That is, when it is detected that the currently transmitted phase interpolation is not the end phase interpolation, the digital calibration module 200 needs to receive the bit error value corresponding to the currently transmitted phase interpolation and complete the communication state judgment before sending the next phase interpolation to the phase adjustment unit 700.
[0095] In addition, when the digital calibration module 200 sends phase interpolations to the phase adjustment unit 700 in sequence according to the order of the above-mentioned phase interpolation sequence, it will also synchronously send a cleanup signal when sending the next phase interpolation to the phase adjustment unit 700 to eliminate the bit error value corresponding to the previous phase interpolation in the phase adjustment unit 700, thereby avoiding data accumulation when the digital calibration module 200 receives the bit error value at each phase interpolation sent in sequence by the analog detection unit 800 based on the recovered data signal.
[0096] In this embodiment, after the digital calibration module sends the phase interpolation sequence to the phase adjustment unit, the phase adjustment unit adjusts the phase of the recovered clock signal or the recovered data signal according to the phase interpolation. For example, the delay value corresponding to the phase interpolation can be superimposed on the recovered clock signal or the recovered data signal by the phase adjustment unit to reduce the phase difference between the recovered clock signal and the recovered data signal.
[0097] Please refer to Figure 5 , Figure 5 The phase difference between the recovered data signal DATA and the recovered clock signal CLOCK after phase interpolation adjustment is shown. In a possible implementation, when the phase adjustment unit 700 adds the delay value corresponding to the phase interpolation to the recovered data signal DATA, the recovered data signal DATA is i=1 The corresponding phase difference between the recovered clock signal CLOCK is i=1 ; The recovered data signal DATA is in phase interpolation PI i=2 The corresponding phase difference between the recovered clock signal CLOCK is i=2 ; The recovered data signal DATA is in phase interpolation PI i=3 The corresponding phase difference between the recovered clock signal CLOCK is i=3 ; ...; The recovered data signal DATA is in the phase interpolation PI i=N The corresponding phase difference between the recovered clock signal CLOCK is i=N . The recovered data signal DATA is interpolated at the phase PI i=N The phase difference between the recovered clock signal CLOCK i=N For example, the phase difference i=N The phase of the rising edge of the recovered clock signal CLOCK and the recovered data signal DATA are interpolated by phase PI within the sampling period. i=N The difference in phase between the data bits after delay.
[0098] It should be noted that Figure 5 The phase difference diagram also illustrates the omission of the phase difference based on the recovered data signal DATA at each phase interpolation. i=3 The phase difference diagram between the recovered clock signal CLOCK and the phase interpolation PI based on the recovered data signal DATA i=N There may be multiple phase difference diagrams between the phase difference diagram of the recovered clock signal CLOCK and the phase difference diagram of the recovered data signal DATA. i=N-1 Schematic diagram of the phase difference between the recovered clock signal CLOCK and the original clock signal CLOCK.
[0099] In this embodiment, after the phase interpolation adjustment, the phase at the rising edge of the recovered clock signal CLOCK and the recovered data signal DATA are adjusted by the i-th phase interpolation PI. i When the difference between the phases of the data bits after the delay is zero, it can be determined that the current phase interpolation PI iThe recovered clock signal CLOCK is phase-aligned with the recovered data signal DATA. i The bit error value under this condition may be smaller or meet the preset bit error range.
[0100] In one possible implementation, for each phase interpolation, the step of determining the communication environment state corresponding to the recovered data signal based on the bit error value includes: determining whether the bit error value is less than a preset value; if so, determining that the communication environment state under the current phase interpolation is a pass state; if not, determining that the communication environment state under the current phase interpolation is a fail state.
[0101] In this embodiment, the bit error value may be a bit error statistic obtained by the analog detection unit, which is the difference value after the comparison between the recovered data signal and the reference data signal under different phase interpolation. The bit error value is only a statistic obtained by the analog side, that is, in this embodiment, the analog side does not perform any processing on the bit error value, or perform calibration judgment based on the bit error value; in this embodiment, the data processing of the bit error value and the data judgment based on the bit error value are all set on the digital side. Based on this, the present invention can further reduce the power consumption of the analog side.
[0102] In order to improve the response speed of the pseudo-random detection system on the basis of reducing the power consumption on the analog side, in one possible implementation method, the acquired bit error value can be converted into a bit error rate in the digital calibration module, so as to quickly use the preset value to determine the communication environment state of the data signal recovered under the current phase interpolation. In this embodiment, for each phase interpolation, the step of determining the communication environment state corresponding to the recovered data signal based on the bit error value also includes: converting the bit error statistics of the recovered data signal under each phase interpolation into a bit error rate. And determine whether the bit error rate is less than the preset value; if so, determine that the communication environment state under the current phase interpolation is a pass state; if not, determine that the communication environment state under the current phase interpolation is a fail state.
[0103] In this embodiment, after obtaining the bit error value of each phase interpolation based on the recovered data signal sent by the analog detection unit in sequence, the data calibration module can determine whether each bit error value (or each converted bit error rate) meets the preset value (or preset bit error error range). If it is less than or equal to the preset value, the communication environment state under the current phase interpolation can be determined to be a pass state; otherwise, the communication environment state under the current phase interpolation can be determined to be a fail state. At this time, the data calibration module will obtain the communication state corresponding to each phase interpolation in the phase interpolation sequence.
[0104] In this embodiment, Figure 3 Based on Figure 6The step 204 of generating an eye diagram sequence according to all communication environment states includes steps 401 to 404.
[0105] Step 401 : According to the order of each phase interpolation, the phase interpolation values at the point where the phase transitions from the fail state to the pass state are selected in sequence as the first transition value, and a first phase transition set is constructed.
[0106] Step 402: According to the order of each phase interpolation, the phase interpolation values at the transition from the pass state to the fail state are selected in sequence as the second transition value to construct a second phase transition set.
[0107] Step 403: Filter the second jump values adjacent to the first jump values according to the order of phase interpolation.
[0108] Step 404: Calculate the phase interpolation interval between each first jump value and the second jump value adjacent to each first jump value to obtain a data window and determine an eye diagram sequence.
[0109] In a possible implementation method, the digital calibration module selects the phase interpolation at which the phase interpolation jumps from the fail state to the pass state according to the order of each phase interpolation and the communication environment state corresponding to the phase interpolation, and constructs a first phase jump set, wherein the phase interpolation included in the first phase jump set is defined as a first jump value (Fail To Pass), which is recorded as F2P;
[0110] Similarly, the digital calibration module selects the phase interpolation at the point where the phase interpolation jumps from the pass state to the fail state according to the order of each phase interpolation and the communication environment state corresponding to the phase interpolation, and constructs a second phase jump set. The phase interpolation contained in the second phase jump set is defined as the second jump value (Pass To Fail), denoted as P2F.
[0111] For example, when the phase interpolation sequence includes N=140 phase interpolations, the initial phase interpolation is expressed as PI i=1 At this time, the end phase interpolation can be expressed as PI i=141 The environmental state corresponding to each phase interpolation satisfies the following Table 1, which shows the communication environmental state corresponding to each phase interpolation (0-failure state / 1-pass state).
[0112] Table 1
[0113]
[0114] In this embodiment, the first phase jump set includes A first jump values, and the second phase jump set includes B second jump values, where A and B are positive integers and satisfy A, B<N.
[0115] Referring to Table 1 above, the second phase jump set may include four second jump values, namely: second jump value P2F with number b=1 b=1 , the second jump value P2F of number b=2 b=2 , the second jump value P2F of number b=3 b=3 , the second jump value P2F of number b=4 b=4 .
[0116] The second jump value P2F with number b=2 b=2 For example, the second jump value corresponds to the phase interpolation PI numbered i=21. i=21 That is, the phase interpolation PI representing number i=21 i=21 The communication environment state corresponding to the previous adjacent phase interpolation is the passing state; the phase interpolation PI numbered i=21 i=21 The communication environment state corresponding to the next adjacent phase interpolation is a failure state.
[0117] The first phase jump set may include three first jump values, namely: the first jump value F2P with number a=1 a=1 , the first jump value F2P of number a=2 a=2 And the first jump value F2P of number a=3 a=3 . With the first jump value F2P numbered a=2 a=2 For example, the first jump value corresponds to the phase interpolation PI numbered i=76. i=76 That is, the phase interpolation PI of the characterization number i=76 i=76 The communication environment state corresponding to the previous adjacent phase interpolation is a failure state; the phase interpolation PI number i=21 i=21 The communication environment state corresponding to the next adjacent phase interpolation is a passing state.
[0118] In this embodiment, the data window corresponding to the passing state is used as the eye diagram, and each first jump value in the first phase jump set can be used as the left eye value of the eye diagram, and each second jump value in the second phase jump set can be used as the right eye value of the eye diagram. Then, according to the order of phase interpolation, the second jump value adjacent to each first jump value is determined, and then the phase interpolation value corresponding to the adjacent second jump value is subtracted from the phase interpolation value of the first jump value to obtain the phase interpolation spacing, so as to determine the data window and obtain the eye diagram. And the eye diagram sequence is obtained according to each first jump value.
[0119] Please refer to Figure 7 , Figure 7 The eye diagram sequence constructed by the phase interpolation sequence corresponding to the above table 1 is shown. i=76 Phase interpolation PI with number i=111 i=111As an example, the eye diagram is constructed as follows. From Table 1 above, we can see that according to the order of the phase interpolation sequence, the phase interpolation PI numbered i=51 i=51 To phase interpolation PI number i=76 i=76 The communication environment states corresponding to the phase interpolation between the two are all failure states, and the phase interpolation PI numbered i=76 i=76 To the phase interpolation PI number i=111 i=111 The communication environment states corresponding to the phase interpolation between the two are all successful states, so the phase interpolation PI numbered i=76 is i=76 Then it can be determined as the first jump value. Similarly, the phase interpolation PI numbered i=111 i=111 It can be determined as the second jump value.
[0120] At the same time, according to the order of the phase interpolation sequence, the phase interpolation PI numbered i=76 can be determined i=76 When the first jump value is used, the second jump value adjacent to it is the phase interpolation PI numbered i=111. i=111 Then, the adjacent second jump value is used as the right eye of the eye diagram, and the first jump value is used as the left eye of the eye diagram to obtain the eye diagram, and the phase interpolation interval between the two is determined to obtain the data window. Multiple data windows can be obtained according to the phase interpolation sequence.
[0121] In this embodiment Figure 7 Although it is shown that the initial phase interpolation PI i=1 End with phase interpolation PI i=141 The eye diagrams corresponding to them are respectively, but it should be understood that the initial phase interpolation PI i=1 Or end phase interpolation PI i=141 It is not necessarily a jump value. In this embodiment, the digital calibration module 200 obtains the start and end of the eye diagram sequence by using the initial phase interpolation and the end phase interpolation, so that the final phase interpolation is a phase interpolation between the initial phase interpolation and the end phase interpolation. In this embodiment, the specific values of the initial phase interpolation and the end phase interpolation are not limited.
[0122] It should be noted that, in this embodiment, the eye diagram sequence may be a plurality of data windows formed between phase interpolations at locations where each communication environment state changes.
[0123] In this embodiment, the step of determining the final phase interpolation according to the eye diagram sequence includes:
[0124] Determine the window value of each data window, sort the window values, and use the window median corresponding to the maximum window value as the final phase interpolation. In this embodiment, on the basis of setting the spacing between adjacent phase interpolations to be equal, use the window median corresponding to the maximum window value as the final phase interpolation, which can greatly increase the accuracy of the final phase interpolation determination.
[0125] Continue to refer Figure 7 , the window values of each data window of the eye diagram sequence in this embodiment are: 20, 20, 10, 25, 35, 15, 5 and 10 respectively. It can be determined that the phase interpolation PI numbered i=76 i=76 Phase interpolation PI with number i=112 i=111 The window value of the data window constructed between the two is the largest. Then the median value of the data window can be selected as the final phase interpolation value, that is, the phase interpolation value PI of number i=94 i=94 .
[0126] It should be noted that, in this embodiment, by setting a phase interpolation sequence, it is possible to adjust multiple unit interval ranges on the clock delay or data delay, and then obtain multiple alignment windows in the delay calibration, that is, Figure 7 Multiple eye diagrams are shown.
[0127] In summary, the present invention provides a phase interpolation calibration method, which can be applied to a digital calibration module. First, a phase interpolation sequence is sent to a phase adjustment unit. Among them, the phase interpolation sequence includes multiple different phase interpolations, and the phase interpolation is used to adjust the phase difference between the recovered clock signal and the recovered data signal. Then, the bit error value of the recovered data signal at each phase interpolation sent in sequence by the analog detection unit is received. Then, for each phase interpolation, the communication environment state corresponding to the recovered data signal is determined according to the bit error value. Among them, the communication environment state includes a pass state or a fail state. Finally, an eye diagram sequence is generated based on all the communication environment states, and the final phase interpolation is determined based on the eye diagram sequence. The present invention can improve the existing calibration process and improve the calibration accuracy on the basis of reducing the power consumption and area of the interface chip.
[0128] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A phase interpolation calibration method, applied to a digital calibration module in a pseudo-random detection system, wherein the pseudo-random detection system further includes an analog detection module, wherein the analog detection module includes a signal channel recovery link, a phase adjustment unit, and an analog detection unit; wherein the phase adjustment unit is respectively connected to the signal channel recovery link, the digital calibration module, and the analog detection unit, and the digital calibration module is also connected to the analog detection unit; wherein, The signal channel recovery link is used to obtain a recovered data signal and a recovered clock signal; the analog detection unit is used to detect the bit error value of the recovered data signal; the phase adjustment unit is used to adjust the phase of the recovered data signal or the recovered clock signal according to phase interpolation; characterized in that the phase interpolation calibration method includes: Sending a phase interpolation sequence to the phase adjustment unit; wherein the phase interpolation sequence includes a plurality of different phase interpolations, and the phase interpolation is used to adjust the phase difference between the recovered clock signal and the recovered data signal; receiving the bit error value of each phase interpolation based on the recovered data signal sent sequentially by the analog detection unit; For each phase interpolation, determining the communication environment state corresponding to the recovered data signal according to the bit error value; the communication environment state includes a pass state or a fail state; Generate an eye diagram sequence according to all communication environment states, and determine a final phase interpolation value according to the eye diagram sequence; The step of generating an eye diagram sequence according to all communication environment states comprises: According to the order of each phase interpolation, the phase interpolation at which the phase jumps from the failure state to the pass state is selected in sequence as the first jump value, and a first phase jump set is constructed; According to the order of the phase interpolation values, the phase interpolation values at the point where the pass state jumps to the fail state are sequentially selected as second jump values to construct a second phase jump set; According to the order of the phase interpolation, the second jump values adjacent to the first jump values are selected; The phase interpolation intervals between each of the first jump values and the second jump values adjacent to each of the first jump values are calculated to obtain a data window, and an eye diagram sequence is determined.
2. The phase interpolation calibration method according to claim 1, characterized in that: The step of determining the communication environment state corresponding to the restored data signal according to the bit error value for each phase interpolation comprises: Determine whether the bit error value is less than a preset value; if so, determine that the communication environment state under the current phase interpolation is a pass state; if not, determine that the communication environment state under the current phase interpolation is a fail state.
3. The phase interpolation calibration method according to claim 1, characterized in that: The step of sending a phase interpolation sequence to the phase adjustment unit comprises: The phase interpolations in the phase interpolation sequence are sequentially sent to the phase adjustment unit, wherein the phase gradient values between adjacent phase interpolations are the same.
4. The phase interpolation calibration method according to claim 3, characterized in that: When the phase interpolation sequence includes an end phase interpolation, and the phase gradient value between adjacent phase interpolations is a preset gradient value, the step of sending the phase interpolation sequence to the phase adjustment unit further includes: Sending a phase interpolation in a phase interpolation sequence to a phase adjustment unit; The currently sent phase interpolation is used as the target phase interpolation; and it is determined whether the target phase interpolation is the end phase interpolation; If yes, stop sending the phase interpolation to the phase adjustment unit; If not, the next phase interpolation is sent to the phase adjustment unit in the order of the phase interpolation sequence, and the step of taking the currently sent phase interpolation as the target phase interpolation and determining whether the target phase interpolation is the end phase interpolation is returned to be executed.
5. The phase interpolation calibration method according to claim 4, characterized in that: The step of sending the phase interpolation sequence to the phase adjustment unit also includes: When sending the next phase interpolation to the phase adjustment unit, a clearing signal is sent to the phase adjustment unit to eliminate the bit error value corresponding to the previous phase interpolation.
6. The phase interpolation calibration method according to claim 1, characterized in that: When the eye diagram sequence includes a plurality of data windows formed between phase interpolation values at each of the communication environment states where a jump occurs, the step of determining the final phase interpolation value based on the eye diagram sequence includes: The window value of each of the data windows is determined, and the window values are sorted, and the window median value corresponding to the maximum window value is used as the final phase interpolation value.
7. The phase interpolation calibration method according to claim 1 or 2, characterized in that: The step of determining the communication environment state corresponding to the restored data signal according to the bit error value for each phase interpolation further includes: Converting the bit error statistics of the recovered data signal at each phase interpolation into a bit error rate; Determine whether the bit error rate is less than a preset value; if so, determine that the communication environment state under the current phase interpolation is a pass state; if not, determine that the communication environment state under the current phase interpolation is a fail state.
8. A digital calibration module, characterized in that: It comprises a processor and a memory, wherein the memory stores a computer program that can be executed by the processor, and the processor can execute the computer program to implement the phase interpolation calibration method as described in any one of claims 1 to 7.
9. A pseudo-random detection system, characterized in that: include: An analog detection module and a digital calibration module that executes the phase interpolation calibration method as described in any one of claims 1 to 7, wherein the analog detection module includes a signal channel recovery link, a phase adjustment unit, and an analog detection unit, and the phase adjustment unit is respectively connected to the signal channel recovery link, the phase adjustment unit, and the digital calibration module, and the digital calibration module is also connected to the analog detection unit.
Citation Information
Patent Citations
A calibration method and device for high-speed serial LVDS signals output by a CMOS image sensor
CN109600560A
Real-time detection and recovery processing method for digital phased array time-frequency signal faults
CN112332835A
Eye diagram oscilloscope system and eye diagram testing method
CN112462121A
Method and device for evaluating signal transmission quality
CN116346665A
PRBS generation and self-detection system and PRBS self-detection method
CN117783836A
