Detection circuit, clock data recovery circuit and signal detection method
Through the detection circuit and clock data recovery circuit, the equalizer and bandwidth are adjusted according to the signal characteristics, which solves the problem of high bit error rate caused by signal quality loss and noise in high-speed interconnection circuits. It is suitable for different environments and achieves low bit error rate signals. recover.
Patent Information
- Application Number
- CN201910176242.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-03-08
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2039-03-08
AI Technical Summary
High-speed interconnection circuits suffer serious signal quality losses during long-distance transmission. Inter-symbol interference and noise lead to high bit error rates, which are difficult to effectively solve with existing technology. Users have different needs in different environments, and the exact same configuration cannot be used.
Through the detection circuit and clock data recovery circuit, the cause of jitter is determined based on the data input signal, the first logic signal and the second logic signal, and the equalizer and bandwidth are adjusted to reduce the bit error rate. The circuit includes a main circuit, a detection unit and a judgment unit, and generates an indication signal to control the gain of the compensation signal and the bandwidth of the clock signal.
It can effectively distinguish between inter-code interference and jitter caused by noise, adjust the equalizer and bandwidth respectively, and reduce the bit error rate. It is suitable for different environments and does not require continuous operation to reduce power consumption.
Smart Images

Figure CN109787925B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of digital communication technology, and more specifically, to a detection circuit, a clock data recovery circuit and a signal detection method. Background Art
[0002] The clock and data recovery circuit (CDR) is the core module of the high-speed transceiver, which is an important component of the communication system. When the data stream is transmitted in the serial data line, there is no clock signal. The serial data receiver needs to extract the synchronous clock from the received data input signal through the clock and data recovery circuit, and use the synchronous clock to resample the data input signal to obtain stable and reliable data. However, the signal quality of the data input signal of the high-speed interconnection circuit often suffers from serious loss after long-distance transmission. In addition, environmental noise will further deteriorate the signal quality, resulting in the bit error rate (symbol error rate, SER) of the data input signal not meeting the requirements, making it more difficult for the receiving end to recover the data.
[0003] Signal loss in long-distance transmission generally manifests itself as inter-symbol interference (ISI). Figure 1 FIG. 2 shows a waveform diagram of a clock data recovery circuit in the prior art. Figure 1 As shown, when the transmission channel bandwidth is insufficient to transmit the data input signal, it means that the time length of a single signal cycle cannot enable the data input signal to be established intact. As shown at t1 and t2, the output signal cannot be established to the highest voltage within one cycle and cannot be restored to the lowest voltage within one cycle, so the rising edge and falling edge of the signal will deviate from the ideal signal after recovery. When the transmission channel bandwidth becomes smaller, the signal may not be established within two cycles, which will produce more complex inter-symbol interference and bring greater time deviation, thereby further deteriorating the signal quality, and even the signal cannot exceed V0 / 2 within one cycle, so that the signal cannot be restored normally. In order to solve the problem of inter-symbol interference, the prior art performs pre-emphasis at the output end and adds an equalizer (EQ) at the input receiving end, and the principle is to increase the high-frequency gain to compensate for the high-frequency loss of the channel. However, excessive increase in high-frequency gain, which makes the high-frequency part of the signal over-compensated, will also cause the signal jitter to deteriorate, and will also cause waste of power consumption.
[0004] Another factor that affects the performance of the data input signal is noise. During the generation, transmission and reception of the data input signal, noise will be introduced, resulting in poor quality of the data input signal. When the input signal noise is large, the bandwidth of the clock data recovery circuit needs to be increased to track the jitter of the input signal and recover the signal correctly. However, the increase in the bandwidth of the clock data recovery circuit will also increase the jitter of the clock data recovery circuit itself, thereby affecting the bit error rate.
[0005] Both inter-symbol interference and noise affect signal quality and cause high bit error rates, but the solutions to the two are different. In addition, the channel environment of high-speed interconnection equipment is not static, such as network interfaces and video interfaces. Different users use different connection materials and lengths, and their working environments are also different. It is impossible to use exactly the same configuration to solve all user needs. Summary of the invention
[0006] In view of the above problems, the object of the present invention is to provide a detection circuit, a clock data recovery circuit and a signal detection method, wherein the cause of the jitter of the data input signal is determined based on the data input signal, the second logic signal and the first logic signal, so that the equalizer and the bandwidth are adjusted respectively according to the result of the determination to reduce the bit error rate.
[0007] According to a first aspect of the present invention, there is provided a detection circuit, comprising: a main circuit for providing a plurality of intermediate signals and an adjustment indication signal according to a data input signal and a reference clock signal, a first detection unit for generating a first logic signal according to the data input signal, the reference clock signal, the corresponding intermediate signal and a first clock signal that is ahead of the reference clock signal; a second detection unit for generating a second logic signal according to the data input signal, the reference clock signal, the corresponding intermediate signal and a second clock signal that is behind the reference clock signal; and a judgment unit for generating an indication signal according to a logical relationship between the first logic signal, the second logic signal and the data input signal, the indication signal representing a type of jitter compensation required for the data input signal.
[0008] Preferably, the indication signal includes a first indication signal, a second indication signal and a third indication signal. If the first logic signal is at a high level, and when the level state of the data input signal changes, the second logic signal is at a high level, then the first indication signal is valid; if the second logic signal is at a high level, and when the level state of the data input signal changes, the first logic signal is at a high level, then the second indication signal is valid; if the first logic signal and / or the second logic signal are at a high level, and when the level state of the data input signal changes, the level state of the first logic signal and / or the second logic signal remains unchanged, then the third indication signal is valid.
[0009] Preferably, the period of the reference clock signal is T, the phase difference between the first clock signal and the reference clock signal is greater than 0 and not greater than T / 4, and the phase difference between the second clock signal and the reference clock signal is greater than 0 and not greater than T / 4.
[0010] Preferably, the main circuit includes a first trigger, a second trigger, a third trigger, a fourth trigger, a first XOR gate and a second XOR gate, the intermediate signal includes a first intermediate signal, a second intermediate signal, a third intermediate signal and a fourth intermediate signal, the adjustment indication signal includes a first adjustment indication signal and a second adjustment indication signal, the first trigger generates the first intermediate signal according to the data input signal and the reference clock signal, the second trigger generates the second intermediate signal according to the first intermediate signal and the reference clock signal, the third trigger generates the third intermediate signal according to the data input signal and the complementary signal of the reference clock signal, the fourth trigger generates the fourth intermediate signal according to the third intermediate signal and the reference clock signal, the first XOR gate generates the first adjustment indication signal according to the second intermediate signal and the fourth intermediate signal, and the second XOR gate generates the second adjustment indication signal according to the first intermediate signal and the fourth intermediate signal.
[0011] Preferably, the first detection unit includes a fifth trigger, a sixth trigger and a third XOR gate, the second detection unit includes a seventh trigger, an eighth trigger and a fourth XOR gate, the fifth trigger generates a first sampling signal according to the data input signal and the complementary signal of the first clock signal, the sixth trigger generates the first logic signal according to the first sampling signal and the reference clock signal, the seventh trigger generates a second sampling signal according to the data input signal and the complementary signal of the second clock signal, and the eighth trigger generates the second logic signal according to the second sampling signal and the reference clock signal.
[0012] Preferably, when performing detection, the first detection unit, the second detection unit and the judgment unit are turned on, and when stopping detection, the first detection unit, the second detection unit and the judgment unit are turned off.
[0013] According to a second aspect of the present invention, there is provided a clock data recovery circuit, comprising: the detection circuit as described above, the main circuit of the detection circuit generating a recovered data signal; and a clock generation unit for providing a clock signal, the clock signal comprising the reference clock signal, the first clock signal and the second clock signal, the bandwidth of the clock signal being controlled by the indication signal.
[0014] Preferably, it further comprises: an equalizer, configured to receive an original signal and provide a compensation signal to the original signal to generate the data input signal, wherein the gain of the compensation signal is controlled by the indication signal.
[0015] Preferably, the indication signal includes a first indication signal, a second indication signal and a third indication signal. If the first logic signal is at a high level and the second logic signal is at a high level when the level state of the data input signal changes, the first indication signal is valid. If the second logic signal is at a high level and the first logic signal is at a high level when the level state of the data input signal changes, the second indication signal is valid. If the first logic signal and / or the second logic signal are at a high level and the level state of the first logic signal and / or the second logic signal remains unchanged when the level state of the data input signal changes, the third indication signal is valid. When the first indication signal is valid, the gain of the compensation signal decreases. When the second indication signal is valid, the gain of the compensation signal increases. When the third indication signal is valid, the bandwidth of the clock signal increases.
[0016] Preferably, before starting to receive the original signal, the clock generation unit provides the first clock signal and the second clock signal for signal detection, and after receiving the original signal, the clock generation unit stops providing the first clock signal and the second clock signal to stop signal detection.
[0017] Preferably, the clock generating unit includes: a clock generator for generating the first clock signal; a first delay unit for generating the reference clock signal according to the first clock signal; and a second delay unit for generating the second clock signal according to the reference clock signal, wherein the period of the reference clock signal is T, the phase difference between the first clock signal and the reference clock signal is greater than 0 and not greater than T / 4, and the phase difference between the second clock signal and the reference clock signal is greater than 0 and not greater than T / 4.
[0018] Preferably, it also includes: a filter, connected to the detection circuit, for generating a voltage signal according to the adjustment indication signal, wherein the output end of the filter is connected to the clock generation unit, and the clock generation unit also generates a recovered clock signal according to the voltage signal, and provides the recovered clock signal to the detection circuit.
[0019] According to a third aspect of the present invention, there is provided a signal detection method, comprising: providing a plurality of intermediate signals and an adjustment indication signal according to a data input signal and a reference clock signal, generating a first logic signal according to the data input signal, the reference clock signal, the corresponding intermediate signals and a first clock signal that is ahead of the reference clock signal; generating a second logic signal according to the data input signal, the reference clock signal, the corresponding intermediate signals and a second clock signal that is behind the reference clock signal; and generating an indication signal according to a logical relationship between the first logic signal, the second logic signal and the data input signal, the indication signal characterizing a type of jitter compensation required for the data input signal.
[0020] Preferably, the indication signal includes a first indication signal, a second indication signal and a third indication signal. If the first logic signal is at a high level, and when the level state of the data input signal changes, the second logic signal is at a high level, then the first indication signal is valid; if the second logic signal is at a high level, and when the level state of the data input signal changes, the first logic signal is at a high level, then the second indication signal is valid; if the first logic signal and / or the second logic signal are at a high level, and when the level state of the data input signal changes, the level state of the first logic signal and / or the second logic signal remains unchanged, then the third indication signal is valid.
[0021] Preferably, when the third indication signal is valid, the bandwidths of the reference clock signal, the first clock signal and the second clock signal are increased.
[0022] Preferably, it also includes: receiving an original signal and providing a compensation signal to the original signal to generate the data input signal, the gain of the compensation signal being controlled by the first indication signal, wherein when the first indication signal is valid, the gain of the compensation signal is reduced, and when the second indication signal is valid, the gain of the compensation signal is increased.
[0023] Preferably, it also includes generating the reference clock signal, the first clock signal and the second clock signal, and the method of generating the reference clock signal, the first clock signal and the second clock signal includes: generating the first clock signal; generating the reference clock signal according to the first clock signal; and generating the second clock signal according to the reference clock signal, the period of the reference clock signal is T, the phase difference between the first clock signal and the reference clock signal is greater than 0 and not greater than T / 4, and the phase difference between the second clock signal and the reference clock signal is greater than 0 and not greater than T / 4.
[0024] Preferably, the intermediate signal includes a first intermediate signal, a second intermediate signal, a third intermediate signal and a fourth intermediate signal, the adjustment indication signal includes a first adjustment indication signal and a second adjustment indication signal, and the method for generating the adjustment indication signal includes: generating the first intermediate signal according to the data input signal and the reference clock signal, generating the second intermediate signal according to the first intermediate signal and the reference clock signal, generating the third intermediate signal according to the data input signal and the complementary signal of the reference clock signal, generating the fourth intermediate signal according to the third intermediate signal and the reference clock signal, generating the first adjustment indication signal according to the second intermediate signal and the fourth intermediate signal, and generating the second adjustment indication signal according to the first intermediate signal and the fourth intermediate signal.
[0025] Preferably, the method for generating the first logic signal and the second logic signal includes: generating a first sampling signal according to the data input signal and the complementary signal of the first clock signal, generating the first logic signal according to the first sampling signal and the reference clock signal, generating a second sampling signal according to the data input signal and the complementary signal of the second clock signal, and generating the second logic signal according to the second sampling signal and the reference clock signal.
[0026] Preferably, when performing signal detection, the first clock signal and the second clock signal are received and the indication signal is generated, and when stopping signal detection, the first clock signal and the second clock signal are stopped from being received and the indication signal is stopped from being generated.
[0027] The detection circuit, clock data recovery circuit and signal detection method provided by the present invention distinguish the jitter caused by inter-symbol interference and noise in the data input signal according to the phase relationship between the data input signal, the first logic signal and the second logic signal, and adjust the equalizer and bandwidth respectively according to the judgment result, so as to minimize the bit error rate. Furthermore, the detection circuit, clock data recovery circuit and signal detection method do not need to work continuously, and can be started only when the channel is established or once at intervals, and will not bring additional power consumption to the original receiving end circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
[0029] Figure 1 shows a waveform diagram of a clock data recovery circuit according to the prior art;
[0030] Figure 2 A schematic diagram of the circuit structure of a phase detector according to the prior art is shown;
[0031] Figure 3 shows a timing diagram of a phase detector according to the prior art;
[0032] Figure 4 A structural block diagram of a clock data recovery circuit according to an embodiment of the present invention is shown;
[0033] Figure 5 A schematic diagram of a clock generating unit according to an embodiment of the present invention is shown;
[0034] Figure 6 shows a timing diagram of a clock generation unit according to an embodiment of the present invention;
[0035] Figure 7 A schematic diagram of the circuit structure of a phase detector according to an embodiment of the present invention is shown.
[0036] Reference numerals list
[0037] 100 Clock Data Recovery Circuit
[0038] 110 Equalizer
[0039] 120 Clock generation unit
[0040] 121 First delay unit
[0041] 122 Second delay unit
[0042] 123 Clock Generator
[0043] 130 Phase detector
[0044] 131 Main circuit
[0045] 132 First Detection Unit
[0046] 133 Second detection unit
[0047] 140 Judgment Unit
[0048] 150 Filter
[0049] 200 Detection circuit DETAILED DESCRIPTION
[0050] Various embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. In each of the accompanying drawings, the same elements are represented by the same or similar reference numerals. For the sake of clarity, the various parts in the accompanying drawings are not drawn to scale.
[0051] The specific implementation of the present invention is further described in detail below in conjunction with the drawings and examples.
[0052] Figure 2 A schematic diagram of the circuit structure of a phase detector according to the prior art is shown; Figure 3 A timing diagram of a phase detector according to the prior art is shown.
[0053] Phase-locked loops (PLL) are the core components of clock data recovery circuits, and phase detectors are key components in phase-locked loop circuits. Figure 2 As shown, taking the clock data recovery circuit of the bang-bang phase detector type as an example, the phase detector of the prior art includes a first-stage trigger, a second-stage trigger and a logic circuit. The first-stage trigger includes a trigger Q1 and a trigger Q2, which are used to sample the data input signal to obtain a data sampling sequence. The second-stage trigger includes a trigger Q3 and a trigger Q4, which are used to retime the data sampling sequence and output the recovered data signal. The logic circuit includes an XOR gate U1 and an XOR gate U2, which are used to compare the phase difference between the data sampling sequence and the recovered data signal and output phase difference signals UP and DN.
[0054] like Figure 3 As shown in the figure, when the clock data recovery circuit is locked, the falling edge of the clock signal CKS is aligned with the flip edge of the input data input signal DIN, thereby ensuring that there is a maximum margin when sampling data at the rising edge of the clock signal CKS. Because the falling edge of the clock signal CKS is aligned with the flip edge of the data input signal DIN, when the clock signal CKS samples the data input signal DIN at the falling edge, it is possible to sample the data before the flip of the data input signal DIN or the data after the flip of the data input signal DIN. When non-ideal effects are not considered, the probability of the two occurrences is basically the same.
[0055] The clock data recovery circuit will prompt the clock signal CKS to track the jitter of the data input signal DIN. However, if the jitter of the data input signal DIN is caused by ISI, the traditional design of the clock signal CKS cannot determine it, which will cause the change direction of the clock signal CKS to be opposite to the direction of the inter-symbol interference, increasing the bit error rate. If the jitter of the data input signal DIN is caused by noise, the clock signal CKS needs to be able to quickly track the change of the data input signal DIN. Therefore, the requirements of the clock data recovery circuit response bandwidth for inter-symbol interference and noise are not consistent, that is, if the jitter is caused by inter-symbol interference, the clock data recovery circuit should try not to track it, and if the jitter is caused by noise, the clock data recovery circuit should track it as much as possible.
[0056] In order to solve the opposite needs of inter-symbol interference and noise, the present application detects the jitter characteristics of the signal and records them, and then counts and analyzes the cause of the jitter in the digital circuit to determine whether it is inter-symbol interference or noise. If it is inter-symbol interference, the equalizer characteristics of the front-end amplifier circuit are adjusted, or if the transmission protocol has a reverse transmission instruction function, the pre-emphasis characteristics of the sending stage can be adjusted. If it is noise, the bandwidth of the clock data recovery circuit is adjusted so that the clock data recovery circuit can better track the input signal.
[0057] Figure 4 A structural block diagram of a clock data recovery circuit according to an embodiment of the present invention is shown.
[0058] like Figure 4 As shown, the clock data recovery circuit 100 of the embodiment of the present invention includes an equalizer 110, a clock generating unit 120, a phase detector 130, a judging unit 140 and a filter 150. The detection circuit 200 includes the phase detector 130 and the judging unit 140.
[0059] The equalizer 110 is connected to a first input terminal of the phase detector 120 , and is used for receiving an original data input signal inputted thereto from an external circuit, compensating the original data input signal, generating a data input signal, and transmitting the data input signal to the phase detector 120 .
[0060] The output end of the clock generation unit 120 is connected to the phase detector 130 for providing a clock signal. The first output end, the second output end and the third output end of the clock generation unit 120 respectively generate a reference clock signal CKS, an advanced clock signal CSK_LEAD (i.e., a first clock signal) and a lagging clock signal CKS_LAG (i.e., a second clock signal).
[0061] The first input terminal of the phase detector 130 is connected to the equalizer 110 for receiving the data input signal, and the second input terminal, the third input terminal and the fourth input terminal of the phase detector 130 are respectively connected to the first output terminal, the second output terminal and the third output terminal of the clock generation unit 130 for receiving the reference clock signal CKS, the leading clock signal CSK_LEAD and the lagging clock signal CKS_LAG respectively. The phase detector 130 is used to generate a data sampling sequence and a recovered data signal Q2, and compare the phase difference between the data sampling sequence and the recovered data signal Q2 to output a phase difference signal UPL (i.e., a first logic signal), a phase difference signal DNL (i.e., a second logic signal), a phase difference signal UP (i.e., a first adjustment control signal) and a phase difference signal DN (i.e., a second adjustment control signal).
[0062] The judgment unit 140 is used to receive the recovered data signal Q2 and the phase difference signals UPL, UP, DN and DNL, and convert them into parallel data, reduce the frequency, and use digital signals to judge the relationship between the data input signal and the phase difference signals UPL and DNL, so as to judge the cause of the jitter of the data input signal, and generate at least two indication signals according to the judgment result to adjust the high-frequency gain of the equalizer 110 and the bandwidth of the clock generation unit 120 respectively. For example, the judgment unit 140 generates a first indication signal and a second indication signal for adjusting the high-frequency gain of the equalizer 110, and the judgment unit 140 generates a third indication signal for adjusting the bandwidth of the clock generation unit 120. The judgment unit 140 includes, for example, a microcontroller (MCU).
[0063] Preferably, after the high frequency gain of the equalizer 110 and the bandwidth of the clock generating unit 120 are adjusted, the two sampling paths of the leading clock signal CSK_LEAD and the lagging clock signal CKS_LAG and the judging unit 140 are turned off to reduce power consumption.
[0064] Preferably, the two sampling paths of the leading clock signal CSK_LEAD and the lagging clock signal CKS_LAG and the judgment unit 140 are opened only when the transmission channel of the transceiver is established or at intervals to reduce power consumption without affecting the performance of the clock data recovery circuit.
[0065] In this embodiment, if the phase difference signals DNL and UPL appear 1 a small number of times, the determination result of the determination unit 140 is that the bit error rate is small, and there is no need to adjust the equalizer 120 clock generation unit 120. If the phase difference signals DNL and UPL appear 1 a large number of times, the determination result of the determination unit 140 is that the bit error rate is large, and it is necessary to further analyze the cause of the jitter of the data input signal.
[0066] When multiple consecutive unchanged data input signals change, if the phase difference signal UPL is always 1, and the phase difference signal DNL is often 1 when the data input signal is continuously flipped, the judgment result of the judgment unit 140 is that the inter-symbol interference is serious. The judgment unit 140 generates a first indication signal and transmits it to the equalizer 120, thereby adjusting the equalizer 120 to reduce the high-frequency gain.
[0067] When multiple consecutive unchanged data input signals change, if the phase difference signal DNL is always 1, and the phase difference signal UPL is often 1 when the data input signal is continuously flipped, the judgment result of the judgment unit 140 is that the inter-symbol interference is serious. The judgment unit 140 generates a second indication signal and transmits it to the equalizer 120, thereby adjusting the equalizer 120 to increase the high-frequency gain.
[0068] If the phase difference signal DNL or UPL is continuously 1 and has nothing to do with the sequence pattern of the data input signal, it is considered that the input jitter is large and the bandwidth of the clock generation unit 120 is insufficient for normal tracking. The judgment unit 140 generates a second indication signal and transmits it to the clock generation unit 120 to increase the bandwidth of the clock generation unit 120.
[0069] The detection circuit 200 includes a phase detector 130 and a judgment unit 140, which are used to detect the data input signal and generate at least a detection signal, wherein the detection signal includes at least one of the above-mentioned judgment results. Preferably, the detection circuit 200 also outputs at least two indication signals generated according to the detection signal, which are used to control the equalizer 110 and the clock generation unit 120 respectively according to the judgment results.
[0070] The filter 150 is connected to the output end of the phase detector 140, and the clock generating unit 120 is connected to the output end of the filter 150. The filter 150 and the clock generating unit 120 are used to receive the phase difference signals UP and DN generated by the phase detector 140 and output the recovered clock signal.
[0071] Figure 5 A schematic diagram of a clock generating unit according to an embodiment of the present invention is shown; Figure 6 A timing diagram of a clock generation unit according to an embodiment of the present invention is shown.
[0072] like Figure 5 As shown, the clock generation unit 120 of the embodiment of the present invention includes, for example, a first delay unit 151, a second delay unit 122 and a clock generator 123, which are used to provide a clock signal. The first output terminal, the second output terminal and the third output terminal of the clock generation unit 120 respectively generate a reference clock signal CKS, an advanced clock signal CSK_LEAD and a lagging clock signal CKS_LAG.
[0073] The clock generator 123 generates an advanced clock signal CSK_LEAD and transmits the advanced clock signal CSK_LEAD to the first delay unit 121; the first delay unit 121 generates a reference clock signal CKS according to the advanced clock signal CSK_LEAD and transmits the reference clock signal CKS to the second delay unit 122, and the second delay unit 122 generates a delayed clock signal CKS_LAG. The clock generator 123 includes, for example, at least one of a voltage-controlled oscillator, a phase interpolator, or a quartz crystal resonator.
[0074] like Figure 6 As shown, taking the phase of the reference clock signal CKS as a reference, the period of the reference clock signal CKS is T. The lead clock signal CSK_LEAD leads the reference clock signal CKS, and the phase difference between the lead clock signal CSK_LEAD and the reference clock signal CKS is greater than 0 and less than or equal to T / 4; the lag clock signal CKS_LAG lags the reference clock signal CKS, and the phase difference between the lag clock signal CKS_LAG and the reference clock signal CKS is greater than 0 and less than or equal to T / 4. Preferably, the phase difference between the lead clock signal CSK_LEAD and the reference clock signal CKS is equal to T / 8; the phase difference between the lag clock signal CKS_LAG and the reference clock signal CKS is equal to T / 8.
[0075] Figure 7 A schematic diagram of the circuit structure of a phase detector according to an embodiment of the present invention is shown.
[0076] like Figure 7 As shown, the phase detector 130 of the embodiment of the present invention includes a main circuit 131 , a first detection unit 132 and a second detection unit 133 .
[0077] The main circuit 131 includes a trigger Q1, a trigger Q2, a trigger Q3, a trigger Q4, an XOR gate U1, and an XOR gate U2. The trigger Q1 generates a first intermediate signal according to the data input signal DIN and the reference clock signal CKS, the trigger Q1 generates a second intermediate signal according to the first intermediate signal and the reference clock signal CKS, the trigger Q3 generates a third intermediate signal according to the data signal DIN and the complementary signal of the reference clock signal, the trigger Q4 generates a fourth intermediate signal according to the third intermediate signal and the reference clock signal CKS, the XOR gate U1 generates a first adjustment indication signal according to the second intermediate signal and the fourth intermediate signal, and the XOR gate U2 generates a second adjustment indication signal according to the first intermediate signal and the fourth intermediate signal. The main circuit 131 outputs the second intermediate signal as the recovered data signal DIN to the next-stage receiving circuit.
[0078] The first detection unit 132 includes a trigger Q5, a trigger Q6 and an XOR gate U3. The trigger Q5 generates a first sampling signal according to the complementary signal of the data signal DIN and the advanced clock signal CSK_LEAD, and the sixth trigger generates a first logic signal according to the first sampling signal and the reference clock signal CKS.
[0079] The second detection unit 133 includes a trigger Q7, a trigger Q8 and an XOR gate U4. The trigger Q7 generates a second sampling signal according to the data signal DIN and the complementary signal of the lagging clock signal CKS_LAG, and the trigger Q8 generates a second logic signal according to the second sampling signal and the reference clock signal CKS. The triggers Q1 to Q8 are, for example, D triggers.
[0080] Compared with the prior art, a first detection unit including a trigger Q5, a trigger Q6 and an XOR gate U3 and a second detection unit including a trigger Q7, a trigger Q8 and an XOR gate U4 are added, and the data input signal DIN, the leading clock signal CSK_LEAD and the lagging clock signal CKS_LAG are used to generate two signals, DNL and UPL. Because the leading clock signal CKS_LEAD is earlier than the reference clock signal CKS, if the UPL signal is 1, it can be considered that the reference clock signal CKS lags behind the data input signal DIN too much; because the lagging clock signal CKS_LAG is later than the reference clock signal CKS, if the DNL signal is 1, it can be considered that the reference clock signal CKS leads the data input signal DIN too much; if the UPL signal and the DNL signal are often 1, it means that it is difficult for the reference clock signal CDR to track the data input signal DIN, and the clock has a large jitter relative to the data.
[0081] According to the embodiments of the present invention as described above, these embodiments do not describe all the details in detail, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and changes can be made based on the above description. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can make good use of the present invention and the modified use based on the present invention. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A detection circuit, characterized in that: include: A main circuit is used to provide a plurality of intermediate signals and an adjustment indication signal according to a data input signal and a reference clock signal, A first detection unit, configured to generate a first logic signal according to the data input signal, the reference clock signal, the corresponding intermediate signal, and a first clock signal that is ahead of the reference clock signal; A second detection unit, configured to generate a second logic signal according to the data input signal, the reference clock signal, the corresponding intermediate signal, and a second clock signal lagging behind the reference clock signal; as well as a determination unit, configured to generate an indication signal according to a logical relationship between the first logic signal, the second logic signal and the data input signal, wherein the indication signal represents a jitter compensation type required for the data input signal, wherein the jitter compensation type includes an inter-symbol interference type and a noise type, Wherein, the first detection unit includes a fifth trigger, a sixth trigger and a third XOR gate, The second detection unit includes a seventh trigger, an eighth trigger and a fourth XOR gate, The fifth flip-flop generates a first sampling signal according to the data input signal and a complementary signal of the first clock signal, and the sixth flip-flop generates the first logic signal according to the first sampling signal and the reference clock signal. The seventh flip-flop generates a second sampling signal according to the data input signal and a complementary signal of the second clock signal, and the eighth flip-flop generates the second logic signal according to the second sampling signal and the reference clock signal. The indication signal includes a first indication signal, a second indication signal and a third indication signal, If the first logic signal is at a high level, and when the data input signal level state changes, the second logic signal is at a high level, then the first indication signal is valid, If the second logic signal is at a high level, and when the data input signal level state changes, the first logic signal is at a high level, then the second indication signal is valid, If the first logic signal and / or the second logic signal is at a high level, and when the level state of the data input signal changes, the level state of the first logic signal and / or the second logic signal remains unchanged, then the third indication signal is valid, When the third indication signal is valid, the bandwidths of the reference clock signal, the first clock signal and the second clock signal are increased, receiving an original signal and providing a compensation signal to the original signal to generate the data input signal, wherein the gain of the compensation signal is controlled by the first indication signal and the second indication signal, When the first indication signal is valid, the gain of the compensation signal is reduced, When the second indication signal is valid, the gain of the compensation signal increases.
2. The detection circuit according to claim 1, characterized in that: The period of the reference clock signal is T, the phase difference between the first clock signal and the reference clock signal is greater than 0 and not greater than T / 4, and the phase difference between the second clock signal and the reference clock signal is greater than 0 and not greater than T / 4.
3. The detection circuit according to claim 1, characterized in that: The main circuit includes a first trigger, a second trigger, a third trigger, a fourth trigger, a first XOR gate and a second XOR gate. The intermediate signals include a first intermediate signal, a second intermediate signal, a third intermediate signal and a fourth intermediate signal, The adjustment instruction signal includes a first adjustment instruction signal and a second adjustment instruction signal, The first trigger generates the first intermediate signal according to the data input signal and the reference clock signal. The second trigger generates the second intermediate signal according to the first intermediate signal and the reference clock signal, The third flip-flop generates the third intermediate signal according to the data input signal and a complementary signal of the reference clock signal. The fourth flip-flop generates the fourth intermediate signal according to the third intermediate signal and the reference clock signal, The first XOR gate generates the first adjustment indication signal according to the second intermediate signal and the fourth intermediate signal, The second XOR gate generates the second adjustment indication signal according to the first intermediate signal and the fourth intermediate signal.
4. The detection circuit according to claim 1, characterized in that: When performing detection, the first detection unit, the second detection unit and the judgment unit are turned on, When the detection is stopped, the first detection unit, the second detection unit and the judgment unit are turned off.
5. A clock data recovery circuit, characterized in that: include: The detection circuit according to any one of claims 1 to 4, wherein the main circuit of the detection circuit generates a restored data signal; a clock generating unit, configured to provide a clock signal, wherein the clock signal includes the reference clock signal, the first clock signal and the second clock signal, and the bandwidth of the clock signal is controlled by the indication signal; as well as a filter, connected to the detection circuit, for generating a voltage signal according to the adjustment indication signal, The output end of the filter is connected to the clock generating unit, and the clock generating unit further generates a recovered clock signal according to the voltage signal, and provides the recovered clock signal to the detection circuit.
6. The clock data recovery circuit according to claim 5, characterized in that: Also includes: The equalizer is used for receiving an original signal and providing a compensation signal to the original signal to generate the data input signal, wherein the gain of the compensation signal is controlled by the indication signal.
7. The clock data recovery circuit according to claim 6, characterized in that: The instruction signal includes a first instruction signal and a second instruction signal for adjusting the high frequency gain of the equalizer, and a third instruction signal for adjusting the bandwidth of the clock generation unit. If the first logic signal is at a high level, and when the data input signal level state changes, the second logic signal is at a high level, then the first indication signal is valid, If the second logic signal is at a high level, and when the data input signal level state changes, the first logic signal is at a high level, then the second indication signal is valid, If the first logic signal and / or the second logic signal is at a high level, and when the level state of the data input signal changes, the level state of the first logic signal and / or the second logic signal remains unchanged, then the third indication signal is valid, Wherein, when the first indication signal is valid, the gain of the compensation signal is reduced, When the second indication signal is valid, the gain of the compensation signal increases, When the third indication signal is valid, the bandwidth of the clock signal increases.
8. The clock data recovery circuit according to claim 6, characterized in that: Before starting to receive the original signal, the clock generating unit provides the first clock signal and the second clock signal for signal detection, After receiving the original signal, the clock generating unit stops providing the first clock signal and the second clock signal to stop signal detection.
9. The clock data recovery circuit according to claim 5, characterized in that: The clock generating unit comprises: A clock generator, configured to generate the first clock signal; A first delay unit, configured to generate the reference clock signal according to the first clock signal; and A second delay unit is used to generate the second clock signal according to the reference clock signal. The period of the reference clock signal is T, the phase difference between the first clock signal and the reference clock signal is greater than 0 and not greater than T / 4, and the phase difference between the second clock signal and the reference clock signal is greater than 0 and not greater than T / 4.
10. A signal detection method, characterized in that: include: Providing multiple intermediate signals and adjustment indication signals according to the data input signal and the reference clock signal, generating a first logic signal according to the data input signal, the reference clock signal, the corresponding intermediate signal, and a first clock signal preceding the reference clock signal; generating a second logic signal according to the data input signal, the reference clock signal, the corresponding intermediate signal, and a second clock signal lagging behind the reference clock signal; as well as generating an indication signal according to a logical relationship between the first logic signal, the second logic signal and the data input signal, wherein the indication signal represents a jitter compensation type required for the data input signal, wherein the jitter compensation type includes an inter-symbol interference type and a noise type, The indication signal includes a first indication signal, a second indication signal and a third indication signal. If the first logic signal is at a high level, and when the data input signal level state changes, the second logic signal is at a high level, then the first indication signal is valid, If the second logic signal is at a high level, and when the data input signal level state changes, the first logic signal is at a high level, then the second indication signal is valid, If the first logic signal and / or the second logic signal is at a high level, and when the level state of the data input signal changes, the level state of the first logic signal and / or the second logic signal remains unchanged, then the third indication signal is valid, When the third indication signal is valid, the bandwidths of the reference clock signal, the first clock signal and the second clock signal are increased, receiving an original signal and providing a compensation signal to the original signal to generate the data input signal, wherein the gain of the compensation signal is controlled by the first indication signal and the second indication signal, When the first indication signal is valid, the gain of the compensation signal is reduced, When the second indication signal is valid, the gain of the compensation signal increases, generating a first sampling signal according to the data input signal and a complementary signal of the first clock signal, generating the first logic signal according to the first sampling signal and the reference clock signal, A second sampling signal is generated according to the data input signal and a complementary signal of the second clock signal, and the second logic signal is generated according to the second sampling signal and the reference clock signal.
11. The signal detection method according to claim 10, characterized in that: The method of generating the reference clock signal, the first clock signal and the second clock signal includes: generating the first clock signal; generating the reference clock signal according to the first clock signal; and generating the second clock signal according to the reference clock signal, The period of the reference clock signal is T, the phase difference between the first clock signal and the reference clock signal is greater than 0 and not greater than T / 4, and the phase difference between the second clock signal and the reference clock signal is greater than 0 and not greater than T / 4.
12. The signal detection method according to claim 10, characterized in that: The intermediate signals include a first intermediate signal, a second intermediate signal, a third intermediate signal and a fourth intermediate signal, The adjustment instruction signal includes a first adjustment instruction signal and a second adjustment instruction signal, The method for generating the adjustment indication signal comprises: generating the first intermediate signal according to the data input signal and the reference clock signal, generating the second intermediate signal according to the first intermediate signal and the reference clock signal, generating the third intermediate signal according to the data input signal and a complementary signal of the reference clock signal, generating the fourth intermediate signal according to the third intermediate signal and the reference clock signal, generating the first adjustment indication signal according to the second intermediate signal and the fourth intermediate signal, The second adjustment indication signal is generated according to the first intermediate signal and the fourth intermediate signal.
13. The signal detection method according to claim 10, characterized in that: When performing signal detection, the first clock signal and the second clock signal are received, and the indication signal is generated, When signal detection is stopped, the first clock signal and the second clock signal are stopped from being received, and the indication signal is stopped from being generated.
