A clock quality monitoring circuit

The clock signal is processed through the phase lock loop and the phase adjuster, and combined with the real-time judgment of the judgment module, the monitoring delay problem of clock signal quality monitoring in the existing technology is solved, timely detection and abnormal reminder of clock signal quality are realized, and the The effectiveness of monitoring.

CN111240402BActive Publication Date: 2024-11-19HEFEI NEWCOSEMI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010196561.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-19
Publication Date
2024-11-19
Estimated Expiration
2040-03-19

AI Technical Summary

Technical Problem

After the quality of the clock signal deteriorates, the monitoring effectiveness is poor and the clock signal abnormality cannot be detected in time.

Method used

Design a clock quality monitoring circuit, including a phase lock loop, a phase adjuster and a judgment module, smoothing the measured clock signal through a phase lock loop, and the phase adjuster moves the signal forward and backwards, and the judgment module judges and samples in real time Whether the signal meets the preset rules, an abnormal prompt is output.

Benefits of technology

Real-time monitoring of clock signal quality is realized, clock signal abnormalities can be detected in a timely manner, and the effectiveness of monitoring is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111240402B_ABST
    Figure CN111240402B_ABST
Patent Text Reader

Abstract

The present invention provides a clock quality monitoring circuit, comprising: a phase-locked loop, a phase adjuster and a judgment module; the input end of the phase-locked loop is used to input a clock signal to be measured; the phase adjuster is used to shift the phase of the clock signal to be measured output by the phase-locked loop forward by a preset phase to obtain a first displacement signal, and is used to shift the phase of the clock signal to be measured output by the phase-locked loop backward by a preset phase to obtain a second displacement signal; the judgment module is used to, when the first displacement signal and the second displacement signal meet the corresponding first preset condition and second preset condition, sample the clock displacement signal to be measured to obtain a first sampling signal and a second sampling signal; judge whether the values ​​of the first sampling signal and the second sampling signal meet the preset rules, and when the preset rules are not met, output prompt information for characterizing the abnormality of the clock signal to be measured, so that the abnormality of the clock signal quality can be monitored in time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of electronic circuits, and in particular to a clock quality monitoring circuit. Background Art

[0002] The clock is a very important part of the electronic product system. Almost all electronic components operate synchronously under the action of the clock. Therefore, the quality of the clock signal will directly affect the stability of the electronic product system. At present, the electronic product system generally monitors the quality of the clock signal.

[0003] In the prior art, clock signal quality monitoring is mainly achieved by calculating the average value of the clock signal frequency over a period of time. Specifically, the average value of the clock signal frequency over a period of time is calculated, and when the average value exceeds a certain threshold range, it indicates that the clock signal is abnormal. However, this implementation method means that the clock signal quality deteriorates only after a period of time, and the monitoring effectiveness is poor.

[0004] Therefore, those skilled in the art need to provide a clock quality real-time monitoring circuit, which can timely monitor the abnormality of clock signal quality compared with the prior art. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a clock quality monitoring circuit to achieve reliable monitoring of signal abnormality of a clock signal under test.

[0006] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0007] A clock quality monitoring circuit, characterized by comprising:

[0008] Phase-locked loop, phase adjuster and judgment module;

[0009] The input end of the phase-locked loop is used to input the clock signal to be measured;

[0010] The phase adjuster is used to shift the phase of the measured clock signal output by the phase-locked loop forward by a preset phase to obtain a first displacement signal, and is used to shift the phase of the measured clock signal output by the phase-locked loop backward by a preset phase to obtain a second displacement signal;

[0011] The judgment module is used to sample the measured clock signal to obtain a first sampling signal when the first displacement signal meets a first preset condition, and to sample the measured clock signal to obtain a second sampling signal when the second displacement signal meets a second preset condition, and to judge whether the values ​​of the first sampling signal and the second sampling signal meet a preset rule, and when the preset rule is not met, output a prompt message for characterizing that the measured clock signal is abnormal.

[0012] Optionally, in the above clock quality monitoring circuit, the judgment module includes:

[0013] A first sampler, a second sampler and a judger;

[0014] The first sampler is used to: when the first displacement signal meets a first preset condition, sample the clock signal to be measured to obtain a first sampling signal;

[0015] The second sampler is used for: sampling the clock signal to be measured to obtain a second sampling signal when the second displacement signal meets a second preset condition;

