[go: up one dir, main page]

CN118897182A - Clock fault detection method, clock fault detection circuit and integrated circuit system - Google Patents

Clock fault detection method, clock fault detection circuit and integrated circuit system Download PDF

Info

Publication number
CN118897182A
CN118897182A CN202310481473.7A CN202310481473A CN118897182A CN 118897182 A CN118897182 A CN 118897182A CN 202310481473 A CN202310481473 A CN 202310481473A CN 118897182 A CN118897182 A CN 118897182A
Authority
CN
China
Prior art keywords
clock
signal
count
clock signal
handshake
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202310481473.7A
Other languages
Chinese (zh)
Inventor
王秀艳
郭亮亮
杨云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jinan Byd Semiconductor Technology Co ltd
Original Assignee
Jinan Byd Semiconductor Technology Co ltd
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 Jinan Byd Semiconductor Technology Co ltd filed Critical Jinan Byd Semiconductor Technology Co ltd
Priority to CN202310481473.7A priority Critical patent/CN118897182A/en
Publication of CN118897182A publication Critical patent/CN118897182A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/317Testing of digital circuits
    • G01R31/31727Clock circuits aspects, e.g. test clock circuit details, timing aspects for signal generation, circuits for testing clocks
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/2851Testing of integrated circuits [IC]
    • G01R31/2882Testing timing characteristics
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/317Testing of digital circuits
    • G01R31/31725Timing aspects, e.g. clock distribution, skew, propagation delay

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Manipulation Of Pulses (AREA)

Abstract

The invention discloses a clock fault detection method, a clock fault detection circuit and an integrated circuit system, wherein the clock fault detection method comprises the following steps: acquiring a first clock signal and a second clock signal; counting the periods of the first clock signal to obtain a first clock count value, and counting the periods of the second clock signal to obtain a second clock count value; when the first clock count value or the second clock count value reaches a handshake count threshold, the first clock signal and the second clock signal are controlled to handshake; if the handshake between the first clock signal and the second clock signal fails, determining that at least one of the first clock signal and the second clock signal has a fault. The method judges whether the clock signals are normal or not by adopting a mode of handshaking the first clock signals and the second clock signals, so that mutual detection of the first clock signals and the second clock signals is realized, and the accuracy of the first clock signals and the second clock signals is ensured.

Description

时钟故障检测方法、时钟故障检测电路和集成电路系统Clock fault detection method, clock fault detection circuit and integrated circuit system

技术领域Technical Field

本发明涉及时钟技术领域,尤其是涉及一种时钟故障检测方法、时钟故障检测电路和集成电路系统。The present invention relates to the field of clock technology, and in particular to a clock fault detection method, a clock fault detection circuit and an integrated circuit system.

背景技术Background Art

相关技术中,对于集成电路系统,时钟信号是很多逻辑信号的基准,确认时钟信号是否正确工作,直接决定了整个硬件系统的性能,因此如何检测时钟是否故障是亟待解决的问题。In the related art, for an integrated circuit system, the clock signal is the benchmark for many logic signals. Confirming whether the clock signal works correctly directly determines the performance of the entire hardware system. Therefore, how to detect whether the clock is faulty is an urgent problem to be solved.

发明内容Summary of the invention

本发明旨在至少解决现有技术中存在的技术问题之一。为此,本发明的一个目的在于提出一种时钟故障检测方法,该方法通过采用将第一时钟信号与第二时钟信号进行握手的方式来判断时钟信号是否正常,从而实现第一时钟信号和第二时钟信号的互检,保证第一时钟信号和第二时钟信号的准确性。The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, one object of the present invention is to provide a clock failure detection method, which determines whether the clock signal is normal by handshaking the first clock signal with the second clock signal, thereby realizing mutual inspection of the first clock signal and the second clock signal, and ensuring the accuracy of the first clock signal and the second clock signal.

本发明的目的之二在于提出一种时钟故障检测电路。A second objective of the present invention is to provide a clock failure detection circuit.

本发明的目的之三在于提出一种集成电路系统。A third objective of the present invention is to provide an integrated circuit system.

为了解决上述问题,本发明第一方面实施例提供一种时钟故障检测方法,包括:获取第一时钟信号和第二时钟信号;对所述第一时钟信号的周期进行计数以获得第一时钟计数值,以及,对所述第二时钟信号的周期进行计数以获得第二时钟计数值;在所述第一时钟计数值或所述第二时钟计数值达到握手计数阈值时,控制所述第一时钟信号与所述第二时钟信号进行握手;若所述第一时钟信号与所述第二时钟信号握手失败,确定所述第一时钟信号和所述第二时钟信号中至少一个存在故障。In order to solve the above problems, an embodiment of the first aspect of the present invention provides a clock fault detection method, including: acquiring a first clock signal and a second clock signal; counting the period of the first clock signal to obtain a first clock count value, and counting the period of the second clock signal to obtain a second clock count value; when the first clock count value or the second clock count value reaches a handshake count threshold, controlling the first clock signal to handshake with the second clock signal; if the handshake between the first clock signal and the second clock signal fails, determining that at least one of the first clock signal and the second clock signal has a fault.

根据本发明实施例的时钟故障检测方法,通过在第一时钟计数值或第二时钟计数值达到握手计数阈值时,触发第一时钟信号与第二时钟信号执行握手操作,由于在任一时钟信号出现故障时均会导致握手失败,因此若检测到第一时钟信号与第二时钟信号握手失败时,则即可确定第一时钟信号和第二时钟信号中至少一个存在故障,由此通过采用将第一时钟信号与第二时钟信号进行握手的方式来判断两个时钟信号是否正常,从而可以实现第一时钟信号和第二时钟信号的互检,保证第一时钟信号和第二时钟信号的准确性。According to the clock failure detection method of the embodiment of the present invention, when the first clock count value or the second clock count value reaches the handshake count threshold, the first clock signal and the second clock signal are triggered to perform a handshake operation. Since the handshake failure will occur when any clock signal fails, if it is detected that the handshake failure between the first clock signal and the second clock signal occurs, it can be determined that at least one of the first clock signal and the second clock signal has a fault. Therefore, by using the method of handshaking between the first clock signal and the second clock signal, it is possible to determine whether the two clock signals are normal, thereby realizing mutual inspection of the first clock signal and the second clock signal, thereby ensuring the accuracy of the first clock signal and the second clock signal.

在一些实施例中,控制所述第一时钟信号与所述第二时钟信号进行握手,包括:获取所述第一时钟信号所属第一时钟域的握手信号;将所述握手信号同步至所述第二时钟信号所属的第二时钟域,并产生第一信号;将所述第一信号同步至所述第一时钟域,并生成第二信号,以将所述第一时钟计数值和所述第二时钟计数值进行清零。In some embodiments, controlling the first clock signal to handshake with the second clock signal includes: obtaining a handshake signal of a first clock domain to which the first clock signal belongs; synchronizing the handshake signal to a second clock domain to which the second clock signal belongs, and generating a first signal; synchronizing the first signal to the first clock domain, and generating a second signal to clear the first clock count value and the second clock count value.

在一些实施例中,若所述第一时钟信号与所述第二时钟信号握手失败,则确定所述第一时钟信号和所述第二时钟信号中至少一个存在故障,包括:若所述第一时钟计数值和所述第二时钟计数值未清零,则所述第一时钟信号和所述第二时钟信号握手失败;确定所述第一时钟信号和所述第二时钟信号中至少一个存在停振故障。In some embodiments, if the handshake between the first clock signal and the second clock signal fails, it is determined that at least one of the first clock signal and the second clock signal has a fault, including: if the first clock count value and the second clock count value are not cleared, the handshake between the first clock signal and the second clock signal fails; it is determined that at least one of the first clock signal and the second clock signal has a stop fault.

在一些实施例中,利用第一计数器对所述第一时钟信号的周期进行计数以获得第一时钟计数值,以及利用第二计数器对所述第二时钟信号的周期进行计数以获得第二时钟计数值;所述第一时钟计数值和所述第二时钟计数值未清零,包括:所述第一时钟计数值大于所述第一计数器的溢出阈值和/或所述第二时钟计数值大于所述第二计数器的溢出阈值。In some embodiments, a first counter is used to count the period of the first clock signal to obtain a first clock count value, and a second counter is used to count the period of the second clock signal to obtain a second clock count value; the first clock count value and the second clock count value are not cleared to zero, including: the first clock count value is greater than an overflow threshold of the first counter and/or the second clock count value is greater than an overflow threshold of the second counter.

在一些实施例中,所述时钟故障检测方法还包括:若所述第一时钟计数值大于所述第一计数器的溢出阈值,则确定所述第二时钟信号存在停振故障。In some embodiments, the clock fault detection method further includes: if the first clock count value is greater than an overflow threshold of the first counter, determining that the second clock signal has a stop fault.

在一些实施例中,所述时钟故障检测方法还包括:若所述第二时钟计数值大于所述第二计数器的溢出阈值,则确定所述第一时钟信号存在停振故障。In some embodiments, the clock fault detection method further includes: if the second clock count value is greater than an overflow threshold of the second counter, determining that the first clock signal has a stop fault.

在一些实施例中,所述时钟故障检测方法还包括:获取第一时钟计数理论值范围;响应于所述第一信号,锁存所述第一时钟计数值;若所述第一时钟计数值超出所述第一时钟计数理论值范围,则确定所述第一时钟信号存在时钟偏差故障。In some embodiments, the clock fault detection method also includes: obtaining a first clock count theoretical value range; latching the first clock count value in response to the first signal; if the first clock count value exceeds the first clock count theoretical value range, determining that the first clock signal has a clock deviation fault.

在一些实施例中,所述第一时钟域与所述第二时钟域为不同时钟域,获取第一时钟计数理论值范围,包括:获取所述第一时钟信号对应的第一时钟周期和所述第二时钟信号对应的第二时钟周期;根据所述握手计数阈值、所述第一时钟周期、所述第二时钟周期、所述第一时钟信号对应的第一允许计数偏差值、所述第二时钟信号对应的第二允许计数偏差值和跨时域偏差范围的上限值获得所述第一时钟计数理论值范围的上限值;根据所述握手计数阈值、所述第一时钟周期、所述第二时钟周期、所述第一时钟信号对应的第一允许计数偏差值、所述第二时钟信号对应的第二允许计数偏差值和跨时域偏差范围的下限值获得所述第一时钟计数理论值范围的下限值。In some embodiments, the first clock domain and the second clock domain are different clock domains, and obtaining the first clock count theoretical value range includes: obtaining a first clock cycle corresponding to the first clock signal and a second clock cycle corresponding to the second clock signal; obtaining an upper limit value of the first clock count theoretical value range according to the handshake count threshold, the first clock cycle, the second clock cycle, the first allowable count deviation value corresponding to the first clock signal, the second allowable count deviation value corresponding to the second clock signal, and the upper limit value of the cross-time domain deviation range; obtaining a lower limit value of the first clock count theoretical value range according to the handshake count threshold, the first clock cycle, the second clock cycle, the first allowable count deviation value corresponding to the first clock signal, the second allowable count deviation value corresponding to the second clock signal, and the lower limit value of the cross-time domain deviation range.

在一些实施例中,所述时钟故障检测方法还包括:获取第二时钟计数理论值范围;响应于所述第一信号,锁存所述第二时钟计数值;若所述第二时钟计数值超出所述第二时钟计数理论值范围,则确定所述第二时钟信号存在时钟偏差故障。In some embodiments, the clock fault detection method also includes: obtaining a second clock count theoretical value range; latching the second clock count value in response to the first signal; if the second clock count value exceeds the second clock count theoretical value range, determining that the second clock signal has a clock deviation fault.

