WO2018058915A1 - Clock signal loss detection device - Google Patents

Clock signal loss detection device Download PDF

Info

Publication number
WO2018058915A1
WO2018058915A1 PCT/CN2017/077152 CN2017077152W WO2018058915A1 WO 2018058915 A1 WO2018058915 A1 WO 2018058915A1 CN 2017077152 W CN2017077152 W CN 2017077152W WO 2018058915 A1 WO2018058915 A1 WO 2018058915A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
delay unit
gate
output
input
Prior art date
Application number
PCT/CN2017/077152
Other languages
French (fr)
Chinese (zh)
Inventor
司晓明
赵春河
李超林
Original Assignee
深圳市中兴微电子技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市中兴微电子技术有限公司 filed Critical 深圳市中兴微电子技术有限公司
Publication of WO2018058915A1 publication Critical patent/WO2018058915A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K5/00Manipulating of pulses not covered by one of the other main groups of this subclass
    • H03K5/19Monitoring patterns of pulse trains

Definitions

  • the present invention relates to the field of signal detection technologies, and in particular, to a device for detecting clock loss.
  • the conventional clock loss detecting device simultaneously counts the number of cycles of the input clock signal and the reference clock signal, and determines whether the input clock signal is lost by comparing the number of cycles of the input clock signal and the reference clock signal in a fixed period of time.
  • 1 is a schematic diagram of clock loss detection in the prior art. As shown in FIG. 1, the period of the input clock signal and the reference clock signal are simultaneously counted. When the count value of the reference clock signal reaches the set count threshold M, it is determined. At this time, the magnitude relationship between the count value N of the input clock signal and the count value M of the reference clock signal is determined. When M is greater than N, it is judged that the input clock signal is lost, and when M is less than or equal to N, it is judged that the input clock signal is not lost.
  • the traditional clock loss detection device has the advantage that the implementation principle is simple and intuitive, and can be directly realized by digital circuits.
  • the disadvantage is that additional reference signals are needed, and additional circuit design work is added.
  • the detection accuracy of the conventional clock signal loss detection method is related to the count value M of the reference clock signal. The larger the M value is, the more accurate the detection result is, but the detection speed is also lowered, and the detection of the input clock signal loss cannot be realized quickly and accurately. happening.
  • a fast clock loss detecting device is derived on the basis of the traditional clock loss detecting device.
  • the basic working principle of the device is: judging within one cycle of the clock signal to be detected Whether the number of periods P of the reference clock signal satisfies the set count threshold Q.
  • the period of the clock signal to be detected is greater than 10 times the reference clock period of 0.1 us, that is, the frequency of the clock signal to be detected is less than 1 M, and the clock signal is determined to be lost; On the contrary, if the number of periods P of the reference clock signal is less than or equal to the count threshold Q, it is judged that the clock signal is not lost.
  • the improved clock loss detection apparatus only needs to detect whether the clock signal is lost during one input clock signal period, and greatly improves the detection speed.
  • the improved device cannot detect a fixed level of input signal and also requires a fixed reference clock signal for clock detection, adding additional circuit design work.
  • the embodiment of the present invention is intended to provide a device and method for detecting clock loss, which can improve the detection speed and simplify the hardware circuit design when the clock signal is lost, and can also detect the fixed level and expand the clock. Loss of application range of the detection device.
  • An embodiment of the present invention provides a clock signal loss detection apparatus, including: a first delay unit, a second delay unit, a D flip-flop, a first NOT gate, a second NOT gate, and an AND gate; wherein
  • the input end of the first delay unit, the clock end of the D flip-flop, and the input end of the second non-gate respectively access a clock signal
  • the output end of the first delay unit is connected in series with the first non- a reset end of the D flip-flop is connected to the gate
  • a D terminal of the D flip-flop is connected to a power source
  • an output end of the second NOT gate is connected to a first input end of the AND gate
  • the D of the D flip-flop The end is connected to the second input end of the AND gate, and the output end of the AND gate is connected to the input end of the second delay unit;
  • the D flip-flop is configured to output a low level signal at its Q terminal when a high level signal is connected to its reset terminal;
  • Each delay unit is configured to output a pulse signal after a falling edge delay when its own input signal is a pulse signal and the frequency of its own input signal is less than a frequency threshold; the input signal is a pulse signal, and itself Output when the frequency of the input signal is greater than or equal to the frequency threshold a high level signal; wherein the pulse signal after the falling edge delay of the output of the second delay unit is used to indicate that the clock signal is lost, and the high level signal output by the second delay unit is used to indicate The clock signal is not lost.
  • each delay unit is further configured to output a fixed level signal on the input signal of the self, and the fixed level signal output by the second delay unit is used to indicate The clock signal is lost.
  • the first delay unit and the second delay unit have the same internal structure.
  • each delay unit is further provided with a control end, and each delay unit is configured to determine a frequency threshold based on the control signal when the control terminal accesses the control signal.
  • control signal of each delay unit determines the frequency threshold by controlling an access state of at least one controlled device inside each delay unit, and the access status of each controlled device is used to indicate corresponding receiving Control whether the device is connected.
  • the controlled device is a positive channel metal oxide semiconductor PMOS; when the number of controlled devices inside each delay unit is greater than 2, each controlled device inside each delay unit The width to length ratio is different.
  • control signal accessed by each delay unit is a voltage signal or a current signal.
  • the device further includes: a third non-gate
  • the output end of the second delay unit is connected to the input end of the third NOT gate.
  • the device further includes: a logic control circuit; the logic control circuit is connected to an output end of the second delay unit or an output end of the third NOT gate,
  • the logic control circuit is configured to wait for n preset delay amounts after starting to receive the output signal of the second delay unit or the third NOT gate, and then receive the current received from the The signal output of the second delay unit or the third NOT gate, n is an integer greater than 0, and the preset delay amount is a falling edge delay time of each delay unit.
  • the device further includes: a frequency divider; the clock signal is respectively connected to the input end of the first delay unit, the clock end of the D flip-flop, and the second non-gate through the frequency divider Input.
  • An apparatus for detecting loss of a clock signal includes: a first delay unit, a second delay unit, a D flip-flop, a first NOT gate, a second NOT gate, and an AND gate; wherein The input end of the first delay unit, the clock end of the D flip-flop, and the input end of the second non-gate respectively access a clock signal, and the output end of the first delay unit is connected in series with the first NOT gate Connecting the reset end of the D flip-flop, the D end of the D flip-flop is connected to the power source, the output end of the second NOT gate is connected to the first input end of the AND gate, and the Q end of the D flip-flop is connected a second input end of the AND gate, an output end of the AND gate is connected to an input end of the second delay unit; and a pulse signal after a falling edge delay output by the second delay unit is used to indicate The clock signal is lost, and the high level signal output by the second delay unit is used to indicate that the clock signal is not lost.
  • 1 is a schematic diagram of clock loss detection in the prior art
  • FIG. 2 is a schematic diagram of a first component structure of an apparatus for clock signal loss detection according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a D-flip-flop of a modified TSPC structure according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a programmable falling edge delay unit according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a second component of an apparatus for detecting clock loss in an embodiment of the present invention.
  • FIG. 6 is a timing diagram of an input signal at a fixed level 0 in an embodiment of the present invention.
  • FIG. 7 is a timing diagram of an input signal at a fixed level 1 according to an embodiment of the present invention.
  • FIG. 8 is a timing diagram of an input signal frequency below a threshold frequency in an embodiment of the present invention.
  • FIG. 9 is a timing diagram of an input signal frequency higher than a threshold frequency according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram showing a third component structure of an apparatus for detecting clock loss in an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a logic control circuit according to an embodiment of the present invention.
  • FIG. 2 is a first schematic structural diagram of a device for detecting clock loss of the present invention. As shown in FIG. 2, the device includes: a first delay unit 1, a first NOT gate 2, a D flip-flop 3, and a second NOT gate. 4. an AND gate 5 and a second delay unit 6; wherein
  • the input end of the first delay unit 1, the clock end of the D flip-flop 3, and the input end of the second NOT gate 4 respectively access the clock signal CLK_IN, and the output end of the first delay unit 1 is connected in series
  • the first non-gate 2 is connected to the reset end of the D flip-flop 3, the D end of the D flip-flop 3 is connected to a power source, and the output end of the second NOT gate 4 is connected to the first end of the AND gate 5.
  • the input end, the Q end of the D flip-flop 3 is connected to the second input end of the AND gate 5, and the output end of the AND gate 5 is connected to the input end of the second delay unit 6;
  • the D flip-flop 3 is configured to output a low level signal at its Q terminal when a high level signal is connected to its reset terminal;
  • Each delay unit is configured to output a pulse signal after a falling edge delay when its own input signal is a pulse signal and the frequency of its own input signal is less than a frequency threshold; the input signal is a pulse signal, and itself a high level signal is output when the frequency of the input signal is greater than or equal to the frequency threshold; wherein the pulse signal after the falling edge delay output by the second delay unit 6 is used to indicate that the clock signal is lost, the second The high level signal output by the delay unit 6 is used to indicate that the clock signal is not lost.
  • the D flip-flop 3 may be a D flip-flop with reset having an asynchronous reset function.
  • an asynchronous reset function can be implemented by using a D-flip-flop of an improved TSPC structure, which has the characteristics of logic simplicity, low hardware overhead, and the like.
  • the improved TSPC structure D flip-flop includes: four positive channel metal oxide semiconductor (PMOS) cells (MP5, MP6, MP7, MP8) and four negative channel metal oxide semiconductors. (NMOS, Negative channel Metal Oxide Semiconductor)
  • PMOS positive channel metal oxide semiconductor
  • NMOS Negative channel Metal Oxide Semiconductor
  • a three-stage inverter consisting of a MN5, MN6, MN7, and MN8, a power input terminal, a clock input terminal, a reset signal input terminal, and an output terminal.
  • the X node When the rising edge of CLK arrives and the input signal Reset of the reset signal input terminal is a low level signal, the X node is high level, the QN node is also high level, the output Q is high level; when the input signal of the reset signal input end is Reset When it is a high level signal, the signal of the X node is a low level signal, the signal of the QN node is a high level signal, and the Q node outputs a low level signal.
  • the first delay unit 1 and the second delay unit 6 have the same internal structure.
  • Each delay unit is further provided with a control end, each delay unit is configured to determine a frequency threshold based on the control signal when the control terminal accesses the control signal, and the control signal accessed by each delay unit is a voltage signal or Current signal.
  • the control signal of each delay unit determines the frequency threshold by controlling an access state of at least one controlled device inside each delay unit, and the access status of each controlled device is used to indicate whether the corresponding controlled device is connected In.
  • the controlled device may be a positive channel metal oxide semiconductor PMOS; when the number of controlled devices inside each delay unit is greater than 2, the width and length ratio of each controlled device inside each delay unit is different.
  • the first delay unit and the second delay unit may be programmable falling edge delay units
  • FIG. 4 is a schematic structural diagram of a programmable falling edge delay unit according to an embodiment of the present invention, as shown in FIG. 4 .
  • the falling edge delay unit can include:
  • a frequency threshold adjustment module composed of four PMOS transistors MP0-MP3, one NMOS transistor MN0, one capacitor C0, one PMOS (MP4) and one NMOS (MN1) inverter.
  • the aspect ratio (W/L, Width/length) of POMS is much smaller than that of NMOS W/L, therefore, when the PMOS is turned on, the power supply VDD charges the capacitor C0 much faster than the discharge speed of C0 when the NMOS is turned on.
  • the rising edge of the clock signal arrives, at least one PMOS transistor (MP0, MP1, MP2, MP3) in the frequency threshold adjustment module is turned on, and when the rising edge of the clock signal comes, the NMOS transistor (MN0) is turned on, so that the pair can be realized.
  • the falling edge of the input signal is delayed and the rising edge remains essentially unchanged.
  • the access of each PMOS transistor in the frequency threshold adjustment module can be controlled by the voltage control signal VCTRL, thereby setting different delay edge delay amounts, that is, setting different frequency thresholds.
  • VCTRL can control access to MP0, MP1, MP2 or MP3 separately, and can also control MP0, MP1, MP2 and MP3 combined access.
  • the W/L of MP0, MP1, MP2, and MP3 are 1, 2, 3, and 4, respectively. If the voltage control signal VCTRL controls the parallel combination of MP0 and MP1, the PMOS of the PMOS in the access circuit is combined. /L is 3; if the voltage control signal VCTRL controls MP0 to MP4 in parallel combination access, the W/L of the PMOS in the combined access circuit is 10.
  • each delay unit can be used to determine the relationship between the half period of the input clock signal and the delay amount.
  • the output signal is output. It is a fixed high level signal; when the input clock signal half period is greater than the delay amount, the output signal is a wide pulse signal after the falling edge delay.
  • the delay amount set by each delay unit can also be converted into a frequency threshold for comparison.
  • the output signal is a pulse signal after the falling edge delay; when the frequency of the input clock signal is input
  • the frequency threshold is greater than or equal to, the output signal is a fixed high level signal.
  • the low level signal output by the second delay unit 6 is used to indicate that the input clock signal is lost, and the high level signal output by the second delay unit 6 is used to indicate that the input clock signal is not lost.
  • control of the frequency threshold is controlled by the control signal, and the frequency threshold is programmable, so that the clock signal loss detecting apparatus of the embodiment of the present invention can be applied to different applications, and the applicability is strong.
  • each delay unit is further configured to output a fixed level signal to the input signal of the self, and the fixed level signal output by the second delay unit 6 Used to indicate that the clock signal is lost.
  • the clock signal loss detecting apparatus can detect the clock signal regardless of the input signal when the detected clock signal is lost, and can also detect any fixed level, and has high practicability.
  • FIG. 5 is a second schematic structural diagram of a device for detecting clock loss of the present invention.
  • the device for detecting loss of a clock signal may further include: a third NOT gate 7, and an output terminal of the second delay unit 6 is connected. The input of the third NOT gate 7.
  • FIG. 7, FIG. 8 and FIG. 9 are timing diagrams of respective nodes of the apparatus for detecting clock loss in the embodiment of the present invention in FIG. 5.
  • CLK_IN represents an input signal
  • A represents an input signal.
  • B represents the signal after the A node signal passes the first NOT gate 2
  • C represents the Q terminal output signal of the D flip-flop 3
  • D represents the input signal after passing through the second NOT gate 4.
  • E denotes the C node signal and D node signal as the output signal of the AND gate 5 when the two inputs of the AND gate 5
  • F denotes the output signal of the E node signal after passing through the second delay unit 6
  • LOS_OUT denotes the F node signal
  • the clock lost signal after the third NOT gate 7 is output.
  • FIG. 6 is a timing diagram of the input signal at a fixed level 0 according to an embodiment of the present invention.
  • the principle according to the embodiment of the present invention shown in FIG. 6 is as follows:
  • the input signal CLK_IN is a fixed low level signal
  • the low level signal is fixed as the input signal of the first delay unit 1
  • the output signal is consistent with the input signal, and the first delay
  • the output of unit 1 is still a fixed low level signal (A); the A node signal passes through the first NOT gate 2 and is output as a fixed high level signal (B), and the Node B signal acts as a D touch.
  • the reset signal of the transmitter 3 causes the D flip-flop 3 to output a fixed low level signal (C), and the clock signal CLK_IN passes through the second NOT gate 4 to output a fixed high level signal (D); the C node signal and the D node signal are used as When the two input signals of the gate 5 are, the AND gate 5 outputs a fixed low level signal (E); when the low level signal is fixed as the input signal of the second delay unit 6, the output is a fixed low level signal (F), Finally, the F-node signal passes through the NOT gate 7 and outputs a fixed high-level signal; the output signal of the NOT gate 7 is used as a clock loss signal, and when the clock loss signal is a high-level signal, it indicates that the input clock signal is lost.
  • FIG. 7 is a timing diagram of the input signal at a fixed level 1 according to an embodiment of the present invention.
  • the principle according to the embodiment of the present invention shown in FIG. 7 is as follows:
  • the input signal CLK_IN is a fixed high level signal
  • the high level signal is fixed as the input signal of the first delay unit 1
  • the output signal is consistent with the input signal, and the first delay
  • the output of unit 1 is still a fixed high level signal (A);
  • the A node signal is output as a fixed low level signal (B) after passing through the first NOT gate 2, and the B node signal is used as the reset signal of the D flip-flop 3
  • the output Q of the D flip-flop 3 is consistent with the fixed high level of the D terminal input, that is, the output is a fixed high level signal (C), and the clock signal CLK_IN passes through the second NOT gate 4 and outputs a fixed low level signal (D).
  • the AND gate 5 When the C node signal and the D node signal are used as the two input signals of the AND gate 5, the AND gate 5 outputs a fixed low level signal (E); when the low level signal is fixed as the input signal of the second delay unit 6, The output of the second delay unit is still a fixed low level signal (F). Finally, the F node signal passes through the non-gate 7 and outputs a high level signal; the output signal of the NOT gate 7 is used as a clock loss signal, and when the clock loss signal is high. When the signal is flat, it indicates that the input clock signal is lost.
  • FIG. 8 is a timing diagram of an input signal frequency lower than a threshold frequency according to an embodiment of the present invention.
  • the principle according to the embodiment of the present invention shown in FIG. 8 is as follows:
  • the output of the first delay unit 1 is The wide pulse signal (A) after the falling edge of the clock signal is delayed.
  • the A node signal passes through the first NOT gate 2 and outputs a narrow pulse signal (B), and the Node B signal acts as D
  • the output of the D flip-flop 3 is a fixed low-level signal (C); it can be understood that the output of the first delay unit 1 is output due to the delay of the first delay unit 1.
  • the rising edge and the falling edge of the wide pulse signal have a delay phenomenon compared with the input signal of the own, so when the B node signal is used as the reset signal of the D flip-flop 3, when the rising edge of the clock signal input to the clock terminal of the D flip-flop 3 comes At the time, the reset terminal signal of the D flip-flop 3 is still 1, so that the D flip-flop outputs a low level signal.
  • the clock signal CLK_IN passes through the non-gate 4 and outputs the same frequency as the clock signal CLK_IN, the logic wave 0 and the logic 1 are completely opposite to the square wave signal (D), the C node signal and the D node signal serve as the two input signals of the AND gate 5, the AND gate 5 output fixed low level signal (E), after the second delay unit 6, the output is a fixed low level signal (F), and finally the F node signal passes through the non-gate 7 and outputs a high level signal; when the clock loss signal is A high level signal indicates that the input clock signal is lost.
  • FIG. 9 is a timing diagram of an input signal frequency higher than a threshold frequency according to an embodiment of the present invention.
  • the principle according to the embodiment of the present invention shown in FIG. 9 is as follows:
  • the first delay unit When the input signal is a clock signal, and the frequency of the clock signal is greater than or equal to the threshold frequency, that is, the half period of the clock signal is less than or equal to the delay amount of the falling edge delay unit, when the falling edge of the input clock signal arrives, the first delay unit
  • the output of 1 is a fixed high level signal (A); the A node signal outputs a fixed low level signal (B) after passing through the first NOT gate 2, and the D node 3 is used as a reset signal of the D flip-flop 3
  • the fixed high level signal (C) is output.
  • the clock signal CLK_IN passes through the non-gate 4 and outputs the same frequency as the clock signal CLK_IN.
  • the logic 0 and the logic 1 are completely opposite to the square wave signal (D), and the C node signal and the D node signal are used as The two input signals of the gate 5, the gate 5 outputs a square wave signal (E) identical to the D node signal, and the square wave signal outputs a fixed high level signal (F) after the second delay unit, and finally F
  • the node signal passes through the third NOT gate 7 and outputs a fixed low level signal; when the clock loss signal is a low level signal, it indicates that the input clock signal is not lost.
  • the apparatus for detecting clock loss may further include: a logic control circuit 8; and the logic control circuit 8 is connected to the second delay unit 6. The output or the output 7 of the third NOT gate.
  • a logic control circuit configured to wait for n preset delay amounts after starting to receive the output signal of the second delay unit 6 or the third NOT gate 7, and then to receive the current received second
  • the signal output of the delay unit or the third NOT gate n is an integer greater than 0, and the preset delay amount is a falling edge delay time of each delay unit.
  • the detection result is output after starting to detect the loss of the clock signal by three delay amounts. Since the detection of the clock signal is lost, at most two delay amounts are needed, in order to prevent the clock signal from being collected before and after the clock signal. Error, so choose to output the detection result after 3 delay clocks, thus ensuring the accuracy of the test results.
  • the detection result is output after 3 delays, that is, 1.2us, when the detection of the clock signal is lost.
  • the logic control circuit may be composed of an AND gate 81, and the output end of the third NOT gate 7 is connected to the first input of the AND gate 81.
  • the voltage control signal VCTRL1 is connected to the second input terminal of the AND gate 81, and the AND gate 81 outputs the final detection result, that is, the clock signal loss detection result is output after starting the detection of the clock signal loss for n delay amounts.
  • the second input of the AND gate 81 may also be a current control signal.
  • the clock signal loss detecting apparatus of the embodiment of the present invention when the detected clock signal is lost, the clock signal loss state can be detected by requiring at most two delay amounts, and the detection speed is fast.
  • the device for detecting the loss of the clock signal may further include: a frequency divider 9; the clock signal is respectively connected to the input end of the first delay unit 1, the clock end of the D flip-flop 3, and the input of the second NOT gate 4 through the frequency divider end.
  • the frequency divider 9 is a two-divider.
  • the input clock signal is implemented based on a duty ratio of 50%, if the input is The duty ratio of the incoming clock signal is not 50%.
  • the delay of the falling edge will be deviated, and the inaccurate detection of the lost clock signal occurs.
  • the input clock signal has a frequency of 1 MHz and a duty ratio of 70%.
  • the clock signal has a period of 1 us and a pulse width of 0.7 us.
  • the delay value of the falling edge of each delay unit is 0.4us, that is, the frequency threshold is 1.25MHz; at this time, the half period of the clock signal is greater than the falling edge delay amount, that is, the frequency of the clock signal is less than the frequency threshold, due to the input clock
  • the duty ratio of the signal is not 50%, so the first delay unit 1 delays the falling edge of the input clock signal by 0.4us and outputs a fixed high level signal, and cannot output a wide pulse signal, resulting in the output of the second delay unit 6. A high level signal indicating that the clock signal has not been lost.
  • the clock signal is respectively connected to the input end of the first delay unit 1, the clock end of the D flip-flop 3, and the input end of the second NOT gate 4 through the frequency divider. .
  • the divided signal duty cycle is 50%, which is consistent with the duty cycle requirements of the input clock signal in accordance with an embodiment of the present invention.
  • the circuit structure when the clock signal loss detection is performed, the circuit structure is simple, the hardware overhead is small, and only a simple delay device and a logic gate can be realized, and a complicated reference clock circuit is not required; the detection speed is fast, In any environment, only two delay amounts are needed to detect whether the input clock signal is lost.
  • the application range of the clock loss detecting device is expanded.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the present invention is directed to a method, apparatus (system), and computer program in accordance with an embodiment of the present invention
  • the flow chart and/or block diagram of the product is described. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
  • These computer program instructions can be provided to a processor of a general purpose computer, a special purpose computer, an embedded processor, or other programmable clock loss detection device to produce a machine that is executed by a processor of a computer or other programmable clock signal loss detection device
  • the instructions produce means for implementing the functions specified in one or more flows of the flowchart or in a block or blocks of the flowchart.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable clock loss detection device to operate in a particular manner, such that instructions stored in the computer readable memory produce an article of manufacture including the instruction device.
  • the instruction means implements the functions specified in one or more blocks of the flow or in a flow or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable clock loss detection device to perform a series of operational steps on a computer or other programmable device to produce computer-implemented processing on a computer or other programmable device.
  • the instructions that are executed provide steps for implementing the functions specified in one or more blocks of the flowchart or in a block or blocks of the flowchart.
  • the clock signal is respectively input through the input end of the first delay unit, the clock end of the D flip-flop, and the input end of the second non-gate, and the output end of the first delay unit is connected in series
  • the first non-gate is connected to the reset end of the D flip-flop
  • the D end of the D flip-flop is connected to a power source
  • the output end of the second NOT gate is connected to the first input end of the AND gate
  • the Q end of the D flip-flop is connected to the second input end of the AND gate
  • the output end of the AND gate is connected to the input end of the second delay unit; after the falling edge of the output of the second delay unit is delayed
  • Pulse signal is used to indicate the location