[0016] The determiner is used to determine whether the values ​​of the first sampling signal and the second sampling signal meet a preset rule, and when the preset rule is not met, output prompt information for indicating that the measured clock signal is abnormal.

[0017] Optionally, in the above clock quality monitoring circuit, the phase adjuster includes:

[0018] a first phase adjuster and a second phase adjuster;

[0019] The first adjuster is used to shift the phase of the slowly varying measured clock signal output by the phase-locked loop forward by a preset phase to obtain a first displacement signal, and the second adjuster is used to shift the phase of the slowly varying measured clock signal output by the phase-locked loop backward by a preset phase to obtain a second displacement signal.

[0020] Optionally, in the above clock quality monitoring circuit, the first preset condition is the arrival of a rising edge and / or a falling edge of the first displacement signal;

[0021] The second preset condition is the arrival of a rising edge and / or a falling edge of the second displacement signal.

[0022] Optionally, in the above clock quality monitoring circuit, when the first preset condition is the arrival of a rising edge of the first displacement signal, and the second preset condition is the arrival of a rising edge of the second displacement signal, the determining whether the values ​​of the first sampling signal and the second sampling signal satisfy a preset rule includes:

[0023] Determining whether the values ​​of the first sampling signals are all first preset values;

[0024] It is determined whether the values ​​of the second sampling signals are all second preset values.

[0025] Optionally, in the above clock quality monitoring circuit, the phase adjuster is further used for:

[0026] A preset phase matching the user operation is generated based on the user operation.

[0027] Optionally, in the above-mentioned clock quality monitoring circuit, the value of the preset phase is greater than the maximum jitter value of the measured clock signal.

[0028] The above solution provided by the embodiment of the present invention first uses a phase-locked loop to measure the clock signal V In The measured clock signal is smoothed to obtain a slowly varying measured clock signal, and then the phase of the slowly varying measured clock signal is respectively shifted forward by a preset phase △φ and backward by a preset phase △φ through a phase adjuster to obtain a first displacement signal and a second displacement signal, wherein the value of the preset phase △φ can be determined according to the measured clock signal V In The actual jitter condition of the measured clock signal V In The actual jitter range refers to the actual jitter range not greater than the measured clock signal V In The maximum jitter value of the first displacement signal and the second displacement signal are detected respectively. When the first displacement signal meets the first preset condition, the measured clock signal is sampled to obtain the first sampling signal. When the second displacement signal meets the second preset condition, the measured clock signal is sampled to obtain the second sampling signal. Finally, the values ​​of the first sampling signal and the second sampling signal are judged in real time by the judgment module. When the values ​​of the two sampling signals are not within the preset value range, it indicates that the measured clock signal V In Abnormality occurs (such as jitter or missed beats). The circuit provided in this embodiment is simple to implement, can timely monitor the abnormality of the clock signal quality, and has good effectiveness. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0030] Figure 1 A schematic diagram of the structure of a clock quality monitoring circuit disclosed in an embodiment of the present application;

[0031] Figure 2 is a schematic diagram of changes of various signals involved in the clock quality monitoring circuit when the measured clock signal is normal;

[0032] Figure 3 A schematic diagram of changes in various signals involved in a clock quality monitoring circuit when the measured clock signal is abnormal;

[0033] Figure 4A schematic diagram of the structure of a clock quality monitoring circuit disclosed in another embodiment of the present application. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. 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.

[0035] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0036] Embodiment 1:

[0037] See also Figure 1 , Figure 1 A schematic diagram of the structure of a clock quality monitoring circuit disclosed in an embodiment of the present application.

[0038] In the technical solutions disclosed in the embodiments of this application, see Figure 1 The clock quality monitoring circuit includes a phase-locked loop 100, a phase adjuster 200 and a judgment module 300;

[0039] The input end of the phase-locked loop is used to input the clock signal to be measured, and the phase-locked loop is used to obtain the clock signal V to be measured. In, The measured clock signal V In After smoothing, a slowly varying clock signal V0 is output;