在一些实施例中,所述第一时钟域与所述第二时钟域为不同时钟域,获取第二时钟计数理论值范围,包括:获取所述第一时钟信号对应的第一时钟周期和所述第二时钟信号对应的第二时钟周期;根据所述握手计数阈值、所述第一时钟周期、所述第二时钟周期、所述第一时钟信号对应的第一允许计数偏差值、所述第二时钟信号对应的第二允许计数偏差值和跨时域偏差范围的上限值获得所述第二时钟计数理论值范围的上限值;根据所述握手计数阈值、所述第一时钟周期、所述第二时钟周期、所述第一时钟信号对应的第一允许计数偏差值、所述第二时钟信号对应的第二允许计数偏差值和跨时域偏差范围的下限值获得所述第二时钟计数理论值范围的下限值。In some embodiments, the first clock domain and the second clock domain are different clock domains, and obtaining the second clock count theoretical value range includes: obtaining a first clock cycle corresponding to the first clock signal and a second clock cycle corresponding to the second clock signal; obtaining an upper limit value of the second clock count theoretical value range according to the handshake count threshold, the first clock cycle, the second clock cycle, the first allowable count deviation value corresponding to the first clock signal, the second allowable count deviation value corresponding to the second clock signal, and the upper limit value of the cross-time domain deviation range; obtaining a lower limit value of the second clock count theoretical value range according to the handshake count threshold, the first clock cycle, the second clock cycle, the first allowable count deviation value corresponding to the first clock signal, the second allowable count deviation value corresponding to the second clock signal, and the lower limit value of the cross-time domain deviation range.

在一些实施例中,所述第一时钟计数理论值范围或所述第二时钟计数理论值范围的上限值通过以下公式获得:In some embodiments, the upper limit value of the first clock count theoretical value range or the second clock count theoretical value range is obtained by the following formula:

ρ1=3*Tdetected ρ1=3*T detected

其中,ρ1为跨时域偏差范围的上限值,MAX为第一时钟计数理论值范围或所述第二时钟计数理论值范围的上限值,Nref为握手计数阈值,Tref为第一时钟周期,Tdetected为第二时钟周期,pref%为第一允许计数偏差值,pdetected%为第二允许计数偏差值;Wherein, ρ1 is the upper limit value of the cross-time domain deviation range, MAX is the upper limit value of the first clock count theoretical value range or the second clock count theoretical value range, N ref is the handshake count threshold, T ref is the first clock cycle, T detected is the second clock cycle, p ref % is the first allowable count deviation value, and p detected % is the second allowable count deviation value;

在一些实施例中,所述第一时钟计数理论值范围的下限值通过以下公式获得:In some embodiments, the lower limit value of the first clock count theoretical value range is obtained by the following formula:

ρ2=2*Tdetected ρ2=2*T detected

其中,ρ2为跨时域偏差范围的上限值,MIN为第一时钟计数理论值范围或所述第二时钟计数理论值范围的下限值。Among them, ρ2 is the upper limit value of the cross-time domain deviation range, and MIN is the lower limit value of the first clock count theoretical value range or the second clock count theoretical value range.

本发明第二方面实施例提供一种时钟故障检测电路,包括:第一计数器,所述第一计数器用于以第一时钟信号的周期进行计数以获得第一时钟计数值;第二计数器,所述第二计数器用于以第二时钟信号的周期进行计数以获得第二时钟计数值;握手模块,所述握手模块与所述第一计数器、所述第二计数器连接,所述握手模块用于在所述第一时钟计数值或所述第二时钟计数值达到握手计数阈值时,控制所述第一时钟信号与所述第二时钟信号进行握手;信号处理模块,用于在所述第一时钟信号与所述第二时钟信号握手失败时,确定所述第一时钟信号和所述第二时钟信号中至少一个存在故障。A second aspect of the present invention provides a clock fault detection circuit, comprising: a first counter, the first counter being used to count with a period of a first clock signal to obtain a first clock count value; a second counter, the second counter being used to count with a period of a second clock signal to obtain a second clock count value; a handshake module, the handshake module being connected to the first counter and the second counter, the handshake module being used to control the first clock signal to handshake with the second clock signal when the first clock count value or the second clock count value reaches a handshake count threshold; and a signal processing module being used to determine that at least one of the first clock signal and the second clock signal has a fault when the handshake between the first clock signal and the second clock signal fails.

根据本发明实施例的时钟故障检测电路,通过在第一时钟计数值或第二时钟计数值达到握手计数阈值时,触发第一时钟信号与第二时钟信号执行握手操作,由于在任一时钟信号出现故障时均会导致握手失败,因此若检测到第一时钟信号与第二时钟信号握手失败时,则即可确定第一时钟信号和第二时钟信号中至少一个存在故障,由此通过采用将第一时钟信号与第二时钟信号进行握手的方式来判断两个时钟信号是否正常,从而可以实现第一时钟信号和第二时钟信号的互检,保证第一时钟信号和第二时钟信号的准确性。According to the clock fault detection circuit of the embodiment of the present invention, when the first clock count value or the second clock count value reaches the handshake count threshold, the first clock signal and the second clock signal are triggered to perform a handshake operation. Since the handshake failure will occur when any clock signal fails, if it is detected that the handshake failure between the first clock signal and the second clock signal occurs, it can be determined that at least one of the first clock signal and the second clock signal has a fault. Therefore, by using the method of handshaking between the first clock signal and the second clock signal, it is determined whether the two clock signals are normal, thereby realizing mutual inspection of the first clock signal and the second clock signal, and ensuring the accuracy of the first clock signal and the second clock signal.

在一些实施例中,所述第一计数器,还用于在所述第一时钟计数值达到握手计数阈值时输出握手信号;所述握手模块包括:第一握手单元,所述第一握手单元与所述第一计数器连接,所述第一握手单元用于获取所述第一时钟信号所属第一时钟域的握手信号,并将所述握手信号同步至所述第二时钟信号所属的第二时钟域,并产生第一信号;第二握手单元,所述第二握手单元与所述第一握手单元、所述第一计数器、所述第二计数器连接,所述第二握手单元用于将所述第一信号同步至所述第一时钟域,并生成第二信号,以将所述第一时钟计数值和所述第二时钟计数值进行清零。In some embodiments, the first counter is also used to output a handshake signal when the first clock count value reaches a handshake count threshold; the handshake module includes: a first handshake unit, the first handshake unit is connected to the first counter, the first handshake unit is used to obtain a handshake signal of a first clock domain to which the first clock signal belongs, and synchronize the handshake signal to a second clock domain to which the second clock signal belongs, and generate a first signal; a second handshake unit, the second handshake unit is connected to the first handshake unit, the first counter, and the second counter, the second handshake unit is used to synchronize the first signal to the first clock domain, and generate a second signal to clear the first clock count value and the second clock count value.

在一些实施例中,所述信号处理模具体用于若所述第一时钟计数值和所述第二时钟计数值未清零,则所述第一时钟信号和所述第二时钟信号握手失败,则确定所述第一时钟信号和所述第二时钟信号中至少一个存在停振故障。In some embodiments, the signal processing mold body is used to determine that at least one of the first clock signal and the second clock signal has an oscillation stop failure if the first clock count value and the second clock count value are not cleared, and the handshake between the first clock signal and the second clock signal fails.

在一些实施例中,还包括:第一看门狗,所述第一看门狗与所述第一计数器、所述信号处理模块连接,所述第一看门狗用于判断所述第一时钟计数值是否大于所述第一计数器的溢出阈值;所述信号处理模块,还用于在所述第一时钟计数值大于所述第一计数器的溢出阈值时,确定所述第二时钟信号存在停振故障。In some embodiments, it also includes: a first watchdog, which is connected to the first counter and the signal processing module, and the first watchdog is used to determine whether the first clock count value is greater than the overflow threshold of the first counter; the signal processing module is also used to determine that the second clock signal has a stop fault when the first clock count value is greater than the overflow threshold of the first counter.

在一些实施例中,还包括:第二看门狗,所述第二看门狗与所述第二计数器、所述信号处理模块连接,所述第二看门狗用于判断所述第二时钟计数值是否大于所述第二计数器的溢出阈值;所述信号处理模块,还用于在所述第二时钟计数值大于所述第二计数器的溢出阈值时,确定所述第一时钟信号存在停振故障。In some embodiments, it also includes: a second watchdog, which is connected to the second counter and the signal processing module, and the second watchdog is used to determine whether the second clock count value is greater than the overflow threshold of the second counter; the signal processing module is also used to determine that the first clock signal has a stop fault when the second clock count value is greater than the overflow threshold of the second counter.

在一些实施例中,还包括:第一锁存模块,所述第一锁存模块与所述第一计时器、所述第一握手单元连接,用于响应于所述第一信号,锁存所述第一时钟计数值;第一比较模块,所述第一比较模块与所述第一锁存模块、所述信号处理模块连接,用于判断所述第一时钟计数值是否满足第一时钟计数理论值范围,并输出第一比较结果;所述信号处理模块,还用于根据所述第一比较结果确定所述第二时钟计数值超出所述第一时钟计数理论值范围时,确定所述第一时钟信号存在时钟偏差故障。In some embodiments, it also includes: a first latch module, which is connected to the first timer and the first handshake unit, and is used to latch the first clock count value in response to the first signal; a first comparison module, which is connected to the first latch module and the signal processing module, and is used to determine whether the first clock count value meets the first clock count theoretical value range and output a first comparison result; the signal processing module is also used to determine that when the second clock count value exceeds the first clock count theoretical value range based on the first comparison result, it is determined that the first clock signal has a clock deviation fault.

在一些实施例中,还包括:第二锁存模块,所述第二锁存模块与所述第二计时器、所述第一握手单元连接,用于响应于所述第一信号,锁存所述第二时钟计数值;第二比较模块,所述第二比较模块与所述第二锁存模块、所述信号处理模块连接,用于判断所述第二时钟计数值是否满足第二时钟计数理论值范围,并输出第二比较结果;所述信号处理模块,还用于根据所述第二比较结果确定所述第二计数值超出所述第二时钟计数理论值范围时,确定所述第二时钟信号存在时钟偏差故障。In some embodiments, it also includes: a second latch module, which is connected to the second timer and the first handshake unit, and is used to latch the second clock count value in response to the first signal; a second comparison module, which is connected to the second latch module and the signal processing module, and is used to determine whether the second clock count value meets the second clock count theoretical value range and output a second comparison result; the signal processing module is also used to determine that when the second count value exceeds the second clock count theoretical value range according to the second comparison result, it is determined that there is a clock deviation fault in the second clock signal.

本发明第三方面实施例提供一种集成电路系统,包括:第一时钟电路,用于产生第一时钟信号;第二时钟电路,用于产生第二时钟信号;上述实施例所述的时钟故障检测电路,所述时钟故障检测电路与所述第一时钟电路、所述第二时钟电路连接,用于对所述第一时钟信号或所述第二时钟信号进行故障检测。An embodiment of the third aspect of the present invention provides an integrated circuit system, comprising: a first clock circuit, used to generate a first clock signal; a second clock circuit, used to generate a second clock signal; the clock fault detection circuit described in the above embodiment, wherein the clock fault detection circuit is connected to the first clock circuit and the second clock circuit, and is used to perform fault detection on the first clock signal or the second clock signal.

根据本发明实施例的集成电路系统,通过采用上述实施例的时钟故障检测电路,采用将第一时钟信号与第二时钟信号进行握手的方式来判断时钟信号是否正常,从而实现第一时钟信号和第二时钟信号的互检,保证第一时钟信号和第二时钟信号的准确性。本发明的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。According to the integrated circuit system of the embodiment of the present invention, by adopting the clock fault detection circuit of the above embodiment, the first clock signal and the second clock signal are handshaked to determine whether the clock signal is normal, thereby realizing the mutual inspection of the first clock signal and the second clock signal, and ensuring the accuracy of the first clock signal and the second clock signal. Additional aspects and advantages of the present invention will be partially given in the following description, and part will become obvious from the following description, or be understood through the practice of the present invention.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

本发明的上述和/或附加的方面和优点从结合下面附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

图1是根据本发明一个实施例的时钟故障检测方法的流程图;FIG1 is a flow chart of a clock failure detection method according to an embodiment of the present invention;

图2是根据本发明一个实施例的第二时钟存在停振故障的时序示意图;FIG2 is a timing diagram of a second clock having a oscillation stop failure according to an embodiment of the present invention;

图3是根据本发明一个实施例的第一时钟存在停振故障的时序示意图;FIG3 is a timing diagram of a first clock having an oscillation stop failure according to an embodiment of the present invention;

图4是根据本发明一个实施例的第二时钟存在偏差故障的时序示意图;FIG4 is a timing diagram of a second clock having a deviation fault according to an embodiment of the present invention;

图5是根据本发明一个实施例的时钟故障检测电路的示意图;FIG5 is a schematic diagram of a clock failure detection circuit according to an embodiment of the present invention;

图6是根据本发明一个实施例的集成电路系统的结构框图。FIG. 6 is a structural block diagram of an integrated circuit system according to an embodiment of the present invention.