Abstract

Disclosed is a clock signal loss detection device, comprising: a first delay unit, a second delay unit, a D flip-flop, a first NOT gate, a second NOT gate, and an AND gate. An input end of the first delay unit, a clock end of the D flip-flop, and an input end of the second NOT gate separately access a clock signal; an output end of the first delay unit is connected to the first NOT gate in series and then connected to a reset end of the D flip-flop; a D end of the D flip-flop is connected to a power supply; an output end of the second NOT gate is connected to a first input end of the AND gate; a Q end of the D flip-flop is connected to a second input end of the AND gate; an output end of the AND gate is connected to an input end of the second delay unit; a pulse signal with a delayed falling edge outputted by the second delay unit is used for indicating that the clock signal is lost; a high-level signal outputted by the second delay unit is used for indicating that the clock signal is not lost.

Description

一种时钟信号丢失检测的装置Device for detecting clock signal loss 技术领域Technical field
本发明涉及信号检测技术领域,尤其涉及一种时钟信号丢失检测的装置。The present invention relates to the field of signal detection technologies, and in particular, to a device for detecting clock loss.
背景技术Background technique
传统的时钟丢失检测装置是对输入时钟信号和参考时钟信号的周期个数进行同时计数,通过比较固定时间段内输入时钟信号和参考时钟信号的周期个数,判定输入时钟信号是否丢失。图1为现有技术中时钟丢失检测原理图,如图1所示,同时对输入时钟信号和参考时钟信号的周期进行计数,当参考时钟信号的计数值达到设定的计数阈值M后,判断此时输入时钟信号的计数值N与参考时钟信号计数值M的大小关系,当M大于N时,判断输入时钟信号丢失,当M小于等于N时,判断输入时钟信号未丢失。The conventional clock loss detecting device simultaneously counts the number of cycles of the input clock signal and the reference clock signal, and determines whether the input clock signal is lost by comparing the number of cycles of the input clock signal and the reference clock signal in a fixed period of time. 1 is a schematic diagram of clock loss detection in the prior art. As shown in FIG. 1, the period of the input clock signal and the reference clock signal are simultaneously counted. When the count value of the reference clock signal reaches the set count threshold M, it is determined. At this time, the magnitude relationship between the count value N of the input clock signal and the count value M of the reference clock signal is determined. When M is greater than N, it is judged that the input clock signal is lost, and when M is less than or equal to N, it is judged that the input clock signal is not lost.
传统的时钟丢失检测装置,优点是实现原理简单直观,可以通过数字电路直接实现,缺点是需要额外的参考信号,增加了额外的电路设计工作。此外,传统时钟信号丢失检测方法的检测精度与参考时钟信号的计数值M有关,M值越大,检测结果越精确,但也会降低检测速度,无法实现快速且高精度的检测输入时钟信号丢失情况。The traditional clock loss detection device has the advantage that the implementation principle is simple and intuitive, and can be directly realized by digital circuits. The disadvantage is that additional reference signals are needed, and additional circuit design work is added. In addition, the detection accuracy of the conventional clock signal loss detection method is related to the count value M of the reference clock signal. The larger the M value is, the more accurate the detection result is, but the detection speed is also lowered, and the detection of the input clock signal loss cannot be realized quickly and accurately. Happening.
目前,为了提高时钟信号丢失检测速度,在传统的时钟丢失检测装置的基础上衍生出了一种快速时钟丢失检测装置,该装置的基本工作原理是:在待检测的时钟信号一个周期内,判断参考时钟信号的周期个数P是否满足设定的计数阈值Q。其中,Q根据待检测的时钟信号的频率计算得出,例如需要检测频率为1MHz的时钟信号是否丢失,输入的参考时钟信号频率为10MHz,那么此时的计数阈值设置为Q=10。因此,在时钟信号一个周期内, 如果参考时钟信号的周期个数P大于计数阈值Q,说明待检测的时钟信号的周期大于10倍的参考时钟周期0.1us,即待检测的时钟信号的频率小于1M,此时判定时钟信号丢失;相反,如果参考时钟信号的周期个数P小于等于计数阈值Q,判断时钟信号为未丢失。At present, in order to improve the detection speed of clock signal loss, a fast clock loss detecting device is derived on the basis of the traditional clock loss detecting device. The basic working principle of the device is: judging within one cycle of the clock signal to be detected Whether the number of periods P of the reference clock signal satisfies the set count threshold Q. The Q is calculated according to the frequency of the clock signal to be detected. For example, if it is required to detect whether the clock signal with a frequency of 1 MHz is lost, and the frequency of the input reference clock signal is 10 MHz, then the counting threshold at this time is set to Q=10. Therefore, within one cycle of the clock signal, If the number of periods P of the reference clock signal is greater than the count threshold Q, the period of the clock signal to be detected is greater than 10 times the reference clock period of 0.1 us, that is, the frequency of the clock signal to be detected is less than 1 M, and the clock signal is determined to be lost; On the contrary, if the number of periods P of the reference clock signal is less than or equal to the count threshold Q, it is judged that the clock signal is not lost.
对比传统的和改进的时钟信号丢失检测装置,可以看出,改进的时钟信号丢失检测装置只需要在一个输入时钟信号周期内既可检测出时钟信号是否丢失,大大提高了检测速度。但是同样存在一个缺点:该改进的装置无法检测固定电平的输入信号,且在进行时钟检测时同样需要一路固定参考时钟信号,增加了额外的电路设计工作。Compared with the conventional and improved clock loss detection apparatus, it can be seen that the improved clock loss detection apparatus only needs to detect whether the clock signal is lost during one input clock signal period, and greatly improves the detection speed. However, there is also a disadvantage that the improved device cannot detect a fixed level of input signal and also requires a fixed reference clock signal for clock detection, adding additional circuit design work.
发明内容Summary of the invention
为解决上述技术问题,本发明实施例期望提供一种时钟信号丢失检测的装置和方法,在时钟信号丢失检测时,提高检测速度,简化硬件电路设计,同时也可以检测固定电平,扩大了时钟丢失检测装置的应用范围。In order to solve the above technical problem, the embodiment of the present invention is intended to provide a device and method for detecting clock loss, which can improve the detection speed and simplify the hardware circuit design when the clock signal is lost, and can also detect the fixed level and expand the clock. Loss of application range of the detection device.
本发明实施例提供了一种时钟信号丢失检测的装置,包括:第一延时单元,第二延时单元,D触发器,第一非门,第二非门,与门;其中,An embodiment of the present invention provides a clock signal loss detection apparatus, including: a first delay unit, a second delay unit, a D flip-flop, a first NOT gate, a second NOT gate, and an AND gate; wherein
所述第一延时单元的输入端、D触发器的时钟端、以及第二非门的输入端分别接入时钟信号,所述第一延时单元的输出端在串接所述第一非门后连接所述D触发器的复位端,所述D触发器的D端连接电源,所述第二非门的输出端连接所述与门的第一输入端,所述D触发器的Q端连接所述与门的第二输入端,所述与门的输出端连接所述第二延时单元的输入端;The input end of the first delay unit, the clock end of the D flip-flop, and the input end of the second non-gate respectively access a clock signal, and the output end of the first delay unit is connected in series with the first non- a reset end of the D flip-flop is connected to the gate, a D terminal of the D flip-flop is connected to a power source, and an output end of the second NOT gate is connected to a first input end of the AND gate, and the D of the D flip-flop The end is connected to the second input end of the AND gate, and the output end of the AND gate is connected to the input end of the second delay unit;
所述D触发器,配置为在自身的复位端接入高电平信号时,在自身的Q端输出低电平信号;The D flip-flop is configured to output a low level signal at its Q terminal when a high level signal is connected to its reset terminal;
每个延时单元,配置为在自身的输入信号为脉冲信号,且自身的输入信号的频率小于频率阈值时,输出下降沿延时后的脉冲信号;在自身的输入信号为脉冲信号,且自身的输入信号的频率大于等于频率阈值时,输出 高电平信号;其中,所述第二延时单元输出的下降沿延时后的脉冲信号用于指示所述时钟信号丢失,所述第二延时单元输出的高电平信号用于指示所述时钟信号未丢失。Each delay unit is configured to output a pulse signal after a falling edge delay when its own input signal is a pulse signal and the frequency of its own input signal is less than a frequency threshold; the input signal is a pulse signal, and itself Output when the frequency of the input signal is greater than or equal to the frequency threshold a high level signal; wherein the pulse signal after the falling edge delay of the output of the second delay unit is used to indicate that the clock signal is lost, and the high level signal output by the second delay unit is used to indicate The clock signal is not lost.
上述方案中,每个延时单元,还配置为在自身的输入信号为固定电平信号,输出所述固定电平信号;其中,所述第二延时单元输出的固定电平信号用于指示所述时钟信号丢失。In the above solution, each delay unit is further configured to output a fixed level signal on the input signal of the self, and the fixed level signal output by the second delay unit is used to indicate The clock signal is lost.
上述方案中,所述第一延时单元与所述第二延时单元是具有相同的内部结构。In the above solution, the first delay unit and the second delay unit have the same internal structure.
上述方案中,每个延时单元还设置有控制端,每个延时单元配置为在控制端接入控制信号时,基于所述控制信号确定频率阈值。In the above solution, each delay unit is further provided with a control end, and each delay unit is configured to determine a frequency threshold based on the control signal when the control terminal accesses the control signal.
上述方案中,每个延时单元的控制信号通过控制每个延时单元内部的至少一个受控器件的接入状态确定所述频率阈值,每个受控器件的接入状态用于指示对应受控器件是否接入。In the above solution, the control signal of each delay unit determines the frequency threshold by controlling an access state of at least one controlled device inside each delay unit, and the access status of each controlled device is used to indicate corresponding receiving Control whether the device is connected.
上述方案中,所述受控器件为正信道金属氧化物半导体PMOS;所述每个延时单元内部的受控器件的个数大于2时,所述每个延时单元内部的各个受控器件的宽长比不同。In the above solution, the controlled device is a positive channel metal oxide semiconductor PMOS; when the number of controlled devices inside each delay unit is greater than 2, each controlled device inside each delay unit The width to length ratio is different.
上述方案中,每个延时单元接入的控制信号为电压信号或电流信号。In the above solution, the control signal accessed by each delay unit is a voltage signal or a current signal.
上述方案中,所述装置还包括:第三非门;In the above solution, the device further includes: a third non-gate;
所述第二延时单元的输出端连接所述第三非门的输入端。The output end of the second delay unit is connected to the input end of the third NOT gate.
上述方案中,所述装置还包括:逻辑控制电路;所述逻辑控制电路连接所述第二延时单元的输出端或所述第三非门的输出端,In the above solution, the device further includes: a logic control circuit; the logic control circuit is connected to an output end of the second delay unit or an output end of the third NOT gate,
所述逻辑控制电路,配置为在开始接收到所述第二延时单元或所述第三非门的输出信号时,等待n个预设的延时量后,再将当前接收的来自所述第二延时单元或所述第三非门的信号输出,n为大于0的整数,所述预设的延时量为每个延时单元的下降沿延时时间。 The logic control circuit is configured to wait for n preset delay amounts after starting to receive the output signal of the second delay unit or the third NOT gate, and then receive the current received from the The signal output of the second delay unit or the third NOT gate, n is an integer greater than 0, and the preset delay amount is a falling edge delay time of each delay unit.
上述方案中,所述装置还包括:分频器;所述时钟信号通过所述分频器分别接入所述第一延时单元的输入端、D触发器的时钟端、以及第二非门的输入端。In the above solution, the device further includes: a frequency divider; the clock signal is respectively connected to the input end of the first delay unit, the clock end of the D flip-flop, and the second non-gate through the frequency divider Input.
本发明实施例提供的一种时钟信号丢失检测的装置,包括:第一延时单元,第二延时单元,D触发器,第一非门,第二非门,与门;其中,所述第一延时单元的输入端、D触发器的时钟端、以及第二非门的输入端分别接入时钟信号,所述第一延时单元的输出端在串接所述第一非门后连接所述D触发器的复位端,所述D触发器的D端连接电源,所述第二非门的输出端连接所述与门的第一输入端,所述D触发器的Q端连接所述与门的第二输入端,所述与门的输出端连接所述第二延时单元的输入端;所述第二延时单元输出的下降沿延时后的脉冲信号用于指示所述时钟信号丢失,所述第二延时单元输出的高电平信号用于指示所述时钟信号未丢失。与现有技术相比,具有电路结构简单,硬件开销小,检测速度快,可以检测固定电平,扩大了时钟丢失检测装置的应用范围。An apparatus for detecting loss of a clock signal according to an embodiment of the present invention includes: a first delay unit, a second delay unit, a D flip-flop, a first NOT gate, a second NOT gate, and an AND gate; wherein The input end of the first delay unit, the clock end of the D flip-flop, and the input end of the second non-gate respectively access a clock signal, and the output end of the first delay unit is connected in series with the first NOT gate Connecting the reset end of the D flip-flop, the D end of the D flip-flop is connected to the power source, the output end of the second NOT gate is connected to the first input end of the AND gate, and the Q end of the D flip-flop is connected a second input end of the AND gate, an output end of the AND gate is connected to an input end of the second delay unit; and a pulse signal after a falling edge delay output by the second delay unit is used to indicate The clock signal is lost, and the high level signal output by the second delay unit is used to indicate that the clock signal is not lost. Compared with the prior art, the circuit structure is simple, the hardware overhead is small, the detection speed is fast, the fixed level can be detected, and the application range of the clock loss detecting device is expanded.
附图说明DRAWINGS
图1为现有技术中时钟丢失检测原理图;1 is a schematic diagram of clock loss detection in the prior art;
图2为本发明实施例时钟信号丢失检测的装置的第一组成结构示意图;2 is a schematic diagram of a first component structure of an apparatus for clock signal loss detection according to an embodiment of the present invention;
图3为本发明实施例中改进型TSPC结构D触发器组成结构示意图;3 is a schematic structural diagram of a D-flip-flop of a modified TSPC structure according to an embodiment of the present invention;
图4为本发明实施例中可编程下降沿延时单元的组成结构示意图;4 is a schematic structural diagram of a programmable falling edge delay unit according to an embodiment of the present invention;
图5为本发明实施例时钟信号丢失检测的装置的第二组成结构示意图;FIG. 5 is a schematic structural diagram of a second component of an apparatus for detecting clock loss in an embodiment of the present invention; FIG.
图6为本发明实施例中输入信号为固定电平0时的时序图;6 is a timing diagram of an input signal at a fixed level 0 in an embodiment of the present invention;
图7为本发明实施例中输入信号为固定电平1时的时序图;7 is a timing diagram of an input signal at a fixed level 1 according to an embodiment of the present invention;
图8为本发明实施例中输入信号频率低于阈值频率时的时序图;8 is a timing diagram of an input signal frequency below a threshold frequency in an embodiment of the present invention;
图9为本发明实施例中输入信号频率高于阈值频率时的时序图;FIG. 9 is a timing diagram of an input signal frequency higher than a threshold frequency according to an embodiment of the present invention; FIG.
图10本发明实施例时钟信号丢失检测的装置的第三组成结构示意图; 10 is a schematic diagram showing a third component structure of an apparatus for detecting clock loss in an embodiment of the present invention;
图11为本发明实施例中逻辑控制电路的组成结构示意图。FIG. 11 is a schematic structural diagram of a logic control circuit according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings.
图2为本发明时钟信号丢失检测的装置的第一组成结构示意图,如图2所示,该装置包括:第一延时单元1,第一非门2、D触发器3、第二非门4、与门5、和第二延时单元6;其中,2 is a first schematic structural diagram of a device for detecting clock loss of the present invention. As shown in FIG. 2, the device includes: a first delay unit 1, a first NOT gate 2, a D flip-flop 3, and a second NOT gate. 4. an AND gate 5 and a second delay unit 6; wherein
所述第一延时单元1的输入端、D触发器3的时钟端、以及第二非门4的输入端分别接入时钟信号CLK_IN,所述第一延时单元1的输出端在串接所述第一非门2后连接所述D触发器3的复位端,所述D触发器3的D端连接电源,所述第二非门4的输出端连接所述与门5的第一输入端,所述D触发器3的Q端连接所述与门5的第二输入端,所述与门5的输出端连接所述第二延时单元6的输入端;The input end of the first delay unit 1, the clock end of the D flip-flop 3, and the input end of the second NOT gate 4 respectively access the clock signal CLK_IN, and the output end of the first delay unit 1 is connected in series The first non-gate 2 is connected to the reset end of the D flip-flop 3, the D end of the D flip-flop 3 is connected to a power source, and the output end of the second NOT gate 4 is connected to the first end of the AND gate 5. The input end, the Q end of the D flip-flop 3 is connected to the second input end of the AND gate 5, and the output end of the AND gate 5 is connected to the input end of the second delay unit 6;
所述D触发器3,配置为在自身的复位端接入高电平信号时,在自身的Q端输出低电平信号;The D flip-flop 3 is configured to output a low level signal at its Q terminal when a high level signal is connected to its reset terminal;
每个延时单元,配置为在自身的输入信号为脉冲信号,且自身的输入信号的频率小于频率阈值时,输出下降沿延时后的脉冲信号;在自身的输入信号为脉冲信号,且自身的输入信号的频率大于等于频率阈值时,输出高电平信号;其中,所述第二延时单元6输出的下降沿延时后的脉冲信号用于指示所述时钟信号丢失,所述第二延时单元6输出的高电平信号用于指示所述时钟信号未丢失。Each delay unit is configured to output a pulse signal after a falling edge delay when its own input signal is a pulse signal and the frequency of its own input signal is less than a frequency threshold; the input signal is a pulse signal, and itself a high level signal is output when the frequency of the input signal is greater than or equal to the frequency threshold; wherein the pulse signal after the falling edge delay output by the second delay unit 6 is used to indicate that the clock signal is lost, the second The high level signal output by the delay unit 6 is used to indicate that the clock signal is not lost.
本发明实施例中,D触发器3可以是带reset具有异步复位功能的D触发器。示例性的,可以使用一种改进型TSPC结构的D触发器来实现异步复位功能,这种D触发器具有逻辑简单,硬件开销小等特点。In the embodiment of the present invention, the D flip-flop 3 may be a D flip-flop with reset having an asynchronous reset function. Exemplarily, an asynchronous reset function can be implemented by using a D-flip-flop of an improved TSPC structure, which has the characteristics of logic simplicity, low hardware overhead, and the like.
图3为本发明实施例中改进型TSPC结构D触发器组成结构示意图,如图 3所示,改进型TSPC结构D触发器包括:由四个正信道金属氧化物半导体(PMOS,Positive channel Metal Oxide Semiconductor)管(MP5、MP6、MP7、MP8)和四个负信道金属氧化物半导体(NMOS,Negative channel Metal Oxide Semiconductor)管(MN5、MN6、MN7、MN8)组成的三级反相器,一个电源输入端、一个时钟输入端、一个复位信号输入端和一个输出端。当CLK上升沿到来且复位信号输入端的输入信号Reset为低电平信号时,X节点为高电平,QN节点也为高电平,输出Q为高电平;当复位信号输入端的输入信号Reset为高电平信号时,X节点的信号为低电平信号,QN节点的信号为高电平信号,Q节点输出低电平信号。3 is a schematic structural diagram of a D-flip-flop of an improved TSPC structure according to an embodiment of the present invention, as shown in FIG. As shown in FIG. 3, the improved TSPC structure D flip-flop includes: four positive channel metal oxide semiconductor (PMOS) cells (MP5, MP6, MP7, MP8) and four negative channel metal oxide semiconductors. (NMOS, Negative channel Metal Oxide Semiconductor) A three-stage inverter consisting of a MN5, MN6, MN7, and MN8, a power input terminal, a clock input terminal, a reset signal input terminal, and an output terminal. When the rising edge of CLK arrives and the input signal Reset of the reset signal input terminal is a low level signal, the X node is high level, the QN node is also high level, the output Q is high level; when the input signal of the reset signal input end is Reset When it is a high level signal, the signal of the X node is a low level signal, the signal of the QN node is a high level signal, and the Q node outputs a low level signal.
本发明实施例装置中,所述第一延时单元1与所述第二延时单元6是具有相同的内部结构。每个延时单元还设置有控制端,每个延时单元配置为在控制端接入控制信号时,基于所述控制信号确定频率阈值,每个延时单元接入的控制信号为电压信号或电流信号。In the apparatus of the embodiment of the present invention, the first delay unit 1 and the second delay unit 6 have the same internal structure. Each delay unit is further provided with a control end, each delay unit is configured to determine a frequency threshold based on the control signal when the control terminal accesses the control signal, and the control signal accessed by each delay unit is a voltage signal or Current signal.
每个延时单元的控制信号通过控制每个延时单元内部的至少一个受控器件的接入状态确定所述频率阈值,每个受控器件的接入状态用于指示对应受控器件是否接入。The control signal of each delay unit determines the frequency threshold by controlling an access state of at least one controlled device inside each delay unit, and the access status of each controlled device is used to indicate whether the corresponding controlled device is connected In.
这里,受控器件可以为正信道金属氧化物半导体PMOS;每个延时单元内部的受控器件的个数大于2时,每个延时单元内部的各个受控器件的宽长比不同。Here, the controlled device may be a positive channel metal oxide semiconductor PMOS; when the number of controlled devices inside each delay unit is greater than 2, the width and length ratio of each controlled device inside each delay unit is different.
本发明实施例中,第一延时单元与第二延时单元可以是可编程下降沿延时单元,图4为本发明实施例中可编程下降沿延时单元的组成结构示意图,如图4所示,下降沿延时单元可以包括:In the embodiment of the present invention, the first delay unit and the second delay unit may be programmable falling edge delay units, and FIG. 4 is a schematic structural diagram of a programmable falling edge delay unit according to an embodiment of the present invention, as shown in FIG. 4 . As shown, the falling edge delay unit can include:
由4个PMOS管MP0-MP3组成的频率阈值调整模块、1个NMOS管MN0、一个电容C0,一个PMOS(MP4)和一个NMOS(MN1)组成的反相器。A frequency threshold adjustment module composed of four PMOS transistors MP0-MP3, one NMOS transistor MN0, one capacitor C0, one PMOS (MP4) and one NMOS (MN1) inverter.
这里,由于POMS的宽长比(W/L,Width/length)远远小于NMOS的 W/L,因此,在PMOS导通时,电源VDD给电容C0的充电速度远远小于NMOS导通时给C0的放电速度。在时钟信号下降沿到来时,频率阈值调整模块中至少一个PMOS管(MP0、MP1、MP2、MP3)导通,在时钟信号上升沿到来时,NMOS管(MN0)导通,这样就可以实现对输入信号下降沿延时,上升沿基本保持不变。Here, since the aspect ratio (W/L, Width/length) of POMS is much smaller than that of NMOS W/L, therefore, when the PMOS is turned on, the power supply VDD charges the capacitor C0 much faster than the discharge speed of C0 when the NMOS is turned on. When the falling edge of the clock signal arrives, at least one PMOS transistor (MP0, MP1, MP2, MP3) in the frequency threshold adjustment module is turned on, and when the rising edge of the clock signal comes, the NMOS transistor (MN0) is turned on, so that the pair can be realized. The falling edge of the input signal is delayed and the rising edge remains essentially unchanged.
本发明实施例中,可以通过电压控制信号VCTRL控制频率阈值调整模块中每个PMOS管的接入,从而设置不同的下降沿延时量,即设置不同的频率阈值。这里,VCTRL可以控制单独接入MP0、MP1、MP2或MP3,也可以控制MP0、MP1、MP2和MP3组合接入。In the embodiment of the present invention, the access of each PMOS transistor in the frequency threshold adjustment module can be controlled by the voltage control signal VCTRL, thereby setting different delay edge delay amounts, that is, setting different frequency thresholds. Here, VCTRL can control access to MP0, MP1, MP2 or MP3 separately, and can also control MP0, MP1, MP2 and MP3 combined access.
示例性的,MP0、MP1、MP2和MP3的W/L分别为1、2、3和4,如果电压控制信号VCTRL控制MP0和MP1并联组合接入,则组合后接入电路中的PMOS的W/L为3;如果电压控制信号VCTRL控制MP0到MP4并联组合接入,则组合后接入电路中的PMOS的W/L为10。Exemplarily, the W/L of MP0, MP1, MP2, and MP3 are 1, 2, 3, and 4, respectively. If the voltage control signal VCTRL controls the parallel combination of MP0 and MP1, the PMOS of the PMOS in the access circuit is combined. /L is 3; if the voltage control signal VCTRL controls MP0 to MP4 in parallel combination access, the W/L of the PMOS in the combined access circuit is 10.
需要说明的是,通过给每个延时单元设置的延时量,可以用来判断输入时钟信号的半周期与延时量的关系,当输入时钟信号半周期小于等于延时量时,输出信号为固定高电平信号;当输入时钟信号半周期大于延时量时,输出信号为下降沿延时后的宽脉冲信号。It should be noted that the delay amount set by each delay unit can be used to determine the relationship between the half period of the input clock signal and the delay amount. When the input clock signal half period is less than or equal to the delay amount, the output signal is output. It is a fixed high level signal; when the input clock signal half period is greater than the delay amount, the output signal is a wide pulse signal after the falling edge delay.
这里,每个延时单元设置的延时量也可以转换成频率阈值进行比较,当输入时钟信号的频率小于频率阈值时,输出信号为下降沿延时后的脉冲信号;当输入时钟信号的频率大于等于频率阈值时,输出信号为固定高电平信号。其中,第二延时单元6输出的低电平信号用于指示输入时钟信号丢失,第二延时单元6输出的高电平信号用于指示输入时钟信号未丢失。Here, the delay amount set by each delay unit can also be converted into a frequency threshold for comparison. When the frequency of the input clock signal is less than the frequency threshold, the output signal is a pulse signal after the falling edge delay; when the frequency of the input clock signal is input When the frequency threshold is greater than or equal to, the output signal is a fixed high level signal. The low level signal output by the second delay unit 6 is used to indicate that the input clock signal is lost, and the high level signal output by the second delay unit 6 is used to indicate that the input clock signal is not lost.
这里,通过控制信号控制频率阈值调整,实现频率阈值可编程,使本发明实施例的时钟信号丢失检测装置可以适用与不同的应用场合,适用性强。 Here, the control of the frequency threshold is controlled by the control signal, and the frequency threshold is programmable, so that the clock signal loss detecting apparatus of the embodiment of the present invention can be applied to different applications, and the applicability is strong.
本发明实施例中,每个延时单元,还配置为在自身的输入信号为固定电平信号,输出所述固定电平信号;其中,所述第二延时单元6输出的固定电平信号用于指示所述时钟信号丢失。In the embodiment of the present invention, each delay unit is further configured to output a fixed level signal to the input signal of the self, and the fixed level signal output by the second delay unit 6 Used to indicate that the clock signal is lost.
本发明实施例的时钟信号丢失检测装置,在检测的时钟信号丢失状态时与输入信号无关,即可检测时钟信号,也可以检测任意固定电平,实用性强。The clock signal loss detecting apparatus according to the embodiment of the present invention can detect the clock signal regardless of the input signal when the detected clock signal is lost, and can also detect any fixed level, and has high practicability.
第二实施例Second embodiment
为了能更加体现本发明的目的,在本发明第一实施例的基础上,进行进一步的举例说明。In order to further embodies the object of the present invention, further exemplification will be made on the basis of the first embodiment of the present invention.
图5为本发明时钟信号丢失检测的装置的第二组成结构示意图,如图5所示,时钟信号丢失检测的装置还可以包括:第三非门7,第二延时单元6的输出端连接第三非门7的输入端。FIG. 5 is a second schematic structural diagram of a device for detecting clock loss of the present invention. As shown in FIG. 5, the device for detecting loss of a clock signal may further include: a third NOT gate 7, and an output terminal of the second delay unit 6 is connected. The input of the third NOT gate 7.
图6、图7、图8和图9为图5中本发明实施例时钟信号丢失检测的装置的各个节点的时序图,在图6到图9中,CLK_IN表示输入信号,A表示输入信号经过第一延时单元1后的输出信号,B表示A节点信号经过第一非门2后的信号,C表示D触发器3的Q端输出信号,D表示输入信号经过第二非门4后的信号,E表示C节点信号和D节点信号作为与门5的两个输入端时与门5的输出信号,F表示E节点信号经过第二延时单元6后的输出信号,LOS_OUT表示F节点信号经过第三非门7后输出的时钟丢失信号。6, FIG. 7, FIG. 8 and FIG. 9 are timing diagrams of respective nodes of the apparatus for detecting clock loss in the embodiment of the present invention in FIG. 5. In FIG. 6 to FIG. 9, CLK_IN represents an input signal, and A represents an input signal. The output signal after the first delay unit 1, B represents the signal after the A node signal passes the first NOT gate 2, C represents the Q terminal output signal of the D flip-flop 3, and D represents the input signal after passing through the second NOT gate 4. Signal, E denotes the C node signal and D node signal as the output signal of the AND gate 5 when the two inputs of the AND gate 5, F denotes the output signal of the E node signal after passing through the second delay unit 6, and LOS_OUT denotes the F node signal The clock lost signal after the third NOT gate 7 is output.
图6为本发明实施例中输入信号为固定电平0时的时序图,根据图6所示的本发明实施例原理如下:FIG. 6 is a timing diagram of the input signal at a fixed level 0 according to an embodiment of the present invention. The principle according to the embodiment of the present invention shown in FIG. 6 is as follows:
当输入信号CLK_IN为固定低电平信号时,固定低电平信号作为第一延时单元1的输入信号时,由于输入信号电平没有逻辑变化,因此输出信号与输入信号保持一致,第一延时单元1的输出仍为固定低电平信号(A);A节点信号经过第一非门2后输出为固定高电平信号(B),B节点信号作为D触 发器3的复位信号使D触发器3输出固定低电平信号(C),时钟信号CLK_IN经过第二非门4后输出固定高电平信号(D);C节点信号与D节点信号作为与门5的两个输入信号时,与门5输出固定低电平信号(E);固定低电平信号作为第二延时单元6的输入信号时,输出为固定低电平信号(F),最后F节点信号经过非门7后输出固定高电平信号;将非门7的输出信号作为时钟丢失信号,当时钟丢失信号为高电平信号时,表明输入的时钟信号丢失。When the input signal CLK_IN is a fixed low level signal, when the low level signal is fixed as the input signal of the first delay unit 1, since the input signal level has no logic change, the output signal is consistent with the input signal, and the first delay The output of unit 1 is still a fixed low level signal (A); the A node signal passes through the first NOT gate 2 and is output as a fixed high level signal (B), and the Node B signal acts as a D touch. The reset signal of the transmitter 3 causes the D flip-flop 3 to output a fixed low level signal (C), and the clock signal CLK_IN passes through the second NOT gate 4 to output a fixed high level signal (D); the C node signal and the D node signal are used as When the two input signals of the gate 5 are, the AND gate 5 outputs a fixed low level signal (E); when the low level signal is fixed as the input signal of the second delay unit 6, the output is a fixed low level signal (F), Finally, the F-node signal passes through the NOT gate 7 and outputs a fixed high-level signal; the output signal of the NOT gate 7 is used as a clock loss signal, and when the clock loss signal is a high-level signal, it indicates that the input clock signal is lost.
图7为本发明实施例中输入信号为固定电平1时的时序图,根据图7所示的本发明实施例原理如下:FIG. 7 is a timing diagram of the input signal at a fixed level 1 according to an embodiment of the present invention. The principle according to the embodiment of the present invention shown in FIG. 7 is as follows:
当输入信号CLK_IN为固定高电平信号时,固定高电平信号作为第一延时单元1的输入信号时,由于输入信号电平没有逻辑变化,因此输出信号与输入信号保持一致,第一延时单元1的输出仍为固定高电平信号(A);A节点信号经过第一非门2后输出为固定低电平信号(B),B节点信号作为D触发器3的复位信号时,D触发器3的输出Q与D端输入的固定高电平保持一致,即输出为固定高电平信号(C),时钟信号CLK_IN经过第二非门4后输出固定低电平信号(D);C节点信号与D节点信号作为与门5的两个输入信号时,与门5输出固定低电平信号(E);固定低电平信号作为第二延时单元6的输入信号时,第二延时单元输出仍为固定低电平信号(F),最后F节点信号经过非门7后输出高电平信号;将非门7的输出信号作为时钟丢失信号,当时钟丢失信号为高电平信号时,表明输入的时钟信号丢失。When the input signal CLK_IN is a fixed high level signal, when the high level signal is fixed as the input signal of the first delay unit 1, since the input signal level has no logic change, the output signal is consistent with the input signal, and the first delay The output of unit 1 is still a fixed high level signal (A); the A node signal is output as a fixed low level signal (B) after passing through the first NOT gate 2, and the B node signal is used as the reset signal of the D flip-flop 3 The output Q of the D flip-flop 3 is consistent with the fixed high level of the D terminal input, that is, the output is a fixed high level signal (C), and the clock signal CLK_IN passes through the second NOT gate 4 and outputs a fixed low level signal (D). When the C node signal and the D node signal are used as the two input signals of the AND gate 5, the AND gate 5 outputs a fixed low level signal (E); when the low level signal is fixed as the input signal of the second delay unit 6, The output of the second delay unit is still a fixed low level signal (F). Finally, the F node signal passes through the non-gate 7 and outputs a high level signal; the output signal of the NOT gate 7 is used as a clock loss signal, and when the clock loss signal is high. When the signal is flat, it indicates that the input clock signal is lost.
图8为本发明实施例中输入信号频率低于阈值频率时的时序图,根据图8所示的本发明实施例原理如下:FIG. 8 is a timing diagram of an input signal frequency lower than a threshold frequency according to an embodiment of the present invention. The principle according to the embodiment of the present invention shown in FIG. 8 is as follows:
当输入信号为时钟信号时,且时钟信号的频率小于阈值频率,即时钟信号的半周期大于延时单元的延时量,在输入时钟信号下降沿到来时,第一延时单元1的输出为时钟信号下降沿被延时后的宽脉冲信号(A)。When the input signal is a clock signal, and the frequency of the clock signal is less than the threshold frequency, that is, the half period of the clock signal is greater than the delay amount of the delay unit, when the falling edge of the input clock signal arrives, the output of the first delay unit 1 is The wide pulse signal (A) after the falling edge of the clock signal is delayed.
A节点信号经过第一非门2后输出窄脉冲信号(B),B节点信号作为D 触发器3的复位信号时,D触发器3的输出为固定低电平信号(C);可以理解的是,由于第一延时单元1的延时作用,使得第一延时单元1输出的宽脉冲信号的上升沿和下降沿相较自身的输入信号都存在延时现象,因此B节点信号作为D触发器3的复位信号时,当D触发器3的时钟端输入的时钟信号上升沿到来时,D触发器3的复位端信号仍为1,使得D触发器输出低电平信号。The A node signal passes through the first NOT gate 2 and outputs a narrow pulse signal (B), and the Node B signal acts as D When the reset signal of the flip-flop 3 is used, the output of the D flip-flop 3 is a fixed low-level signal (C); it can be understood that the output of the first delay unit 1 is output due to the delay of the first delay unit 1. The rising edge and the falling edge of the wide pulse signal have a delay phenomenon compared with the input signal of the own, so when the B node signal is used as the reset signal of the D flip-flop 3, when the rising edge of the clock signal input to the clock terminal of the D flip-flop 3 comes At the time, the reset terminal signal of the D flip-flop 3 is still 1, so that the D flip-flop outputs a low level signal.
时钟信号CLK_IN经过非门4后输出与时钟信号CLK_IN频率相同,逻辑0和逻辑1完全相反的方波信号(D),C节点信号与D节点信号作为与门5的两个输入信号,与门5输出固定低电平信号(E),经过第二延时单元6后输出为固定低电平信号(F),最后F节点信号经过非门7后输出高电平信号;当时钟丢失信号为高电平信号时,表明输入的时钟信号丢失。The clock signal CLK_IN passes through the non-gate 4 and outputs the same frequency as the clock signal CLK_IN, the logic wave 0 and the logic 1 are completely opposite to the square wave signal (D), the C node signal and the D node signal serve as the two input signals of the AND gate 5, the AND gate 5 output fixed low level signal (E), after the second delay unit 6, the output is a fixed low level signal (F), and finally the F node signal passes through the non-gate 7 and outputs a high level signal; when the clock loss signal is A high level signal indicates that the input clock signal is lost.
图9为本发明实施例中输入信号频率高于阈值频率时的时序图,根据图9所示的本发明实施例原理如下:FIG. 9 is a timing diagram of an input signal frequency higher than a threshold frequency according to an embodiment of the present invention. The principle according to the embodiment of the present invention shown in FIG. 9 is as follows:
当输入信号为时钟信号时,且时钟信号的频率大于等于阈值频率,即时钟信号的半周期小于等于下降沿延时单元的延时量,在输入时钟信号下降沿到来时,第一延时单元1的输出为固定高电平信号(A);A节点信号经过第一非门2后输出固定低电平信号(B),B节点信号作为D触发器3的复位信号时,D触发器3输出固定高电平信号(C),时钟信号CLK_IN经过非门4后输出与时钟信号CLK_IN频率相同,逻辑0和逻辑1完全相反的方波信号(D),C节点信号与D节点信号作为与门5的两个输入信号,与门5输出与D节点信号完全相同的方波信号(E),方波信号经第二延时单元后6后输出固定高电平信号(F),最后F节点信号经过第三非门7后输出固定低电平信号;当时钟丢失信号为低电平信号时,表明输入的时钟信号未丢失。When the input signal is a clock signal, and the frequency of the clock signal is greater than or equal to the threshold frequency, that is, the half period of the clock signal is less than or equal to the delay amount of the falling edge delay unit, when the falling edge of the input clock signal arrives, the first delay unit The output of 1 is a fixed high level signal (A); the A node signal outputs a fixed low level signal (B) after passing through the first NOT gate 2, and the D node 3 is used as a reset signal of the D flip-flop 3 The fixed high level signal (C) is output. The clock signal CLK_IN passes through the non-gate 4 and outputs the same frequency as the clock signal CLK_IN. The logic 0 and the logic 1 are completely opposite to the square wave signal (D), and the C node signal and the D node signal are used as The two input signals of the gate 5, the gate 5 outputs a square wave signal (E) identical to the D node signal, and the square wave signal outputs a fixed high level signal (F) after the second delay unit, and finally F The node signal passes through the third NOT gate 7 and outputs a fixed low level signal; when the clock loss signal is a low level signal, it indicates that the input clock signal is not lost.
第三实施例Third embodiment
为了能更加体现本发明的目的,在本发明上述实施例的基础上,进行进一步的举例说明。 In order to further embodies the object of the present invention, further exemplification will be made on the basis of the above-described embodiments of the present invention.
图10为本发明时钟信号丢失检测的装置的第三组成结构示意图,如图10所示,时钟信号丢失检测的装置还可以包括:逻辑控制电路8;逻辑控制电路8连接第二延时单元6的输出端或第三非门的输出端7。10 is a schematic diagram of a third component structure of the apparatus for detecting clock loss in the present invention. As shown in FIG. 10, the apparatus for detecting clock loss may further include: a logic control circuit 8; and the logic control circuit 8 is connected to the second delay unit 6. The output or the output 7 of the third NOT gate.
逻辑控制电路,配置为在开始接收到所述第二延时单元6或第三非门7的输出信号时,等待n个预设的延时量后,再将当前接收的来自所述第二延时单元或所述第三非门的信号输出,n为大于0的整数,所述预设的延时量为每个延时单元的下降沿延时时间。a logic control circuit configured to wait for n preset delay amounts after starting to receive the output signal of the second delay unit 6 or the third NOT gate 7, and then to receive the current received second The signal output of the delay unit or the third NOT gate, n is an integer greater than 0, and the preset delay amount is a falling edge delay time of each delay unit.
在本发明实施例一实施方式中,在开始检测时钟信号丢失时3个延时量后输出检测结果,由于在检测时钟信号是否丢失时最多需要2个延时量,为了防止时钟信号前后的采集误差,所以选择在3个延时时钟后输出检测结果,从而保证检测结果的准确性。示例性的,当每个延时单元的下降沿延时量为0.4us时,在开始检测时钟信号丢失时3个延时量后,即1.2us后,输出检测结果。In an embodiment of the present invention, the detection result is output after starting to detect the loss of the clock signal by three delay amounts. Since the detection of the clock signal is lost, at most two delay amounts are needed, in order to prevent the clock signal from being collected before and after the clock signal. Error, so choose to output the detection result after 3 delay clocks, thus ensuring the accuracy of the test results. Exemplarily, when the delay value of the falling edge of each delay unit is 0.4us, the detection result is output after 3 delays, that is, 1.2us, when the detection of the clock signal is lost.
图11为本发明实施例中逻辑控制电路的组成结构示意图,如图11所示,逻辑控制电路可以是由一个与门81构成,第三非门7的输出端连接与门81的第一输入端,电压控制信号VCTRL1连接与门81的第二输入端,与门81输出最终的检测结果,即在开始检测时钟信号丢失时n个延时量后输出时钟信号丢失检测结果。这里,与门81的第二输入端也可以是电流控制信号。11 is a schematic structural diagram of a logic control circuit according to an embodiment of the present invention. As shown in FIG. 11, the logic control circuit may be composed of an AND gate 81, and the output end of the third NOT gate 7 is connected to the first input of the AND gate 81. The voltage control signal VCTRL1 is connected to the second input terminal of the AND gate 81, and the AND gate 81 outputs the final detection result, that is, the clock signal loss detection result is output after starting the detection of the clock signal loss for n delay amounts. Here, the second input of the AND gate 81 may also be a current control signal.
本发明实施例的时钟信号丢失检测装置,在检测的时钟信号丢失状态时,最多需要2个延时量就可以检测出时钟信号丢失状态,具有很快的检测速度快。In the clock signal loss detecting apparatus of the embodiment of the present invention, when the detected clock signal is lost, the clock signal loss state can be detected by requiring at most two delay amounts, and the detection speed is fast.
时钟信号丢失检测的装置还可以包括:分频器9;时钟信号通过分频器分别接入第一延时单元1的输入端、D触发器3的时钟端、以及第二非门4的输入端。可选的,分频器9为二分频器。The device for detecting the loss of the clock signal may further include: a frequency divider 9; the clock signal is respectively connected to the input end of the first delay unit 1, the clock end of the D flip-flop 3, and the input of the second NOT gate 4 through the frequency divider end. Optionally, the frequency divider 9 is a two-divider.
本发明实施例中,输入时钟信号是基于占空比为50%来实现的,如果输 入时钟信号的占空比不是50%,那么在对输入时钟信号经过第一和第二延时单元处理时,下降沿延时量就会出现偏差,从而出现对丢失时钟信号检测不准确现象。In the embodiment of the present invention, the input clock signal is implemented based on a duty ratio of 50%, if the input is The duty ratio of the incoming clock signal is not 50%. When the input clock signal is processed by the first and second delay units, the delay of the falling edge will be deviated, and the inaccurate detection of the lost clock signal occurs.
示例性的,输入时钟信号的频率为1MHz,占空比为70%,此时时钟信号的周期为1us,脉冲宽度为0.7us。当每个延时单元的下降沿延时量为0.4us,即频率阈值为1.25MHz;此时,时钟信号的半周期大于下降沿延时量,即时钟信号的频率小于频率阈值,由于输入时钟信号的占空比不是50%,因此第一延时单元1对输入时钟信号的下降沿延时0.4us后输出为固定高电平信号,无法输出宽脉冲信号,导致第二延时单元6输出高电平信号,指示时钟信号未丢失。Exemplarily, the input clock signal has a frequency of 1 MHz and a duty ratio of 70%. At this time, the clock signal has a period of 1 us and a pulse width of 0.7 us. When the delay value of the falling edge of each delay unit is 0.4us, that is, the frequency threshold is 1.25MHz; at this time, the half period of the clock signal is greater than the falling edge delay amount, that is, the frequency of the clock signal is less than the frequency threshold, due to the input clock The duty ratio of the signal is not 50%, so the first delay unit 1 delays the falling edge of the input clock signal by 0.4us and outputs a fixed high level signal, and cannot output a wide pulse signal, resulting in the output of the second delay unit 6. A high level signal indicating that the clock signal has not been lost.
因此,为了保证输入时钟信号占空比为50%,时钟信号通过分频器分别接入第一延时单元1的输入端、D触发器3的时钟端、以及第二非门4的输入端。分频后的信号占空比为50%,符合本发明实施例对输入时钟信号占空比的要求。Therefore, in order to ensure that the duty ratio of the input clock signal is 50%, the clock signal is respectively connected to the input end of the first delay unit 1, the clock end of the D flip-flop 3, and the input end of the second NOT gate 4 through the frequency divider. . The divided signal duty cycle is 50%, which is consistent with the duty cycle requirements of the input clock signal in accordance with an embodiment of the present invention.
本发明实施例中,在进行时钟信号丢失检测时,电路结构简单,硬件开销小,只需一些简单的延时器和逻辑门即可实现,不需要复杂的参考时钟电路;检测速度快,在任意环境下只需要2个延时量就可以检测出输入时钟信号是否丢失;克服了现有技术中无法检测固定电平缺点,扩大了时钟丢失检测装置的应用范围。In the embodiment of the present invention, when the clock signal loss detection is performed, the circuit structure is simple, the hardware overhead is small, and only a simple delay device and a logic gate can be realized, and a complicated reference clock circuit is not required; the detection speed is fast, In any environment, only two delay amounts are needed to detect whether the input clock signal is lost. Overcoming the shortcomings of the prior art that the fixed level cannot be detected, the application range of the clock loss detecting device is expanded.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序 产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程时钟信号丢失检测设备的处理器以产生一个机器,使得通过计算机或其他可编程时钟信号丢失检测设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is directed to a method, apparatus (system), and computer program in accordance with an embodiment of the present invention The flow chart and/or block diagram of the product is described. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, a special purpose computer, an embedded processor, or other programmable clock loss detection device to produce a machine that is executed by a processor of a computer or other programmable clock signal loss detection device The instructions produce means for implementing the functions specified in one or more flows of the flowchart or in a block or blocks of the flowchart.
这些计算机程序指令也可存储在能引导计算机或其他可编程时钟信号丢失检测设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable clock loss detection device to operate in a particular manner, such that instructions stored in the computer readable memory produce an article of manufacture including the instruction device. The instruction means implements the functions specified in one or more blocks of the flow or in a flow or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程时钟信号丢失检测设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable clock loss detection device to perform a series of operational steps on a computer or other programmable device to produce computer-implemented processing on a computer or other programmable device. The instructions that are executed provide steps for implementing the functions specified in one or more blocks of the flowchart or in a block or blocks of the flowchart.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.
工业实用性Industrial applicability
采用本发明实施例,通过第一延时单元的输入端、D触发器的时钟端、以及第二非门的输入端分别接入时钟信号,所述第一延时单元的输出端在串接所述第一非门后连接所述D触发器的复位端,所述D触发器的D端连接电源,所述第二非门的输出端连接所述与门的第一输入端,所述D触发器的Q端连接所述与门的第二输入端,所述与门的输出端连接所述第二延时单元的输入端;所述第二延时单元输出的下降沿延时后的脉冲信号用于指示所 述时钟信号丢失,所述第二延时单元输出的高电平信号用于指示所述时钟信号未丢失。与现有技术相比,具有电路结构简单,硬件开销小,检测速度快,可以检测固定电平,扩大了时钟丢失检测装置的应用范围。 According to the embodiment of the present invention, the clock signal is respectively input through the input end of the first delay unit, the clock end of the D flip-flop, and the input end of the second non-gate, and the output end of the first delay unit is connected in series The first non-gate is connected to the reset end of the D flip-flop, the D end of the D flip-flop is connected to a power source, and the output end of the second NOT gate is connected to the first input end of the AND gate, The Q end of the D flip-flop is connected to the second input end of the AND gate, and the output end of the AND gate is connected to the input end of the second delay unit; after the falling edge of the output of the second delay unit is delayed Pulse signal is used to indicate the location The clock signal is lost, and the high level signal output by the second delay unit is used to indicate that the clock signal is not lost. Compared with the prior art, the circuit structure is simple, the hardware overhead is small, the detection speed is fast, the fixed level can be detected, and the application range of the clock loss detecting device is expanded.