[0040] The phase adjuster is used to perform phase adjustment on the slowly varying clock signal V0. The phase adjustment includes phase shifting forward and phase shifting backward of the slowly varying clock signal V0. Specifically, during adjustment, the phase of the measured clock signal is shifted forward by a preset phase △φ to obtain a first displacement signal V 1- , used to shift the phase of the measured clock signal backward by a preset phase △φ to obtain a second displacement signal V 1+ , wherein the value of the preset phase △φ can be based on the measured clock signal V In The actual jitter condition is adjusted as long as the value of the preset phase △φ is greater than the measured clock signal V In For example, if the measured clock signal V In If the maximum jitter value is 50 ps, ​​then the value of the preset phase △φ needs to be greater than 50 ps.

[0041] The judging module is used for: when the first displacement signal V1- When the first preset condition is met, the clock signal to be measured is sampled to obtain a first sampling signal V2. 1+ When the second preset condition is met, the measured clock signal is sampled to obtain a second sampling signal V3; it is determined whether the values ​​of the first sampling signal V2 and the second sampling signal V3 meet the preset rules. When the preset rules are not met, a prompt message is output to characterize the abnormality of the measured clock signal.

[0042] In this scheme, the setting method of the first preset condition and the second preset condition can be set according to user needs. For example, it can refer to the rising edge or falling edge of the signal. When the first preset condition and the second preset condition are met, the measured clock signal output by the phase-locked loop is sampled. In the present solution, the first preset condition and the second preset condition may refer to when the setting time of the first displacement signal arrives and when the setting time of the second displacement signal arrives; in the present solution, the rising edge of the first displacement signal and the second displacement signal are used as the corresponding first preset condition and the second preset condition, that is, when the rising edge of the first displacement signal arrives and when the rising edge of the second displacement signal arrives, the measured clock signal output by the phase-locked loop is sampled to obtain the first sampling signal V2, and the measured clock signal output by the phase-locked loop is sampled to obtain the second sampling signal V3. In actual use, if the measured clock signal is normal, the values ​​of the first sampling signal V2 and the second sampling signal V3 collected will meet a preset rule. By judging whether the values ​​of the first sampling signal V2 and the second sampling signal V3 meet the preset rule, it can be judged whether the measured clock signal is abnormal. When the first sampling signal V2 and / or the second sampling signal V3 do not meet the preset rule, a prompt information used to characterize the abnormality of the measured clock signal is output, otherwise, it indicates that the measured clock signal is normal.

[0043] In this solution, the preset rule can be to determine whether the first sampling signal V2 and the second sampling signal V3 are preset values. The preset values ​​are different according to the preset conditions. Taking the preset condition as a rising edge as an example, the preset rule is specifically: the value of the first sampling signal V2 remains at 0, and the value of the second sampling signal V3 remains at 1. That is, see Figure 2 , when the measured clock signal V In Normally, the value of the first sampling signal V2 is always 0, and the value of the second sampling signal V3 is always 1. When the value of the first sampling signal is 0 and the value of the second sampling signal V3 is 1, the first sampling signal V2 and the second sampling signal V3 meet the preset rule, see Figure 3 , when the measured clock signal V InWhen abnormal, the first sampling signal V2 will become 1, or the second sampling signal V3 will become 0. Therefore, as long as the condition (the first sampling signal V2 = 0 and the second sampling signal V3 = 1) is not met, the judgment module considers that the measured clock signal V In An exception occurred.

[0044] The clock quality real-time monitoring solution provided in this embodiment first uses a phase-locked loop to monitor the clock signal V In Smoothing is performed to obtain a slowly varying measured clock signal V0, and then the slowly varying measured clock signal is phase-shifted forward and backward by a preset phase △φ through a phase adjuster to obtain a first displacement signal V 1- and the second displacement signal V 1+ , wherein the value of the preset phase △φ can be based on the measured clock signal V In The actual jitter condition is adjusted, and the value of the preset phase should be greater than the measured clock signal V In The maximum jitter value of the first displacement signal and the second displacement signal is then detected. When the first displacement signal meets the first preset condition and the second displacement signal meets the second preset condition, the measured clock signal is edge sampled to obtain the first sampling signal V2. The measured clock signal is edge sampled to obtain the second sampling signal V3. Finally, the judgment module is used to judge the values ​​of the first sampling signal V2 and the second sampling signal V3 in real time. When the values ​​of the two sampling signals are not within the preset value range, it indicates that the measured clock signal V In Abnormality occurs (such as jitter or missed beats). The circuit provided in this embodiment is simple to implement, can timely monitor the abnormality of the clock signal quality, and has good effectiveness.