附图标记:Reference numerals:

时钟故障检测电路100;集成电路系统200;Clock failure detection circuit 100; integrated circuit system 200;

第一计数器1;第二计数器2;握手模块3;第二锁存模块5;第二比较模块6;信号处理模块7;First counter 1; second counter 2; handshake module 3; second latch module 5; second comparison module 6; signal processing module 7;

第一握手单元31;第二握手单元32;第一看门狗41;第二看门狗42。The first handshake unit 31 ; the second handshake unit 32 ; the first watchdog 41 ; the second watchdog 42 .

具体实施方式DETAILED DESCRIPTION

下面详细描述本发明的实施例,参考附图描述的实施例是示例性的,下面详细描述本发明的实施例。Embodiments of the present invention are described in detail below. The embodiments described with reference to the accompanying drawings are exemplary. Embodiments of the present invention are described in detail below.

为了解决上述问题,本发明第一方面实施例提供一种时钟故障检测方法,采用该方法通过采用将第一时钟信号与第二时钟信号进行握手的方式来判断时钟信号是否正常,从而实现第一时钟信号和第二时钟信号的互检,保证第一时钟信号和第二时钟信号的准确性。In order to solve the above problems, an embodiment of the first aspect of the present invention provides a clock fault detection method, which uses the method to determine whether the clock signal is normal by handshaking the first clock signal with the second clock signal, thereby realizing mutual checking of the first clock signal and the second clock signal, and ensuring the accuracy of the first clock signal and the second clock signal.

如图1所示,本发明实施例的时钟故障检测方法包括步骤S1-步骤S3。As shown in FIG. 1 , the clock failure detection method according to the embodiment of the present invention includes steps S1 to S3 .

步骤S1,获取第一时钟信号和第二时钟信号。Step S1, obtaining a first clock signal and a second clock signal.

具体地,第一计算器获取到第一时钟产生的第一时钟信号,以及第二计数器获取到第二时钟产生的第二时钟信号。Specifically, the first counter obtains a first clock signal generated by a first clock, and the second counter obtains a second clock signal generated by a second clock.

步骤S2,利用第一计数器对第一时钟信号的周期进行计数以获得第一时钟计数值,以及,利用第二计数器对第二时钟信号的周期进行计数以获得第二时钟计数值。Step S2: using a first counter to count the period of the first clock signal to obtain a first clock count value, and using a second counter to count the period of the second clock signal to obtain a second clock count value.

示例性的,第一计数器对第一时钟产生的第一时钟信号的周期进行自由循环计数,以获得第一时钟计数值,第二计数器对第二时钟产生的第二时钟信号的周期进行自由循环计数,以获得第二时钟计数值,如图2所示,将第一时钟信号的两个相邻上升沿之间的空间间隔作为一个周期,以对第一时钟信号的周期个数进行计数以获得第一时钟计数值;将第二时钟信号的两个相邻上升沿之间的空间间隔作为一个周期,以对第二时钟信号的周期个数进行计数以获得第二时钟计数值。Exemplarily, the first counter performs free cycle counting on the period of the first clock signal generated by the first clock to obtain a first clock count value, and the second counter performs free cycle counting on the period of the second clock signal generated by the second clock to obtain a second clock count value. As shown in FIG2 , the space interval between two adjacent rising edges of the first clock signal is taken as a period to count the number of periods of the first clock signal to obtain the first clock count value; the space interval between two adjacent rising edges of the second clock signal is taken as a period to count the number of periods of the second clock signal to obtain the second clock count value.

步骤S3,在第一时钟计数值或第二时钟计数值达到握手计数阈值时,控制第一时钟信号与第二时钟信号进行握手。Step S3, when the first clock count value or the second clock count value reaches the handshake count threshold, control the first clock signal to handshake with the second clock signal.

步骤S4,若第一时钟信号与第二时钟信号握手失败,确定第一时钟信号和第二时钟信号中至少一个存在故障。Step S4: if the handshake between the first clock signal and the second clock signal fails, it is determined that at least one of the first clock signal and the second clock signal has a fault.

具体的,本申请的时钟故障检测方法引入两个时钟即第一时钟和第二时钟,在对第二时钟进行故障检测时,第二时钟作为被检测的时钟,第一时钟则作为基准时钟,反之,在对第一时钟进行故障检测时,第一时钟作为被检测的时钟,第二时钟则作为基准时钟,对此不作限制。其中,第一时钟和第二时钟可以处于同一时钟域,也可以处于不同的时钟域,对此不作限制。Specifically, the clock fault detection method of the present application introduces two clocks, namely a first clock and a second clock. When the second clock is fault-detected, the second clock is used as the clock to be detected, and the first clock is used as the reference clock. Conversely, when the first clock is fault-detected, the first clock is used as the clock to be detected, and the second clock is used as the reference clock. There is no limitation on this. The first clock and the second clock can be in the same clock domain or in different clock domains. There is no limitation on this.

下面以第二时钟作为被检测的时钟,第一时钟则作为基准时钟,第一时钟与第二时钟处于不同的时钟域为例进行说明,将第一时钟所在时域和第二时钟所在时域进行跨时域握手,对此,可以理解的是,在第一时钟信号和第二时钟信号均正常工作的情况下,两个时钟信号能够成功完成跨时域握手动作,而若第一时钟信号和第二时钟信号中至少一个存在停振故障后,故障的时钟则不能输出时钟信号,两个时钟信号也就无法完成跨时域握手动作,即两个时钟信号之间跨时域握手失败,基于此,本申请中通过第一时钟信号和第二时钟信号的握手结果来判断第一时钟信号或第二时钟信号是否故障。The following takes the second clock as the clock to be detected, the first clock as the reference clock, and the first clock and the second clock in different clock domains as an example for explanation, and performs a cross-time domain handshake between the time domain where the first clock is located and the time domain where the second clock is located. In this regard, it can be understood that, when the first clock signal and the second clock signal are both working normally, the two clock signals can successfully complete the cross-time domain handshake action, and if at least one of the first clock signal and the second clock signal has a stop failure, the faulty clock cannot output the clock signal, and the two clock signals cannot complete the cross-time domain handshake action, that is, the cross-time domain handshake between the two clock signals fails. Based on this, in this application, whether the first clock signal or the second clock signal is faulty is determined by the handshake result of the first clock signal and the second clock signal.

根据本发明实施例的时钟故障检测方法,通过在第一时钟计数值或第二时钟计数值达到握手计数阈值时,触发第一时钟信号与第二时钟信号执行握手操作,由于在任一时钟信号出现故障时均会导致握手失败,因此若检测到第一时钟信号与第二时钟信号握手失败时,则即可确定第一时钟信号和第二时钟信号中至少一个存在故障,由此通过采用将第一时钟信号与第二时钟信号进行握手的方式来判断两个时钟信号是否正常,从而可以实现第一时钟信号和第二时钟信号的互检,保证第一时钟信号和第二时钟信号的准确性。According to the clock failure detection method of the embodiment of the present invention, when the first clock count value or the second clock count value reaches the handshake count threshold, the first clock signal and the second clock signal are triggered to perform a handshake operation. Since the handshake failure will occur when any clock signal fails, if it is detected that the handshake failure between the first clock signal and the second clock signal occurs, it can be determined that at least one of the first clock signal and the second clock signal has a fault. Therefore, by using the method of handshaking between the first clock signal and the second clock signal, it is possible to determine whether the two clock signals are normal, thereby realizing mutual inspection of the first clock signal and the second clock signal, thereby ensuring the accuracy of the first clock signal and the second clock signal.

在一些实施例中,控制第一时钟信号与第二时钟信号进行握手,包括:获取第一时钟信号所属第一时钟域的握手信号;将握手信号同步至第二时钟信号所属的第二时钟域,并产生第一信号;将第一信号同步至第一时钟域,并生成第二信号,以将第一时钟计数值和第二时钟计数值进行清零。由此方式,将第一时钟所在第一时钟域与第二时钟所在第二时钟域之间完成握手动作,则触发第一时钟对第一时钟计数值的清零动作,以及第二时钟对第二时钟计数值的清零动作,以将第一时钟计数值和第二时钟计数值进行清零。In some embodiments, controlling the first clock signal to handshake with the second clock signal includes: obtaining a handshake signal of a first clock domain to which the first clock signal belongs; synchronizing the handshake signal to a second clock domain to which the second clock signal belongs, and generating a first signal; synchronizing the first signal to the first clock domain, and generating a second signal to clear the first clock count value and the second clock count value. In this way, the handshake action is completed between the first clock domain where the first clock is located and the second clock domain where the second clock is located, triggering the first clock to clear the first clock count value, and the second clock to clear the second clock count value, so as to clear the first clock count value and the second clock count value.

在一些实施例中,若第一时钟信号与第二时钟信号握手失败,则确定第一时钟信号和第二时钟信号中至少一个存在故障,包括:若第一时钟计数值和第二时钟计数值未清零,则第一时钟信号和第二时钟信号握手失败;确定第一时钟信号和第二时钟信号中至少一个存在停振故障。也就是说,只有在第一时钟信号和第二时钟信号均没有停振故障的情况下,第一计数器和第二计数器才能同时清零,由此,若第一时钟计数值和第二时钟计数值未清零,则第一时钟信号和第二时钟信号握手失败,则确定第一时钟信号和第二时钟信号中至少一个存在停振故障。如第一时钟信号存在停振故障,则第一计数器无法计数,第一计数器也就无法输出握手信号,进而经过连锁反应则会导致第二信号失效,同时第二计数器也不会执行清零动作,则说明第一时钟信号和第二时钟信号握手失败,再如第二时钟信号存在停振故障,则第二计数器无法计数,同时第一计数器也不会执行清零动作,进而经过连锁反应也会导致第二信号失效,则说明第一时钟信号和第二时钟信号握手失败,基于此,在确定第一时钟计数值和第二时钟计数值未清零时,则可确定第一时钟信号和第二时钟信号握手失败。In some embodiments, if the handshake between the first clock signal and the second clock signal fails, it is determined that at least one of the first clock signal and the second clock signal has a fault, including: if the first clock count value and the second clock count value are not cleared, the handshake between the first clock signal and the second clock signal fails; and it is determined that at least one of the first clock signal and the second clock signal has a stop fault. That is to say, only when both the first clock signal and the second clock signal do not have a stop fault, can the first counter and the second counter be cleared at the same time. Therefore, if the first clock count value and the second clock count value are not cleared, the handshake between the first clock signal and the second clock signal fails, and it is determined that at least one of the first clock signal and the second clock signal has a stop fault. If the first clock signal has a stop oscillation fault, the first counter cannot count, and the first counter cannot output the handshake signal, and then after a chain reaction, the second signal will become invalid, and the second counter will not perform the reset action, which means that the handshake of the first clock signal and the second clock signal has failed. For example, if the second clock signal has a stop oscillation fault, the second counter cannot count, and the first counter will not perform the reset action, and then after a chain reaction, the second signal will become invalid, which means that the handshake of the first clock signal and the second clock signal has failed. Based on this, when it is determined that the first clock count value and the second clock count value are not reset, it can be determined that the handshake of the first clock signal and the second clock signal has failed.

在一些实施例中,第一时钟计数值和第二时钟计数值未清零,包括:第一时钟计数值大于第一计数器的溢出阈值和/或第二时钟计数值大于第二计数器的溢出阈值。也就是说,在第一时钟信号和第二时钟信号均正常的情况下,第一计数器和第二计数器均可以完成清零动作,进而第一时钟计数值和/或第二时钟计数值也就不可能会出现超出计数溢出阈值的情况,然而,参考图2所示,在第二时钟信号存在故障时则会导致第一时钟信号与第二时钟信号握手失败,而且此时第二计数器也不会有计数值,同时第一计数器也不会执行清零动作,因此,第一计数器仍会继续计数直至第一时钟计数值大于第一计数器的溢出阈值;和/或,在第一时钟信号存在故障时则会导致第一时钟信号与第二时钟信号握手失败,而且此时第一计数器也不会有计数值,同时第二计数器也不会执行清零动作,因此,第二计数器仍会继续计数直至第二时钟计数值大于第二计数器的溢出阈值。In some embodiments, the first clock count value and the second clock count value are not cleared, including: the first clock count value is greater than the overflow threshold of the first counter and/or the second clock count value is greater than the overflow threshold of the second counter. That is to say, when the first clock signal and the second clock signal are both normal, the first counter and the second counter can complete the clearing action, and then the first clock count value and/or the second clock count value will not exceed the count overflow threshold. However, as shown in FIG2, when the second clock signal has a fault, the handshake between the first clock signal and the second clock signal will fail, and the second counter will not have a count value at this time, and the first counter will not perform the clearing action, so the first counter will continue to count until the first clock count value is greater than the overflow threshold of the first counter; and/or, when the first clock signal has a fault, the handshake between the first clock signal and the second clock signal will fail, and the first counter will not have a count value at this time, and the second counter will not perform the clearing action, so the second counter will continue to count until the second clock count value is greater than the overflow threshold of the second counter.