Claims (10)

  1. 一种时钟信号丢失检测的装置,所述装置包括:第一延时单元,第二延时单元,D触发器,第一非门,第二非门,与门;其中,A device for detecting clock loss, the device comprising: a first delay unit, a second delay unit, a D flip-flop, a first NOT gate, a second NOT gate, and an AND gate; wherein
    所述第一延时单元的输入端、D触发器的时钟端、以及第二非门的输入端分别接入时钟信号,所述第一延时单元的输出端在串接所述第一非门后连接所述D触发器的复位端,所述D触发器的D端连接电源,所述第二非门的输出端连接所述与门的第一输入端,所述D触发器的Q端连接所述与门的第二输入端,所述与门的输出端连接所述第二延时单元的输入端;The input end of the first delay unit, the clock end of the D flip-flop, and the input end of the second non-gate respectively access a clock signal, and the output end of the first delay unit is connected in series with the first non- a reset end of the D flip-flop is connected to the gate, a D terminal of the D flip-flop is connected to a power source, and an output end of the second NOT gate is connected to a first input end of the AND gate, and the D of the D flip-flop The end is connected to the second input end of the AND gate, and the output end of the AND gate is connected to the input end of the second delay unit;
    所述D触发器,配置为在自身的复位端接入高电平信号时,在自身的Q端输出低电平信号;The D flip-flop is configured to output a low level signal at its Q terminal when a high level signal is connected to its reset terminal;
    每个延时单元,配置为在自身的输入信号为脉冲信号,且自身的输入信号的频率小于频率阈值时,输出下降沿延时后的脉冲信号;在自身的输入信号为脉冲信号,且自身的输入信号的频率大于等于频率阈值时,输出高电平信号;其中,所述第二延时单元输出的下降沿延时后的脉冲信号用于指示所述时钟信号丢失,所述第二延时单元输出的高电平信号用于指示所述时钟信号未丢失。Each delay unit is configured to output a pulse signal after a falling edge delay when its own input signal is a pulse signal and the frequency of its own input signal is less than a frequency threshold; the input signal is a pulse signal, and itself When the frequency of the input signal is greater than or equal to the frequency threshold, the high level signal is output; wherein the pulse signal after the falling edge delay of the output of the second delay unit is used to indicate that the clock signal is lost, the second extension The high level signal output by the time unit is used to indicate that the clock signal is not lost.
  2. 根据权利要求1所述的装置,其中,每个延时单元,还配置为在自身的输入信号为固定电平信号,输出所述固定电平信号;其中,所述第二延时单元输出的固定电平信号用于指示所述时钟信号丢失。The apparatus according to claim 1, wherein each delay unit is further configured to output a fixed level signal on its own input signal, wherein said second delay unit outputs A fixed level signal is used to indicate that the clock signal is lost.
  3. 根据权利要求1所述的装置,其中,所述第一延时单元与所述第二延时单元是具有相同的内部结构。The apparatus of claim 1 wherein said first delay unit and said second delay unit have the same internal structure.
  4. 根据权利要求1所述的装置,其中,每个延时单元还设置有控制端,每个延时单元配置为在控制端接入控制信号时,基于所述控制信号确定频率阈值。The apparatus of claim 1, wherein each delay unit is further provided with a control terminal, each delay unit configured to determine a frequency threshold based on the control signal when the control terminal accesses the control signal.
  5. 根据权利要求4所述的装置,其中,每个延时单元的控制信号通过 控制每个延时单元内部的至少一个受控器件的接入状态确定所述频率阈值,每个受控器件的接入状态用于指示对应受控器件是否接入。The apparatus according to claim 4, wherein the control signal of each delay unit passes Controlling an access state of at least one controlled device within each delay unit determines the frequency threshold, and an access state of each controlled device is used to indicate whether a corresponding controlled device is accessed.
  6. 根据权利要求5所述的装置,其中,所述受控器件为正信道金属氧化物半导体PMOS;所述每个延时单元内部的受控器件的个数大于2时,所述每个延时单元内部的各个受控器件的宽长比不同。The device according to claim 5, wherein said controlled device is a positive channel metal oxide semiconductor PMOS; said each delay time when said number of controlled devices inside each delay unit is greater than two The width to length ratio of each controlled device inside the unit is different.
  7. 根据权利要求4所述的装置,其中,每个延时单元接入的控制信号为电压信号或电流信号。The apparatus according to claim 4, wherein the control signal accessed by each delay unit is a voltage signal or a current signal.
  8. 根据权利要求1所述的装置,其中,所述装置还包括:第三非门;The device according to claim 1, wherein the device further comprises: a third non-gate;
    所述第二延时单元的输出端连接所述第三非门的输入端。The output end of the second delay unit is connected to the input end of the third NOT gate.
  9. 根据权利要求8所述的装置,其中,所述装置还包括:逻辑控制电路;所述逻辑控制电路连接所述第二延时单元的输出端或所述第三非门的输出端,The apparatus according to claim 8, wherein said apparatus further comprises: logic control circuit; said logic control circuit is coupled to an output of said second delay unit or an output of said third NOT gate,
    所述逻辑控制电路,配置为在开始接收到所述第二延时单元或所述第三非门的输出信号时,等待n个预设的延时量后,再将当前接收的来自所述第二延时单元或所述第三非门的信号输出,n为大于0的整数,所述预设的延时量为每个延时单元的下降沿延时时间。The logic control circuit is configured to wait for n preset delay amounts after starting to receive the output signal of the second delay unit or the third NOT gate, and then receive the current received from the The signal output of the second delay unit or the third NOT gate, n is an integer greater than 0, and the preset delay amount is a falling edge delay time of each delay unit.
  10. 根据权利要求1所述的装置,其中,所述装置还包括:分频器;所述时钟信号通过所述分频器分别接入所述第一延时单元的输入端、D触发器的时钟端、以及第二非门的输入端。 The device according to claim 1, wherein the device further comprises: a frequency divider; the clock signal is respectively connected to the input end of the first delay unit, the clock of the D flip-flop through the frequency divider The end, and the input of the second NOT gate.