[0045] In the technical solution disclosed in the embodiment of the present application, the structure of the judgment module can be selected according to user needs, for example, see Figure 4 In the technical solution disclosed in the embodiment of the present application, the judgment module may include:

[0046] A first sampler 300a, a second sampler 300b and a judger 300c;

[0047] The first sampler 300a is used to: when the first displacement signal meets a first preset condition, sample the clock signal to be measured to obtain a first sampling signal V2;

[0048] The second sampler 300b is used to: when the second displacement signal meets the second preset condition, sample the clock signal to obtain a second sampling signal V3;

[0049] The determiner 300c is used to determine whether the values ​​of the first sampling signal V2 and the second sampling signal V3 meet a preset rule, and when the preset rule is not met, output a prompt message for indicating that the measured clock signal is abnormal.

[0050] The phase adjuster 200 may be implemented by an independent phase adjuster or by two phase adjusters, for example, see Figure 4 In the present application, the phase adjuster may include a first phase adjuster 200a and a second phase adjuster 200b. The first adjuster 200a is used to shift the phase of the slowly varying measured clock signal V0 output by the phase-locked loop by a preset phase △φ to obtain a first displacement signal V 1- The second adjuster 200b is used to shift the phase of the slowly varying measured clock signal V0 output by the phase-locked loop by a preset phase △φ to obtain a second displacement signal V 1+ .

[0051] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0052] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A clock quality monitoring circuit, characterized in that: include: Phase-locked loop, phase adjuster and judgment module; The input end of the phase-locked loop is used to input the clock signal to be measured; The phase adjuster is used to shift the phase of the measured clock signal output by the phase-locked loop forward by a preset phase to obtain a first displacement signal, and is used to shift the phase of the measured clock signal output by the phase-locked loop backward by a preset phase to obtain a second displacement signal; The judgment module is used to sample the measured clock signal to obtain a first sampling signal when the first displacement signal meets a first preset condition, and to sample the measured clock signal to obtain a second sampling signal when the second displacement signal meets a second preset condition, and to judge whether the values ​​of the first sampling signal and the second sampling signal meet a preset rule, and when the preset rule is not met, output a prompt message for characterizing that the measured clock signal is abnormal.

2. The clock quality monitoring circuit according to claim 1, characterized in that: The judging module comprises: A first sampler, a second sampler and a judger; The first sampler is used to: when the first displacement signal meets a first preset condition, sample the clock signal to be measured to obtain a first sampling signal; The second sampler is used for: sampling the clock signal to be measured to obtain a second sampling signal when the second displacement signal meets a second preset condition; The determiner is used to determine whether the values ​​of the first sampling signal and the second sampling signal meet a preset rule, and when the preset rule is not met, output prompt information for indicating that the measured clock signal is abnormal.

3. The clock quality monitoring circuit according to claim 1, characterized in that: The phase adjuster comprises: a first phase adjuster and a second phase adjuster; The first phase adjuster is used to shift the phase of the slowly varying measured clock signal output by the phase-locked loop forward by a preset phase to obtain a first displacement signal, and the second phase adjuster is used to shift the phase of the slowly varying measured clock signal output by the phase-locked loop backward by a preset phase to obtain a second displacement signal.

4. The clock quality monitoring circuit according to claim 1, characterized in that: The first preset condition is the arrival of a rising edge or a falling edge of the first displacement signal; The second preset condition is the arrival of a rising edge or a falling edge of the second displacement signal.

5. The clock quality monitoring circuit according to claim 4, characterized in that: When the first preset condition is the arrival of a rising edge of the first displacement signal, and the second preset condition is the arrival of a rising edge of the second displacement signal, the determining whether the values ​​of the first sampling signal and the second sampling signal satisfy a preset rule includes: Determining whether the values ​​of the first sampling signals are all first preset values; It is determined whether the values ​​of the second sampling signals are all second preset values.

6. The clock quality monitoring circuit according to claim 1, characterized in that: The phase adjuster is also used for: A preset phase matching the user operation is generated based on the user operation.

7. The clock quality monitoring circuit according to claim 1, characterized in that: The value of the preset phase is greater than the maximum jitter value of the measured clock signal.