在一些实施例中,时钟故障检测方法还包括:若第一时钟计数值大于第一计数器的溢出阈值,则确定第二时钟信号存在停振故障。也就是说,在第一时钟信号和第二时钟信号均正常的情况下能够握手成功动作,第一计数器和第二计数器均可以完成清零动作,进而第一时钟计数值也就不可能会出现超出溢出阈值的情况,然而,参考图2所示,在第二时钟信号存在停振故障时则会导致两个时钟信号握手失败,而且此时第二计数器也不会有时钟计数值,同时第一计数器也不会执行清零动作,因此,第一计数器仍会继续计数直至超出溢出阈值,因此,在确定第一时钟计数值大于第一计数器的溢出阈值时,即可知晓第二时钟信号存在停振故障。In some embodiments, the clock fault detection method further includes: if the first clock count value is greater than the overflow threshold of the first counter, it is determined that the second clock signal has a stop oscillation fault. That is to say, when the first clock signal and the second clock signal are both normal, the handshake can be successfully performed, and the first counter and the second counter can complete the reset action, and then the first clock count value will not exceed the overflow threshold. However, as shown in FIG2, when the second clock signal has a stop oscillation fault, the handshake of the two clock signals will fail, and at this time the second counter will not have a clock count value, and the first counter will not perform the reset action. Therefore, the first counter will continue to count until it exceeds the overflow threshold. Therefore, when it is determined that the first clock count value is greater than the overflow threshold of the first counter, it can be known that the second clock signal has a stop oscillation fault.

其中,因采用两个时钟进行跨时域握手的方式来发起清零操作,因此,在第二计数器的清零工作与锁存动作之间存在偏差,因此,本申请中对于第一计数器的溢出阈值定为NUMBovf*Tref,其中,NUMBovf为第一计数器的理论溢出阈值,Tref为第一时钟的第一时钟周期,对于第一计数值可表示为Nref*Tref+3*Tref+3*Tdetected,其中,Nref为第一计数值,Tdetected为第二时钟周期,因此,若满足Nref*Tref+3*Tref+3*Tdetected<NUMBovf*Tref,则确定第二时钟不存在停振故障。Among them, because two clocks are used to perform cross-time domain handshake to initiate the clearing operation, there is a deviation between the clearing work and the latching action of the second counter. Therefore, in this application, the overflow threshold of the first counter is set to NUMB ovf *T ref , wherein NUMB ovf is the theoretical overflow threshold of the first counter, T ref is the first clock cycle of the first clock, and the first count value can be expressed as N ref *T ref +3*T ref +3*T detected , wherein N ref is the first count value, and T detected is the second clock cycle. Therefore, if N ref *T ref +3*T ref +3*T detected <NUMB ovf *T ref , it is determined that the second clock does not have a stop fault.

在一些实施例中,时钟故障检测方法还包括:若第二时钟计数值大于第二计数器的溢出阈值,则确定第一时钟信号存在停振故障。也就是说,在第一时钟信号和第二时钟信号均正常的情况下能够握手成功,第一计数器和第二计数器均可以完成清零动作,进而第二时钟计数值也就不可能会出现超出溢出阈值的情况,然而,参考图3所示,在第一时钟信号存在停振故障时则会导致两个时钟信号握手失败,而且此时第一计数器也不会有时钟计数值,同时第二计数器也不会执行清零动作,因此,第二计数器仍会继续计数直至超出溢出阈值,因此,在确定第二时钟计数值大于第二计数器的溢出阈值时,即可知晓第一时钟信号存在停振故障。In some embodiments, the clock fault detection method further includes: if the second clock count value is greater than the overflow threshold of the second counter, it is determined that the first clock signal has a stop oscillation fault. That is to say, when the first clock signal and the second clock signal are both normal, the handshake can be successful, the first counter and the second counter can complete the reset action, and then the second clock count value will not exceed the overflow threshold. However, as shown in FIG3, when the first clock signal has a stop oscillation fault, the handshake of the two clock signals will fail, and at this time the first counter will not have a clock count value, and the second counter will not perform the reset action. Therefore, the second counter will continue to count until it exceeds the overflow threshold. Therefore, when it is determined that the second clock count value is greater than the overflow threshold of the second counter, it can be known that the first clock signal has a stop oscillation fault.

其中,因采用两个时钟信号进行跨时域握手的方式来发起清零操作,因此,在第二计数器的清零工作与锁存动作之间存在偏差,因此,本申请中对于第二计数器的溢出阈值定为NUMDovf*Tref,其中,NUMDovf为第二计数器的理论溢出阈值,Tref为第一时钟的第一时钟周期,对于第二计数值可表示为Nref*Tref+3*Tref+3*Tdetected,因此,若满足Nref*Tref+3*Tref+3*Tdetected<NUMBovf*Tref,则确定第二时钟信号不存在停振故障。Among them, because two clock signals are used to perform cross-time domain handshake to initiate a clearing operation, there is a deviation between the clearing work and the latching action of the second counter. Therefore, in this application, the overflow threshold of the second counter is set to NUMD ovf *T ref , wherein NUMD ovf is the theoretical overflow threshold of the second counter, T ref is the first clock cycle of the first clock, and the second count value can be expressed as N ref *T ref +3*T ref +3*T detected . Therefore, if N ref *T ref +3*T ref +3*T detected <NUMB ovf *T ref , it is determined that the second clock signal does not have a stop failure.

由此,基于两个时钟信号的跨时域握手动作成功后对第一计数器和第二计数器进行清零的动作,通过上述方式对第一时钟计数值或第二时钟计数值进行判断,可以有效实现两个时钟信号之间的互检。Therefore, based on the action of clearing the first counter and the second counter after the cross-time domain handshake action of the two clock signals is successful, the first clock count value or the second clock count value is judged in the above manner, so as to effectively realize the mutual check between the two clock signals.

在一些实施例中,时钟故障检测方法还包括:获取第一时钟计数理论值范围;响应于第一信号,锁存第一时钟计数值;若第一时钟计数值超出第一时钟计数理论值范围,则确定第一时钟信号存在时钟偏差故障。In some embodiments, the clock fault detection method further includes: obtaining a first clock count theoretical value range; latching the first clock count value in response to a first signal; and determining that a clock deviation fault exists in the first clock signal if the first clock count value exceeds the first clock count theoretical value range.

示例性的,参考图4所示,在第一时钟的第一时钟信号频率偏低即周期变大时,则会导致第一时钟计数值超出第一时钟计数理论值范围的上限值;在第一时钟的第一时钟信号频率偏高即周期变小时,则会导致第一时钟计数值低于第一时钟计数理论值范围的下限值,基于此,为实现对时钟偏差故障的检测,本申请中通过第一时钟计数理论值范围来对第一时钟计数值进行判断,即若确定第一时钟计数值未处于第一时钟计数理论值范围,则确定第一时钟信号存在时钟偏差故障,若确定第一时钟计数值处于第一时钟计数理论值范围,则确定第一时钟信号正常。Exemplarily, as shown in reference Figure 4, when the frequency of the first clock signal of the first clock is low, that is, the period becomes larger, it will cause the first clock count value to exceed the upper limit value of the first clock count theoretical value range; when the frequency of the first clock signal of the first clock is high, that is, the period becomes smaller, it will cause the first clock count value to be lower than the lower limit value of the first clock count theoretical value range. Based on this, in order to detect the clock deviation fault, the first clock count value is judged by the first clock count theoretical value range in the present application, that is, if it is determined that the first clock count value is not within the first clock count theoretical value range, it is determined that the first clock signal has a clock deviation fault, and if it is determined that the first clock count value is within the first clock count theoretical value range, it is determined that the first clock signal is normal.

在一些实施例中,第一时钟域与第二时钟域为不同时钟域,对于第一时钟计数理论值范围通过以下方式获得。In some embodiments, the first clock domain and the second clock domain are different clock domains, and the theoretical value range of the first clock count is obtained in the following manner.

具体地,获取第一时钟信号对应的第一时钟周期和第二时钟信号对应的第二时钟周期;根据握手计数阈值、第一时钟周期、第二时钟周期、第一时钟信号对应的第一允许计数偏差值、第二时钟信号对应的第二允许计数偏差值和跨时域偏差范围的上限值获得第一时钟计数理论值范围的上限值;根据握手计数阈值、第一时钟周期、第二时钟周期、第一时钟信号对应的第一允许计数偏差值、第二时钟信号对应的第二允许计数偏差值和跨时域偏差范围的下限值获得第一时钟计数理论值范围的下限值。Specifically, a first clock cycle corresponding to the first clock signal and a second clock cycle corresponding to the second clock signal are obtained; an upper limit value of the first clock count theoretical value range is obtained according to the handshake count threshold, the first clock cycle, the second clock cycle, the first allowable count deviation value corresponding to the first clock signal, the second allowable count deviation value corresponding to the second clock signal, and the upper limit value of the cross-time domain deviation range; a lower limit value of the first clock count theoretical value range is obtained according to the handshake count threshold, the first clock cycle, the second clock cycle, the first allowable count deviation value corresponding to the first clock signal, the second allowable count deviation value corresponding to the second clock signal, and the lower limit value of the cross-time domain deviation range.

其中,因采用两个时钟信号进行跨时域握手的方式来发起清零操作,因此,在第一计数器的清零工作与锁存动作之间存在偏差,因此,本申请中在获得第一时钟计数理论值范围时还引入了跨时域偏差范围,由此来提高对第一时钟信号进行偏差故障判断的准确性。Among them, because two clock signals are used to perform cross-time domain handshake to initiate the clearing operation, there is a deviation between the clearing work and the latching action of the first counter. Therefore, in this application, a cross-time domain deviation range is also introduced when obtaining the theoretical value range of the first clock count, thereby improving the accuracy of deviation fault judgment on the first clock signal.

在一些实施例中,时钟故障检测方法还包括:获取第二时钟计数理论值范围;响应于第一信号,锁存第二时钟计数值;若第二时钟计数值超出第二时钟计数理论值范围,则确定第二时钟信号存在时钟偏差故障。In some embodiments, the clock fault detection method further includes: obtaining a second clock count theoretical value range; latching the second clock count value in response to the first signal; and determining that a clock deviation fault exists in the second clock signal if the second clock count value exceeds the second clock count theoretical value range.

示例性的,参考图4所示,在第二时钟的第二时钟信号频率偏低即周期变大时,则会导致第二时钟计数值超出第二时钟计数理论值范围的上限值;在第二时钟的第二时钟信号频率偏高即周期变小时,则会导致第二时钟计数值低于第二时钟计数理论值范围的下限值,基于此,为实现对时钟偏差故障的检测,本申请中通过第二时钟计数理论值范围来对第二时钟计数值进行判断,即若确定第二时钟计数值未处于第二时钟计数理论值范围,则确定第二时钟信号存在时钟偏差故障,若确定第二时钟计数值处于第二时钟计数理论值范围,则确定第二时钟信号正常。Exemplarily, as shown in reference Figure 4, when the frequency of the second clock signal of the second clock is low, that is, the period becomes longer, it will cause the second clock count value to exceed the upper limit value of the second clock count theoretical value range; when the frequency of the second clock signal of the second clock is high, that is, the period becomes smaller, it will cause the second clock count value to be lower than the lower limit value of the second clock count theoretical value range. Based on this, in order to detect clock deviation faults, the second clock count value is judged by the second clock count theoretical value range in the present application, that is, if it is determined that the second clock count value is not within the second clock count theoretical value range, it is determined that the second clock signal has a clock deviation fault, and if it is determined that the second clock count value is within the second clock count theoretical value range, it is determined that the second clock signal is normal.