PCT/CN2017/077152 2016-09-28 2017-03-17 Clock signal loss detection device WO2018058915A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610864963.5 2016-09-28
CN201610864963.5A CN107872208B (en) 2016-09-28 2016-09-28 Clock signal loss detection device

Publications (1)

Publication Number Publication Date
WO2018058915A1 true WO2018058915A1 (en) 2018-04-05

Family

ID=61761178

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/077152 WO2018058915A1 (en) 2016-09-28 2017-03-17 Clock signal loss detection device

Country Status (2)

Country Link
CN (1) CN107872208B (en)
WO (1) WO2018058915A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112345820B (en) * 2020-01-07 2023-08-18 成都华微电子科技股份有限公司 High-speed serial signal loss detection circuit
CN111913100B (en) * 2020-08-10 2023-07-25 上海川土微电子有限公司 Clock signal loss detection circuit
CN113162587B (en) * 2021-02-28 2022-03-29 珠海巨晟科技股份有限公司 Clock frequency abnormal deviation detection circuit

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7944261B1 (en) * 2007-12-03 2011-05-17 Xilinx, Inc. Method and apparatus for detecting clock loss
CN102497200A (en) * 2011-12-13 2012-06-13 东南大学 Clock signal loss detecting circuit and clock signal loss detecting method
CN104579259A (en) * 2014-09-24 2015-04-29 上海华虹宏力半导体制造有限公司 Loss detection circuit for clock signal
CN105337607A (en) * 2014-06-30 2016-02-17 澜起科技(上海)有限公司 Clock signal loss detection device and method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002251227A (en) * 2001-02-23 2002-09-06 Nec Microsystems Ltd Clock monitoring circuit, data processor and data processing system
CN1172465C (en) * 2001-10-11 2004-10-20 华为技术有限公司 Warning circuit for losing real time detection signal and its implement method
CN100502262C (en) * 2003-10-31 2009-06-17 西安大唐电信有限公司 Method for detecting periodic signal disorder
CN1333529C (en) * 2004-02-10 2007-08-22 大唐移动通信设备有限公司 Clock signal detection method and apparatus in electronic devices
CN102347767B (en) * 2011-06-09 2014-01-08 东南大学 Digital-analog hybrid mode clock duty ratio calibration circuit
CN102565529B (en) * 2011-12-21 2014-02-12 深圳国微技术有限公司 Low-power-consumption clock frequency detection circuit
US9135431B2 (en) * 2013-07-26 2015-09-15 Apple Inc. Harmonic detector of critical path monitors
CN104113303B (en) * 2014-02-26 2017-02-15 西安电子科技大学 50% duty ratio clock generation circuit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7944261B1 (en) * 2007-12-03 2011-05-17 Xilinx, Inc. Method and apparatus for detecting clock loss
CN102497200A (en) * 2011-12-13 2012-06-13 东南大学 Clock signal loss detecting circuit and clock signal loss detecting method
CN105337607A (en) * 2014-06-30 2016-02-17 澜起科技(上海)有限公司 Clock signal loss detection device and method
CN104579259A (en) * 2014-09-24 2015-04-29 上海华虹宏力半导体制造有限公司 Loss detection circuit for clock signal