在一些实施例中,第一时钟域与第二时钟域为不同时钟域,对于第二时钟计数理论值范围通过以下方式获得。In some embodiments, the first clock domain and the second clock domain are different clock domains, and the theoretical value range of the second clock count is obtained in the following manner.

具体地,获取第一时钟信号对应的第一时钟周期和第二时钟信号对应的第二时钟周期;根据握手计数阈值、第一时钟周期、第二时钟周期、第一时钟信号对应的第一允许计数偏差值、第二时钟信号对应的第二允许计数偏差值和跨时域偏差范围的上限值获得第二时钟计数理论值范围的上限值;根据握手计数阈值、第一时钟周期、第二时钟周期、第一时钟信号对应的第一允许计数偏差值、第二时钟信号对应的第二允许计数偏差值和跨时域偏差范围的下限值获得第二时钟计数理论值范围的下限值。Specifically, a first clock cycle corresponding to the first clock signal and a second clock cycle corresponding to the second clock signal are obtained; an upper limit value of the second clock count theoretical value range is obtained according to the handshake count threshold, the first clock cycle, the second clock cycle, the first allowable count deviation value corresponding to the first clock signal, the second allowable count deviation value corresponding to the second clock signal, and the upper limit value of the cross-time domain deviation range; a lower limit value of the second clock count theoretical value range is obtained according to the handshake count threshold, the first clock cycle, the second clock cycle, the first allowable count deviation value corresponding to the first clock signal, the second allowable count deviation value corresponding to the second clock signal, and the lower limit value of the cross-time domain deviation range.

其中,因采用两个时钟信号进行跨时域握手的方式来发起清零操作,因此,在第二计数器的清零工作与锁存动作之间存在偏差,因此,本申请中在获得第二时钟计数理论值范围时还引入了跨时域偏差范围,由此来提高对第二时钟信号进行偏差故障判断的准确性。Among them, since two clock signals are used to perform cross-time domain handshake to initiate the clearing operation, there is a deviation between the clearing work and the latching action of the second counter. Therefore, in this application, a cross-time domain deviation range is also introduced when obtaining the second clock count theoretical value range, thereby improving the accuracy of deviation fault judgment on the second clock signal.

在一些实施例中,第一时钟计数理论值范围或第二时钟计数理论值范围的上限值通过以下公式获得:In some embodiments, the upper limit value of the first clock count theoretical value range or the second clock count theoretical value range is obtained by the following formula:

ρ1=3*Tdetected ρ1=3*T detected

其中,ρ1为跨时域偏差范围的上限值,MAX为第一时钟计数理论值范围或第二时钟计数理论值范围的上限值,Nref为握手计数阈值,Tref为第一时钟周期,Tdetected为第二时钟周期,pref%为第一允许计数偏差值,pdetected%为第二允许计数偏差值。Among them, ρ1 is the upper limit value of the cross-time domain deviation range, MAX is the upper limit value of the first clock count theoretical value range or the second clock count theoretical value range, N ref is the handshake count threshold, T ref is the first clock cycle, T detected is the second clock cycle, p ref % is the first allowable count deviation value, and p detected % is the second allowable count deviation value.

以及,第一时钟计数理论值范围或第二时钟计数理论值范围的下限值通过以下公式获得:And, the lower limit value of the first clock count theoretical value range or the second clock count theoretical value range is obtained by the following formula:

ρ2=2*Tdetected ρ2=2*T detected

其中,ρ2为跨时域偏差范围的上限值,MIN为第一时钟计数理论值范围或第二时钟计数理论值范围的下限值。Among them, ρ2 is the upper limit value of the cross-time domain deviation range, and MIN is the lower limit value of the first clock counting theoretical value range or the second clock counting theoretical value range.

本发明第二方面实施例提供一种时钟故障检测电路100,如图5所示,时钟故障检测电路100包括第一计数器1、第二计数器2、握手模块3和信号处理模块7。A second aspect of the present invention provides a clock fault detection circuit 100 , as shown in FIG5 . The clock fault detection circuit 100 includes a first counter 1 , a second counter 2 , a handshake module 3 and a signal processing module 7 .

其中,第一计数器1用于以第一时钟信号的周期进行计数以获得第一时钟计数值;第二计数器2用于以第二时钟信号的周期进行计数以获得第二时钟计数值;握手模块3与第一计数器1、第二计数器2连接,握手模块3用于在第一时钟计数值或第二时钟计数值达到握手计数阈值时,控制第一时钟信号与第二时钟信号进行握手;信号处理模块7,用于在第一时钟信号与第二时钟信号握手失败时,确定第一时钟信号和第二时钟信号中至少一个存在故障。Among them, the first counter 1 is used to count with the period of the first clock signal to obtain the first clock count value; the second counter 2 is used to count with the period of the second clock signal to obtain the second clock count value; the handshake module 3 is connected to the first counter 1 and the second counter 2, and the handshake module 3 is used to control the first clock signal to handshake with the second clock signal when the first clock count value or the second clock count value reaches the handshake count threshold; the signal processing module 7 is used to determine that at least one of the first clock signal and the second clock signal has a fault when the handshake between the first clock signal and the second clock signal fails.

根据本发明实施例的时钟故障检测电路100,通过在第一时钟计数值或第二时钟计数值达到握手计数阈值时,触发第一时钟信号与第二时钟信号执行握手操作,由于在任一时钟信号出现故障时均会导致握手失败,因此若检测到第一时钟信号与第二时钟信号握手失败时,则即可确定第一时钟信号和第二时钟信号中至少一个存在故障,由此通过采用将第一时钟信号与第二时钟信号进行握手的方式来判断两个时钟信号是否正常,从而可以实现第一时钟信号和第二时钟信号的互检,保证第一时钟信号和第二时钟信号的准确性。According to the clock fault detection circuit 100 of the embodiment of the present invention, when the first clock count value or the second clock count value reaches the handshake count threshold, the first clock signal and the second clock signal are triggered to perform a handshake operation. Since the handshake failure will occur when any clock signal fails, if the handshake failure between the first clock signal and the second clock signal is detected, it can be determined that at least one of the first clock signal and the second clock signal has a fault. Therefore, by using the method of handshaking between the first clock signal and the second clock signal, it is determined whether the two clock signals are normal, thereby realizing mutual inspection of the first clock signal and the second clock signal, and ensuring the accuracy of the first clock signal and the second clock signal.

在一些实施例中,第一计数器1,还用于在第一时钟计数值达到握手计数阈值时输出握手信号。In some embodiments, the first counter 1 is further configured to output a handshake signal when the first clock count value reaches a handshake count threshold.

握手模块2包括:第一握手单元31和第二握手单元32。The handshake module 2 includes a first handshake unit 31 and a second handshake unit 32 .

其中,第一握手单元31与第一计数器1连接,第一握手单元31用于获取第一时钟信号所属第一时钟域的握手信号b,并将握手信号b同步至第二时钟信号所属的第二时钟域,并产生第一信号c;第二握手单元31与第一握手单元31、第一计数器1、第二计数器2连接,第二握手单元31用于将第一信号c同步至第一时钟域,并生成第二信号a,以将第一时钟计数值和第二时钟计数值进行清零。Among them, the first handshake unit 31 is connected to the first counter 1, and the first handshake unit 31 is used to obtain the handshake signal b of the first clock domain to which the first clock signal belongs, and synchronize the handshake signal b to the second clock domain to which the second clock signal belongs, and generate a first signal c; the second handshake unit 31 is connected to the first handshake unit 31, the first counter 1, and the second counter 2, and the second handshake unit 31 is used to synchronize the first signal c to the first clock domain, and generate a second signal a to clear the first clock count value and the second clock count value.

具体地,在正常状态下,第一计数器1计数到握手计数阈值时输出握手信号b,第一握手单元31将接收到第一时钟信号所属第一时钟域的握手信号b进行缓存,再将握手信号b同步至第二时钟信号所属的第二时钟域,并产生第一信号c,即触发第一时钟信号所属第一时钟域的握手信号b翻转一次产生第一信号c,第一握手单元31同时还可接收到第二时钟的第二时钟信号,第二握手单元32将第一信号c进行缓存,第二握手单元32同时还可接收到第一时钟的第一时钟信号,第二握手单元32将第一信号c同步至第一时钟域并生成第二信号a,根据第二信号a控制第一时钟对第一时钟计数值,以及根据第二信号a第二时钟对第二时钟计数值进行清零。Specifically, under normal conditions, the first counter 1 outputs a handshake signal b when it counts to the handshake count threshold. The first handshake unit 31 caches the handshake signal b received from the first clock domain to which the first clock signal belongs, and then synchronizes the handshake signal b to the second clock domain to which the second clock signal belongs, and generates a first signal c, i.e., triggers the handshake signal b in the first clock domain to which the first clock signal belongs to flip once to generate the first signal c. The first handshake unit 31 can also receive the second clock signal of the second clock at the same time. The second handshake unit 32 caches the first signal c. The second handshake unit 32 can also receive the first clock signal of the first clock at the same time. The second handshake unit 32 synchronizes the first signal c to the first clock domain and generates a second signal a. The first clock counts the first clock according to the second signal a, and clears the second clock count value according to the second signal a.

对于根据第一时钟信号所属第一时钟域的握手信号b和第二时钟输出第二时钟信号,第一握手单元31的端口D触发即真值为1,则表示握手信号b正常,第一握手单元31的端口CK触发即真值为1,则表示第二时钟信号正常,因此第一握手单元31输出的第一信号c也就有效即真值为1;若第一握手单元31的端口D未触发即真值为0,则表示握手信号b失效,第一握手单元31的端口CK触发即真值为1,则表示第二时钟信号正常,因此第一握手单元31输出的第一信号c也就失效即真值为0;若第一握手单元31的端口D触发即真值为1,则表示握手信号b正常,第一握手单元31的端口CK未触发即真值为0,则表示第二时钟信号不正常,因此第一握手单元31输出的第一信号c也就失效即真值为0。For the handshake signal b and the second clock output according to the first clock domain to which the first clock signal belongs, if the port D of the first handshake unit 31 is triggered, that is, the true value is 1, it means that the handshake signal b is normal, and the port CK of the first handshake unit 31 is triggered, that is, the true value is 1, it means that the second clock signal is normal, so the first signal c output by the first handshake unit 31 is valid, that is, the true value is 1; if the port D of the first handshake unit 31 is not triggered, that is, the true value is 0, it means that the handshake signal b is invalid, and the port CK of the first handshake unit 31 is triggered, that is, the true value is 1, it means that the second clock signal is normal, so the first signal c output by the first handshake unit 31 is invalid, that is, the true value is 0; if the port D of the first handshake unit 31 is triggered, that is, the true value is 1, it means that the handshake signal b is normal, and the port CK of the first handshake unit 31 is not triggered, that is, the true value is 0, it means that the second clock signal is normal, so the first signal c output by the first handshake unit 31 is invalid, that is, the true value is 0;

同理,对于根据第一握手单元产生的第一信号c和第一时钟信号输出第二信号a,第二握手单元32的端口D触发即真值为1,则表示第一信号c正常,第二握手单元32的端口CK触发即真值为1,则表示第一时钟信号正常,因此第二握手单元32输出的第二信号a也就有效即第二信号正常;若第二握手单元32的端口D触发即真值为1,则表示第一信号c正常,第二握手单元32的端口CK未触发即真值为0,则表示第一时钟信号不正常,因此第二握手单元32输出的第二信号a也就失效即第二信号异常;若第二握手单元32的端口D未触发即真值为0,则表示第一信号c失效,第二握手单元32的端口CK触发即真值为1,则表示第一时钟信号正常,因此第二握手单元32输出的第二信号a也就失效即第二信号异常。Similarly, for the second signal a output according to the first signal c generated by the first handshake unit and the first clock signal, if the port D of the second handshake unit 32 is triggered, that is, the true value is 1, it means that the first signal c is normal, and the port CK of the second handshake unit 32 is triggered, that is, the true value is 1, which means that the first clock signal is normal, and therefore the second signal a output by the second handshake unit 32 is valid, that is, the second signal is normal; if the port D of the second handshake unit 32 is triggered, that is, the true value is 1, it means that the first signal c is normal, and the port CK of the second handshake unit 32 is not triggered, that is, the true value is 0, which means that the first clock signal is abnormal, and therefore the second signal a output by the second handshake unit 32 is invalid, that is, the second signal is abnormal; if the port D of the second handshake unit 32 is not triggered, that is, the true value is 0, it means that the first signal c is invalid, and the port CK of the second handshake unit 32 is triggered, that is, the true value is 1, which means that the first clock signal is normal, and therefore the second signal a output by the second handshake unit 32 is invalid, that is, the second signal is abnormal.

基于此,当第一握手单元31的端口D触发即真值为1时,且第一握手单元31的端口CK触发即真值为1时,此时由于握手信号和第二时钟信号正常,因此第一握手单元31输出的第一信号c有效,即第二握手单元32的端口D触发即真值为1,以及第二握手单元32的端口CK触发即真值为1时,此时由于第一信号和第一时钟信号正常,因此第二握手单元32输出的第二信号a有效,第一计数器1根据接收到的第二信号a对第一时钟计数值进行清零,与此同时第二计数器2也对第二时钟计数值进行清零。Based on this, when port D of the first handshake unit 31 is triggered, that is, the true value is 1, and port CK of the first handshake unit 31 is triggered, that is, the true value is 1, at this time, since the handshake signal and the second clock signal are normal, the first signal c output by the first handshake unit 31 is valid, that is, port D of the second handshake unit 32 is triggered, that is, the true value is 1, and port CK of the second handshake unit 32 is triggered, that is, the true value is 1, at this time, since the first signal and the first clock signal are normal, the second signal a output by the second handshake unit 32 is valid, the first counter 1 clears the first clock count value according to the received second signal a, and at the same time the second counter 2 also clears the second clock count value.

此外,当第一握手单元31的端口CK未触发即真值为0时,第二时钟信号失效即第二时钟信号故障,会导致第一握手单元31输出的第一信号c失效,进而导致第二握手单元32输出的第二信号a也无效,则无法触发对第一时钟计数值和第二时钟计数值进行清零的操作;当第一时钟信号存在故障时,则第一计数器1无法计数,第一计数器1也就无法输出握手信号,因此第一握手单元31的端口D未触发即真值为0,会导致第一握手单元31输出的第一信号c失效,进而导致第二握手单元32输出的第二信号a也无效,则无法触发对第一时钟计数值和第二时钟计数值进行清零的操作。In addition, when the port CK of the first handshake unit 31 is not triggered, that is, the true value is 0, the second clock signal fails, that is, the second clock signal is faulty, which will cause the first signal c output by the first handshake unit 31 to fail, and then the second signal a output by the second handshake unit 32 is also invalid, and the operation of clearing the first clock count value and the second clock count value cannot be triggered; when the first clock signal is faulty, the first counter 1 cannot count, and the first counter 1 cannot output the handshake signal. Therefore, the port D of the first handshake unit 31 is not triggered, that is, the true value is 0, which will cause the first signal c output by the first handshake unit 31 to fail, and then the second signal a output by the second handshake unit 32 is also invalid, and the operation of clearing the first clock count value and the second clock count value cannot be triggered.

在一些实施例中,信号处理模块7具体用于若第一时钟计数值和第二时钟计数值未清零,则第一时钟信号和第二时钟信号握手失败,则确定第一时钟信号和第二时钟信号中至少一个存在停振故障。In some embodiments, the signal processing module 7 is specifically used to determine that at least one of the first clock signal and the second clock signal has a stop failure if the first clock count value and the second clock count value are not cleared and the handshake of the first clock signal and the second clock signal fails.

也就是说,只有在第一时钟信号和第二时钟信号均没有停振故障的情况下,第一计数器1和第二计数器2才能同时清零,由此,若第一时钟计数值和第二时钟计数值未清零,则第一时钟信号和第二时钟信号握手失败,则确定第一时钟信号和第二时钟信号中至少一个存在停振故障。如第一时钟信号存在停振故障,则第一计数器1无法计数,第一计数器也就无法输出握手信号,进而经过连锁反应则会导致第二信号失效,此时第二计数器2不会执行清零动作,则说明第一时钟信号和第二时钟信号握手失败,再如第二时钟信号存在停振故障,则第二计数器2无法计数,同时第一计数器也不会执行清零动作,进而经过连锁反应也会导致第二信号失效,则说明第一时钟信号和第二时钟信号握手失败,基于此,在确定第一时钟计数值和第二时钟计数值未清零时,则可确定第一时钟信号和第二时钟信号握手失败。That is to say, only when both the first clock signal and the second clock signal have no oscillation stop failure, the first counter 1 and the second counter 2 can be cleared at the same time. Therefore, if the first clock count value and the second clock count value are not cleared, the handshake between the first clock signal and the second clock signal fails, and it is determined that at least one of the first clock signal and the second clock signal has a oscillation stop failure. If the first clock signal has a oscillation stop failure, the first counter 1 cannot count, and the first counter cannot output a handshake signal, and then after a chain reaction, the second signal will fail. At this time, the second counter 2 will not perform the clearing action, which means that the handshake between the first clock signal and the second clock signal fails. For example, if the second clock signal has a oscillation stop failure, the second counter 2 cannot count, and the first counter will not perform the clearing action, and then after a chain reaction, the second signal will fail, which means that the handshake between the first clock signal and the second clock signal fails. Based on this, when it is determined that the first clock count value and the second clock count value are not cleared, it can be determined that the handshake between the first clock signal and the second clock signal fails.

在一些实施例中,如图5所示,时钟故障检测电路100还包括第一看门狗41。In some embodiments, as shown in FIG. 5 , the clock failure detection circuit 100 further includes a first watchdog 41 .

其中,第一看门狗41与第一计数器1、信号处理模块7连接,第一看门狗41用于判断第一时钟计数值是否大于第一计数器1的溢出阈值;信号处理模块7还用于在第一时钟计数值大于第一计数器的溢出阈值时,确定第二时钟信号存在停振故障。也就是说,在第一时钟和第二时钟均正常工作的情况下握手结果信号正常,第一计数器1和第二计数器2均可以完成清零动作,进而第一时钟计数值也就不可能会出现超出溢出阈值的情况,然而,参考图2所示,在第二时钟信号存在停振故障时则会导致握手结果信号异常,而且此时第二计数器2也不会有时钟计数值,同时第一计数器1也不会执行清零动作,因此,第一计数器1仍会继续计数直至超出溢出阈值,因此,在确定第一时钟计数值大于第一计数器的溢出阈值时,即可知晓第二时钟信号存在停振故障。Among them, the first watchdog 41 is connected to the first counter 1 and the signal processing module 7, and the first watchdog 41 is used to determine whether the first clock count value is greater than the overflow threshold of the first counter 1; the signal processing module 7 is also used to determine that the second clock signal has a stop oscillation fault when the first clock count value is greater than the overflow threshold of the first counter. That is to say, when the first clock and the second clock are working normally, the handshake result signal is normal, the first counter 1 and the second counter 2 can complete the zeroing action, and then the first clock count value will not exceed the overflow threshold. However, as shown in FIG2, when the second clock signal has a stop oscillation fault, the handshake result signal will be abnormal, and at this time, the second counter 2 will not have a clock count value, and the first counter 1 will not perform the zeroing action. Therefore, the first counter 1 will continue to count until it exceeds the overflow threshold. Therefore, when it is determined that the first clock count value is greater than the overflow threshold of the first counter, it can be known that the second clock signal has a stop oscillation fault.

在一些实施例中,如图5所示,时钟故障检测电路100还包括第二看门狗42。In some embodiments, as shown in FIG. 5 , the clock failure detection circuit 100 further includes a second watchdog 42 .

其中,第二看门狗42与第二计数器2、信号处理模块7连接,第二看门狗42用于判断第二时钟计数值是否大于第二计数器2的溢出阈值;信号处理模块7还用于在第二时钟计数值大于第二计数器2的溢出阈值时,确定第一时钟信号存在停振故障。也就是说,在第一时钟和第二时钟均正常工作的情况下握手结果信号正常,第一计数器1和第二计数器2均可以完成清零动作,进而第二时钟计数值也就不可能会出现超出溢出阈值的情况,然而,参考图3所示,在第一时钟信号存在停振故障时则会导致握手结果信号异常,而且此时第一计数器1也不会有时钟计数值,同时第二计数器2也不会执行清零动作,因此,第二计数器2仍会继续计数直至超出溢出阈值,因此,在确定第二时钟计数值大于第二计数器的溢出阈值时,即可知晓第一时钟信号存在停振故障。Among them, the second watchdog 42 is connected to the second counter 2 and the signal processing module 7, and the second watchdog 42 is used to determine whether the second clock count value is greater than the overflow threshold of the second counter 2; the signal processing module 7 is also used to determine that the first clock signal has a stop oscillation fault when the second clock count value is greater than the overflow threshold of the second counter 2. That is to say, when the first clock and the second clock are both working normally, the handshake result signal is normal, the first counter 1 and the second counter 2 can complete the zeroing action, and then the second clock count value will not exceed the overflow threshold. However, as shown in FIG3, when the first clock signal has a stop oscillation fault, the handshake result signal will be abnormal, and at this time, the first counter 1 will not have a clock count value, and the second counter 2 will not perform the zeroing action. Therefore, the second counter 2 will continue to count until it exceeds the overflow threshold. Therefore, when it is determined that the second clock count value is greater than the overflow threshold of the second counter, it can be known that the first clock signal has a stop oscillation fault.

在一些实施例中,时钟故障检测电路还包括:第一锁存模块和第一比较模块。In some embodiments, the clock failure detection circuit further includes: a first latch module and a first comparison module.

其中,第一锁存模块与第一计时器、第一握手单元31连接,用于响应于第一信号,锁存第一时钟计数值;第一比较模块与第一锁存模块、信号处理模块连接,用于判断第一时钟计数值是否满足第一时钟计数理论值范围,并输出第一比较结果;信号处理模块,还用于根据第一比较结果确定第二时钟计数值超出第一时钟计数理论值范围时,确定第一时钟信号存在时钟偏差故障。Among them, the first latch module is connected to the first timer and the first handshake unit 31, and is used to latch the first clock count value in response to the first signal; the first comparison module is connected to the first latch module and the signal processing module, and is used to determine whether the first clock count value meets the first clock count theoretical value range and output a first comparison result; the signal processing module is also used to determine that when the second clock count value exceeds the first clock count theoretical value range based on the first comparison result, it is determined that there is a clock deviation fault in the first clock signal.

示例性的,参考图4所示,在第一时钟的第一时钟信号频率偏低即周期变大时,则会导致第一时钟计数值超出第一时钟计数理论值范围的上限值;在第一时钟的第一时钟信号频率偏高即周期变小时,则会导致第一时钟计数值低于第一时钟计数理论值范围的下限值,基于此,为实现对时钟偏差故障的检测,第一锁存模块响应于第一信号锁存第一时钟计数值,将第一时钟计数值发送至第一比较模块,第一比较模块通过判断第一时钟计数值是否满足第一时钟计数理论值范围来输出第一比较结果至信号处理模块,信号处理模块通过第一时钟计数理论值范围来对第一时钟计数值进行判断,若确定第二时钟计数值超出第一时钟计数理论值范围时,则确定第一时钟信号存在时钟偏差故障。Exemplarily, as shown in reference Figure 4, when the frequency of the first clock signal of the first clock is low, that is, the period becomes larger, it will cause the first clock count value to exceed the upper limit value of the first clock count theoretical value range; when the frequency of the first clock signal of the first clock is high, that is, the period becomes smaller, it will cause the first clock count value to be lower than the lower limit value of the first clock count theoretical value range. Based on this, in order to detect the clock deviation fault, the first latch module latches the first clock count value in response to the first signal, and sends the first clock count value to the first comparison module. The first comparison module outputs the first comparison result to the signal processing module by judging whether the first clock count value meets the first clock count theoretical value range. The signal processing module judges the first clock count value through the first clock count theoretical value range. If it is determined that the second clock count value exceeds the first clock count theoretical value range, it is determined that the first clock signal has a clock deviation fault.

在一些实施例中,如图5所示,时钟故障检测电路还包括:第二锁存模块5和第二比较模块6。In some embodiments, as shown in FIG. 5 , the clock failure detection circuit further includes: a second latch module 5 and a second comparison module 6 .