Also Published As

Publication number Publication date
CN107872208A (en) 2018-04-03
CN107872208B (en) 2020-04-03

Similar Documents

Publication Publication Date Title
KR100571744B1 (en) Semiconductor integrated circuit device
US10422830B2 (en) Process corner detection circuit based on self-timing oscillation ring
CN108508340B (en) Process corner detection method of MOS (Metal oxide semiconductor) tube
JP2008219815A (en) Semiconductor integrated circuit device
WO2018058915A1 (en) Clock signal loss detection device
US8643408B2 (en) Flip-flop circuit, frequency divider and frequency dividing method
US9552892B1 (en) Sampling circuit with reduced metastability exposure
CN107302356B (en) Reset delay phase frequency detector and phase-locked loop frequency synthesizer
TW201541103A (en) Aging detection circuit and method thereof
TW201541062A (en) On-chip temperature sensing device
US9337817B2 (en) Hold-time optimization circuit and receiver with the same
CN111130536B (en) Circuit with ageing detection and PUF functions
TWI523430B (en) Duty cycle corrector
JP2015095860A (en) Timing adjustment circuit and semiconductor integrated circuit device
US10447251B2 (en) Power efficient high speed latch circuits and systems
KR101181279B1 (en) A sub-exponent time-to-digital converter using phase extension devices
CN107422193B (en) Circuit and method for measuring single event upset transient pulse length
CN107046416B (en) Duty ratio correction circuit
Rossi et al. Transient fault and soft error on-die monitoring scheme
WO2023159924A1 (en) Chip process angle detection circuit and method, and chip
US8487647B2 (en) Circuit and method for deglitching an input signal
CN105577174A (en) Phase detector
US9602085B2 (en) Data storage element and signal processing method
CN209879362U (en) Reverse clock generation circuit without low level intersection
US8270557B2 (en) Integrated circuit and method for driving the same

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17854375

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17854375

Country of ref document: EP

Kind code of ref document: A1