其中,第二锁存模块5与第二计时器、第一握手单元31连接,用于响应于第一信号,锁存第二时钟计数值;第二比较模块6与第二锁存模块5、信号处理模块7连接,用于判断第二时钟计数值是否满足第二时钟计数理论值范围,并输出第二比较结果;信号处理模块,还用于根据第二比较结果确定第二计数值超出第二时钟计数理论值范围时,确定第二时钟信号存在时钟偏差故障,若确定第二时钟计数值未超出第二时钟计数理论值范围时,则确定第二时钟信号正常。Among them, the second latch module 5 is connected to the second timer and the first handshake unit 31, and is used to latch the second clock count value in response to the first signal; the second comparison module 6 is connected to the second latch module 5 and the signal processing module 7, and is used to determine whether the second clock count value meets the second clock count theoretical value range, and output a second comparison result; the signal processing module is also used to determine that when the second count value exceeds the second clock count theoretical value range according to the second comparison result, it is determined that there is a clock deviation fault in the second clock signal; if it is determined that the second clock count value does not exceed the second clock count theoretical value range, it is determined that the second clock signal is normal.

示例性的,参考图4所示,在第二时钟的第二时钟信号频率偏低即周期变大时,则会导致第二计数值超出第二时钟计数理论值范围的上限值;在第二时钟的第二时钟信号频率偏高即周期变小时,则会导致第二计数值低于第二时钟计数理论值范围的下限值,基于此,为实现对时钟偏差故障的检测,第二锁存模块5响应于第一信号锁存第二时钟计数值,将第二时钟计数值发送至第二比较模块6,第二比较模块6通过判断第二时钟计数值是否满足第二时钟计数理论值范围来输出第二比较结果至信号处理模块,信号处理模块通过第二时钟计数理论值范围来对第二时钟计数值进行判断,若确定第二时钟计数值超出第二时钟计数理论值范围时,则确定第二时钟信号存在时钟偏差故障,若确定第二时钟计数值未超出第二时钟计数理论值范围时,则确定第二时钟信号正常。Exemplarily, as shown in reference Figure 4, when the frequency of the second clock signal of the second clock is low, that is, the period becomes longer, the second count value will exceed the upper limit of the second clock count theoretical value range; when the frequency of the second clock signal of the second clock is high, that is, the period becomes smaller, the second count value will be lower than the lower limit of the second clock count theoretical value range. Based on this, in order to detect the clock deviation fault, the second latch module 5 latches the second clock count value in response to the first signal, and sends the second clock count value to the second comparison module 6. The second comparison module 6 outputs the second comparison result to the signal processing module by judging whether the second clock count value meets the second clock count theoretical value range. The signal processing module judges the second clock count value according to the second clock count theoretical value range. If it is determined that the second clock count value exceeds the second clock count theoretical value range, it is determined that the second clock signal has a clock deviation fault. If it is determined that the second clock count value does not exceed the second clock count theoretical value range, it is determined that the second clock signal is normal.

在一些实施例中,在信号处理模块7识别出停振故障或偏差故障后,也可以将故障情况进行上报,以便于相关人员对故障问题进行相应的安全处理。In some embodiments, after the signal processing module 7 identifies a vibration stop fault or a deviation fault, the fault situation may also be reported so that relevant personnel can perform corresponding safety processing on the fault problem.

本发明第三方面实施例提供一种集成电路系统,如图6所示,集成电路系统200包括第一时钟电路10、第二时钟电路20和上述实施例的时钟故障检测电路100。A third aspect of the present invention provides an integrated circuit system. As shown in FIG6 , the integrated circuit system 200 includes a first clock circuit 10 , a second clock circuit 20 , and the clock fault detection circuit 100 of the above embodiment.

其中,时钟故障检测电路100与第一时钟电路10、第二时钟电路20连接,用于对第一时钟信号或第二时钟信号进行故障检测。The clock fault detection circuit 100 is connected to the first clock circuit 10 and the second clock circuit 20, and is used to perform fault detection on the first clock signal or the second clock signal.

根据本发明实施例的集成电路系统200,通过采用上述实施例的时钟故障检测电路100,可以实现对第一时钟信号和第二时钟信号的故障检测。The integrated circuit system 200 according to the embodiment of the present invention can implement fault detection of the first clock signal and the second clock signal by adopting the clock fault detection circuit 100 of the above embodiment.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示意性实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example.

尽管已经示出和描述了本发明的实施例,本领域的普通技术人员可以理解:在不脱离本发明的原理和宗旨的情况下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由权利要求及其等同物限定。Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

Claims (20)

1.一种时钟故障检测方法,其特征在于,包括:1. A clock failure detection method, comprising: 获取第一时钟信号和第二时钟信号;Acquire a first clock signal and a second clock signal; 对所述第一时钟信号的周期进行计数以获得第一时钟计数值,以及对所述第二时钟信号的周期进行计数以获得第二时钟计数值;Counting the period of the first clock signal to obtain a first clock count value, and counting the period of the second clock signal to obtain a second clock count value; 在所述第一时钟计数值或所述第二时钟计数值达到握手计数阈值时,控制所述第一时钟信号与所述第二时钟信号进行握手;When the first clock count value or the second clock count value reaches a handshake count threshold, controlling the first clock signal to handshake with the second clock signal; 若所述第一时钟信号与所述第二时钟信号握手失败,确定所述第一时钟信号和所述第二时钟信号中至少一个存在故障。If the handshake between the first clock signal and the second clock signal fails, it is determined that at least one of the first clock signal and the second clock signal has a fault. 2.根据权利要求1所述的时钟故障检测方法,其特征在于,控制所述第一时钟信号与所述第二时钟信号进行握手,包括:2. The clock failure detection method according to claim 1, wherein controlling the first clock signal to handshake with the second clock signal comprises: 获取所述第一时钟信号所属第一时钟域的握手信号;Obtaining a handshake signal of a first clock domain to which the first clock signal belongs; 将所述握手信号同步至所述第二时钟信号所属的第二时钟域,并产生第一信号;Synchronize the handshake signal to a second clock domain to which the second clock signal belongs, and generate a first signal; 将所述第一信号同步至所述第一时钟域,并生成第二信号,以将所述第一时钟计数值和所述第二时钟计数值进行清零。The first signal is synchronized to the first clock domain, and a second signal is generated to clear the first clock count value and the second clock count value to zero. 3.根据权利要求2所述的时钟故障检测方法,其特征在于,若所述第一时钟信号与所述第二时钟信号握手失败,则确定所述第一时钟信号和所述第二时钟信号中至少一个存在故障,包括:3. The clock fault detection method according to claim 2, wherein if the handshake between the first clock signal and the second clock signal fails, determining that at least one of the first clock signal and the second clock signal has a fault comprises: 若所述第一时钟计数值和所述第二时钟计数值未清零,则所述第一时钟信号和所述第二时钟信号握手失败;If the first clock count value and the second clock count value are not cleared, the handshake between the first clock signal and the second clock signal fails; 确定所述第一时钟信号和所述第二时钟信号中至少一个存在停振故障。It is determined that at least one of the first clock signal and the second clock signal has an oscillation stop fault. 4.根据权利要求3所述的时钟故障检测方法,其特征在于,利用第一计数器对所述第一时钟信号的周期进行计数以获得第一时钟计数值,以及利用第二计数器对所述第二时钟信号的周期进行计数以获得第二时钟计数值;4. The clock failure detection method according to claim 3, characterized in that a first counter is used to count the period of the first clock signal to obtain a first clock count value, and a second counter is used to count the period of the second clock signal to obtain a second clock count value; 所述第一时钟计数值和所述第二时钟计数值未清零,包括:The first clock count value and the second clock count value are not cleared to zero, including: 所述第一时钟计数值大于所述第一计数器的溢出阈值和/或所述第二时钟计数值大于所述第二计数器的溢出阈值。The first clock count value is greater than an overflow threshold of the first counter and/or the second clock count value is greater than an overflow threshold of the second counter. 5.根据权利要求4所述的时钟故障检测方法,其特征在于,所述时钟故障检测方法还包括:5. The clock failure detection method according to claim 4, characterized in that the clock failure detection method further comprises: 若所述第一时钟计数值大于第一计数器的溢出阈值,则确定所述第二时钟信号存在停振故障。If the first clock count value is greater than the overflow threshold of the first counter, it is determined that the second clock signal has an oscillation stop fault. 6.根据权利要求4所述的时钟故障检测方法,其特征在于,所述时钟故障检测方法还包括:6. The clock failure detection method according to claim 4, characterized in that the clock failure detection method further comprises: 若所述第二时钟计数值大于第二计数器的溢出阈值,则确定所述第一时钟信号存在停振故障。If the second clock count value is greater than the overflow threshold of the second counter, it is determined that the first clock signal has an oscillation stop fault. 7.根据权利要求2所述的时钟故障检测方法,其特征在于,所述时钟故障检测方法还包括:7. The clock failure detection method according to claim 2, characterized in that the clock failure detection method further comprises: 获取第一时钟计数理论值范围;Obtaining a first clock count theoretical value range; 响应于所述第一信号,锁存所述第一时钟计数值;In response to the first signal, latching the first clock count value; 若所述第一时钟计数值超出所述第一时钟计数理论值范围,则确定所述第一时钟信号存在时钟偏差故障。If the first clock count value exceeds the first clock count theoretical value range, it is determined that a clock deviation fault exists in the first clock signal. 8.根据权利要求7所述的时钟故障检测方法,其特征在于,所述第一时钟域与所述第二时钟域为不同时钟域,获取第一时钟计数理论值范围,包括:8. The clock fault detection method according to claim 7, wherein the first clock domain and the second clock domain are different clock domains, and obtaining the theoretical value range of the first clock count comprises: 获取所述第一时钟信号对应的第一时钟周期和所述第二时钟信号对应的第二时钟周期;Obtaining a first clock cycle corresponding to the first clock signal and a second clock cycle corresponding to the second clock signal; 根据所述握手计数阈值、所述第一时钟周期、所述第二时钟周期、所述第一时钟信号对应的第一允许计数偏差值、所述第二时钟信号对应的第二允许计数偏差值和跨时域偏差范围的上限值获得所述第一时钟计数理论值范围的上限值;Obtaining an upper limit value of the first clock count theoretical value range according to the handshake count threshold, the first clock cycle, the second clock cycle, a first allowable count deviation value corresponding to the first clock signal, a second allowable count deviation value corresponding to the second clock signal, and an upper limit value of the cross-time domain deviation range; 根据所述握手计数阈值、所述第一时钟周期、所述第二时钟周期、所述第一时钟信号对应的第一允许计数偏差值、所述第二时钟信号对应的第二允许计数偏差值和跨时域偏差范围的下限值获得所述第一时钟计数理论值范围的下限值。The lower limit value of the first clock count theoretical value range is obtained according to the handshake count threshold, the first clock cycle, the second clock cycle, the first allowable count deviation value corresponding to the first clock signal, the second allowable count deviation value corresponding to the second clock signal and the lower limit value of the cross-time domain deviation range. 9.根据权利要求2所述的时钟故障检测方法,其特征在于,所述时钟故障检测方法还包括:9. The clock failure detection method according to claim 2, characterized in that the clock failure detection method further comprises: 获取第二时钟计数理论值范围;Obtaining a second clock counting theoretical value range; 响应于所述第一信号,锁存所述第二时钟计数值;In response to the first signal, latching the second clock count value; 若所述第二时钟计数值超出所述第二时钟计数理论值范围,则确定所述第二时钟信号存在时钟偏差故障。If the second clock count value exceeds the second clock count theoretical value range, it is determined that a clock deviation fault exists in the second clock signal. 10.根据权利要求9所述的时钟故障检测方法,其特征在于,所述第一时钟域与所述第二时钟域为不同时钟域,获取第二时钟计数理论值范围,包括:10. The clock fault detection method according to claim 9, wherein the first clock domain and the second clock domain are different clock domains, and obtaining the second clock count theoretical value range comprises: 获取所述第一时钟信号对应的第一时钟周期和所述第二时钟信号对应的第二时钟周期;Obtaining a first clock cycle corresponding to the first clock signal and a second clock cycle corresponding to the second clock signal; 根据所述握手计数阈值、所述第一时钟周期、所述第二时钟周期、所述第一时钟信号对应的第一允许计数偏差值、所述第二时钟信号对应的第二允许计数偏差值和跨时域偏差范围的上限值获得所述第二时钟计数理论值范围的上限值;Obtaining an upper limit value of the second clock count theoretical value range according to the handshake count threshold, the first clock cycle, the second clock cycle, a first allowable count deviation value corresponding to the first clock signal, a second allowable count deviation value corresponding to the second clock signal, and an upper limit value of the cross-time domain deviation range; 根据所述握手计数阈值、所述第一时钟周期、所述第二时钟周期、所述第一时钟信号对应的第一允许计数偏差值、所述第二时钟信号对应的第二允许计数偏差值和跨时域偏差范围的下限值获得所述第二时钟计数理论值范围的下限值。The lower limit value of the second clock count theoretical value range is obtained according to the handshake count threshold, the first clock cycle, the second clock cycle, the first allowable count deviation value corresponding to the first clock signal, the second allowable count deviation value corresponding to the second clock signal and the lower limit value of the cross-time domain deviation range. 11.根据权利要求8或10所述的时钟故障检测方法,其特征在于,11. The clock failure detection method according to claim 8 or 10, characterized in that: 所述第一时钟计数理论值范围或所述第二时钟计数理论值范围的上限值通过以下公式获得:The upper limit value of the first clock count theoretical value range or the second clock count theoretical value range is obtained by the following formula: ρ1=3*Tdetected ρ1=3*T detected 其中,ρ1为跨时域偏差范围的上限值,MAX为第一时钟计数理论值范围或所述第二时钟计数理论值范围的上限值,Nref为握手计数阈值,Tref为第一时钟周期,Tdetected为第二时钟周期,pref%为第一允许计数偏差值,pdetected%为第二允许计数偏差值。Among them, ρ1 is the upper limit value of the cross-time domain deviation range, MAX is the upper limit value of the first clock count theoretical value range or the second clock count theoretical value range, N ref is the handshake count threshold, T ref is the first clock cycle, T detected is the second clock cycle, p ref % is the first allowable count deviation value, and p detected % is the second allowable count deviation value. 12.根据权利要求11所述的时钟故障检测方法,其特征在于,所述第一时钟计数理论值范围的下限值通过以下公式获得:12. The clock failure detection method according to claim 11, characterized in that the lower limit of the first clock count theoretical value range is obtained by the following formula: ρ2=2*Tdetected ρ2=2*T detected 其中,ρ2为跨时域偏差范围的上限值,MIN为第一时钟计数理论值范围或所述第二时钟计数理论值范围的下限值。Among them, ρ2 is the upper limit value of the cross-time domain deviation range, and MIN is the lower limit value of the first clock count theoretical value range or the second clock count theoretical value range. 13.一种时钟故障检测电路,其特征在于,包括:13. A clock failure detection circuit, comprising: 第一计数器,所述第一计数器用于对第一时钟信号的周期进行计数以获得第一时钟计数值;a first counter, the first counter being used to count a period of a first clock signal to obtain a first clock count value; 第二计数器,所述第二计数器用于对第二时钟信号的周期进行计数以获得第二时钟计数值;a second counter, the second counter being used to count a period of the second clock signal to obtain a second clock count value; 握手模块,所述握手模块与所述第一计数器、所述第二计数器连接,所述握手模块用于在所述第一时钟计数值或所述第二时钟计数值达到握手计数阈值时,控制所述第一时钟信号与所述第二时钟信号进行握手;A handshake module, the handshake module is connected to the first counter and the second counter, and the handshake module is used to control the first clock signal to handshake with the second clock signal when the first clock count value or the second clock count value reaches a handshake count threshold; 信号处理模块,用于在所述第一时钟信号与所述第二时钟信号握手失败时,确定所述第一时钟信号和所述第二时钟信号中至少一个存在故障。The signal processing module is used to determine that at least one of the first clock signal and the second clock signal has a fault when the handshake between the first clock signal and the second clock signal fails. 14.根据权利要求13所述的时钟故障检测电路,其特征在于,14. The clock failure detection circuit according to claim 13, characterized in that: 所述第一计数器,还用于在所述第一时钟计数值达到握手计数阈值时输出握手信号;The first counter is further configured to output a handshake signal when the first clock count value reaches a handshake count threshold; 所述握手模块包括:The handshake module comprises: 第一握手单元,所述第一握手单元与所述第一计数器连接,所述第一握手单元用于获取所述第一时钟信号所属第一时钟域的握手信号,并将所述握手信号同步至所述第二时钟信号所属的第二时钟域,并产生第一信号;a first handshake unit, wherein the first handshake unit is connected to the first counter, and is used to obtain a handshake signal of a first clock domain to which the first clock signal belongs, synchronize the handshake signal to a second clock domain to which the second clock signal belongs, and generate a first signal; 第二握手单元,所述第二握手单元与所述第一握手单元、所述第一计数器、所述第二计数器连接,所述第二握手单元用于将所述第一信号同步至所述第一时钟域,并生成第二信号,以将所述第一时钟计数值和所述第二时钟计数值进行清零。A second handshake unit, wherein the second handshake unit is connected to the first handshake unit, the first counter, and the second counter, and the second handshake unit is used to synchronize the first signal to the first clock domain and generate a second signal to clear the first clock count value and the second clock count value. 15.根据权利要求14所述的时钟故障检测电路,其特征在于,所述信号处理模块具体用于若所述第一时钟计数值和所述第二时钟计数值未清零,则所述第一时钟信号和所述第二时钟信号握手失败,则确定所述第一时钟信号和所述第二时钟信号中至少一个存在停振故障。15. The clock fault detection circuit according to claim 14 is characterized in that the signal processing module is specifically used to determine that at least one of the first clock signal and the second clock signal has an oscillation stop fault if the first clock count value and the second clock count value are not cleared to zero and the handshake between the first clock signal and the second clock signal fails. 16.根据权利要求15所述的时钟故障检测电路,其特征在于,还包括:16. The clock failure detection circuit according to claim 15, further comprising: 第一看门狗,所述第一看门狗与所述第一计数器、所述信号处理模块连接,所述第一看门狗用于判断所述第一时钟计数值是否大于所述第一计数器的溢出阈值;a first watchdog, the first watchdog being connected to the first counter and the signal processing module, and the first watchdog being used to determine whether the first clock count value is greater than an overflow threshold of the first counter; 所述信号处理模块,还用于在所述第一时钟计数值大于所述第一计数器的溢出阈值时,确定所述第二时钟信号存在停振故障。The signal processing module is further configured to determine that the second clock signal has an oscillation stop fault when the first clock count value is greater than an overflow threshold of the first counter. 17.根据权利要求15所述的时钟故障检测电路,其特征在于,还包括:17. The clock failure detection circuit according to claim 15, further comprising: 第二看门狗,所述第二看门狗与所述第二计数器、所述信号处理模块连接,所述第二看门狗用于判断所述第二时钟计数值是否大于所述第二计数器的溢出阈值;a second watchdog, the second watchdog being connected to the second counter and the signal processing module, and the second watchdog being used for determining whether the second clock count value is greater than an overflow threshold of the second counter; 所述信号处理模块,还用于在所述第二时钟计数值大于所述第二计数器的溢出阈值时,确定所述第一时钟信号存在停振故障。The signal processing module is further configured to determine that the first clock signal has an oscillation stop fault when the second clock count value is greater than an overflow threshold of the second counter. 18.根据权利要求14所述的时钟故障检测电路,其特征在于,还包括:18. The clock failure detection circuit according to claim 14, further comprising: 第一锁存模块,所述第一锁存模块与所述第一计时器、所述第一握手单元连接,用于响应于所述第一信号,锁存所述第一时钟计数值;A first latch module, connected to the first timer and the first handshake unit, and configured to latch the first clock count value in response to the first signal; 第一比较模块,所述第一比较模块与所述第一锁存模块、所述信号处理模块连接,用于判断所述第一时钟计数值是否满足第一时钟计数理论值范围,并输出第一比较结果;a first comparison module, the first comparison module being connected to the first latch module and the signal processing module, and being used for judging whether the first clock count value satisfies a first clock count theoretical value range, and outputting a first comparison result; 所述信号处理模块,还用于根据所述第一比较结果确定所述第二时钟计数值超出所述第一时钟计数理论值范围时,确定所述第一时钟信号存在时钟偏差故障。The signal processing module is further used to determine that a clock deviation fault exists in the first clock signal when it is determined according to the first comparison result that the second clock count value exceeds the first clock count theoretical value range. 19.根据权利要求14所述的时钟故障检测电路,其特征在于,还包括:19. The clock failure detection circuit according to claim 14, further comprising: 第二锁存模块,所述第二锁存模块与所述第二计时器、所述第一握手单元连接,用于响应于所述第一信号,锁存所述第二时钟计数值;A second latch module, the second latch module is connected to the second timer and the first handshake unit, and is used for latching the second clock count value in response to the first signal; 第二比较模块,所述第二比较模块与所述第二锁存模块、所述信号处理模块连接,用于判断所述第二时钟计数值是否满足第二时钟计数理论值范围,并输出第二比较结果;a second comparison module, the second comparison module being connected to the second latch module and the signal processing module, and being used for judging whether the second clock count value satisfies a second clock count theoretical value range, and outputting a second comparison result; 所述信号处理模块,还用于根据所述第二比较结果确定所述第二计数值超出所述第二时钟计数理论值范围时,确定所述第二时钟信号存在时钟偏差故障。The signal processing module is further configured to determine that a clock deviation fault exists in the second clock signal when it is determined according to the second comparison result that the second count value exceeds a second clock count theoretical value range. 20.一种集成电路系统,其特征在于,包括:20. An integrated circuit system, comprising: 第一时钟电路,用于产生第一时钟信号;A first clock circuit, used to generate a first clock signal; 第二时钟电路,用于产生第二时钟信号;A second clock circuit, used for generating a second clock signal; 权利要求13-20任一项所述的时钟故障检测电路,所述时钟故障检测电路与所述第一时钟电路、所述第二时钟电路连接,用于对所述第一时钟信号或所述第二时钟信号进行故障检测。The clock fault detection circuit according to any one of claims 13 to 20, wherein the clock fault detection circuit is connected to the first clock circuit and the second clock circuit, and is used to perform fault detection on the first clock signal or the second clock signal.
CN202310481473.7A 2023-04-27 2023-04-27 Clock fault detection method, clock fault detection circuit and integrated circuit system Pending CN118897182A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310481473.7A CN118897182A (en) 2023-04-27 2023-04-27 Clock fault detection method, clock fault detection circuit and integrated circuit system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310481473.7A CN118897182A (en) 2023-04-27 2023-04-27 Clock fault detection method, clock fault detection circuit and integrated circuit system

Publications (1)

Publication Number Publication Date
CN118897182A true CN118897182A (en) 2024-11-05

Family

ID=93268102

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310481473.7A Pending CN118897182A (en) 2023-04-27 2023-04-27 Clock fault detection method, clock fault detection circuit and integrated circuit system

Country Status (1)

Country Link
CN (1) CN118897182A (en)

Similar Documents

Publication Publication Date Title
CN101425115B (en) High-frequency clock detection circuit
US7107484B2 (en) Fault-tolerant computer system, re-synchronization method thereof and re-synchronization program thereof
US7924061B2 (en) Apparatus for detecting clock failure and method therefor
US7594150B2 (en) Fault-tolerant architecture of flip-flops for transient pulses and signal delays
US7853844B2 (en) Semiconductor integrated circuit system, semiconductor integrated circuit, operating system, and control method for semiconductor integrated circuit
US6545508B2 (en) Detection of clock signal period abnormalities
JP2008042367A (en) Semiconductor device
EP2580864B1 (en) Integrated circuit device, electronic device and method for detecting timing violations within a clock
CN118897182A (en) Clock fault detection method, clock fault detection circuit and integrated circuit system
CN114064332B (en) Clock detection method, device and clock security system
JP5107080B2 (en) Semiconductor device
JP4962497B2 (en) Clock monitoring circuit, information processing apparatus, and clock monitoring method
TWI834322B (en) Comparator testing circuit and testing method thereof
JP5171379B2 (en) Frequency abnormality detection circuit
US8994416B2 (en) Adaptive multi-stage slack borrowing for high performance error resilient computing
CN217689895U (en) Clock oscillation stop detection circuit and SOC chip
US20250007460A1 (en) External crystal oscillator cycle duration and variation tracking
TWI421701B (en) Computer system
US11487600B2 (en) Electronic circuit
US20030098720A1 (en) Lock detect indicator for a phase locked loop
KR20250087092A (en) System and method for error detection applicable to RTL module
CN120065847A (en) Method and system for synchronizing three machines
Steininger Error containment in the presence of metastability
JPH0481936A (en) Synchronization control system between plural cpus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination