Method, device and apparatus for monitoring clock network in integrated circuit
By selectively monitoring clock frequency states and detecting clock operation states in clock networks, the method reduces on-chip resource consumption while maintaining effective monitoring of integrated circuit clock networks.
Patent Information
- Application Number
- JP2025013182
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-02-07
- Filing Date
- 2025-01-29
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2045-01-29
AI Technical Summary
Existing methods for monitoring clock networks in integrated circuits consume a large amount of on-chip resources, leading to high resource consumption.
A method and device for monitoring clock networks that selectively monitor the clock frequency state of some clock nodes and detect the clock operation state of others, using a processing module to determine the overall clock network operation state.
This approach reduces resource consumption by using fewer on-chip resources for clock monitoring while still enabling full-range monitoring of clock network clocks, thereby addressing the issue of high resource consumption in existing monitoring methods.
Smart Images

Figure 2025061946000001_ABST
Abstract
Description
[Technical field]
[0001] This application relates to semiconductor technology, and more particularly to a method, apparatus and device for monitoring a clock network in an integrated circuit. [Background technology]
[0002] In order to improve the operation efficiency of integrated circuits such as chips in terminal devices such as in-vehicle terminals and mobile phone terminals, the clock in the integrated circuit generally adopts a mesh structure and can be called a clock network. The clock network can include multiple clock nodes and is used to provide clocks to each circuit module and each on-chip clock controller (abbreviated as OCC) in the integrated circuit. In order to ensure the functional safety of the integrated circuit, it is very important to monitor each clock node of the clock network. In related technologies, global monitoring of the clock network is generally achieved by monitoring the clock frequency of each clock node in the clock network, but such a global monitoring method requires the consumption of a large amount of on-chip resources. Summary of the Invention [Problem to be solved by the invention]
[0003] In order to solve the above problems such as high resource consumption of clock monitoring, the embodiments of the present disclosure provide a method, apparatus and device for monitoring a clock network in an integrated circuit, so as to effectively reduce the resource consumption of clock monitoring. [Means for solving the problem]
[0004] A first aspect of the present disclosure provides a method for monitoring a clock network in an integrated circuit, the method for monitoring a clock network in an integrated circuit comprising the steps of monitoring a clock frequency state of a first clock node in a clock network in the integrated circuit, detecting a clock operating state of a second clock node in the clock network, and determining an operating state of the clock network based on the clock frequency state of the first clock node and the clock operating state of the second clock node.
[0005] A second aspect of the present disclosure provides a clock network monitoring device in an integrated circuit, the clock network monitoring device in the integrated circuit including a clock frequency monitoring module for monitoring a clock frequency state of a first clock node in a clock network in the integrated circuit, a clock operation detection module for detecting a clock operation state of a second clock node in the clock network, and a processing module connected to the clock frequency monitoring module and the clock operation detection module, respectively, for determining an operation state of the clock network based on the clock frequency state of the first clock node and the clock operation state of the second clock node.
[0006] A third aspect of the present disclosure provides a computer-readable storage medium having stored thereon a computer program for performing a method according to any of the above embodiments of the present disclosure.
[0007] A fourth aspect of the present disclosure provides an electronic device, the electronic device comprising a processor and a memory for storing instructions executable by the processor, the processor being adapted to read and execute the executable instructions from the memory to implement a method according to any of the above embodiments of the present disclosure, or the electronic device comprising an apparatus according to any of the above embodiments of the present disclosure. Effect of the Invention
[0008] According to the method, device and equipment for monitoring a clock network in an integrated circuit provided in the above embodiment of the present disclosure, the clock frequency state of a first clock node in a clock network in an integrated circuit can be monitored, the clock operating state of a second clock node in the clock network can be detected, and the operating state of the clock network can be determined based on the clock frequency state of the first clock node and the clock operating state of the second clock node. The method of the embodiment of the present disclosure can monitor the clock frequency state of only some clock nodes (e.g., one or more first clock nodes) in the clock network, and detect the clock operating state of the other clock nodes, where the clock operating state indicates whether the clock node flips normally or not. Compared with the monitoring of the clock frequency state, the detection of the clock operating state can be realized with fewer on-chip resources, so the method of the embodiment of the present disclosure can effectively reduce the resource consumption of clock monitoring in supporting the global monitoring of the clocks of the clock network, and contribute to solving the problem of large resource consumption of the global monitoring method in the related art. [Brief description of the drawings]
[0009] [Figure 1] 1 is a diagram illustrating an example of a usage scenario of a method for monitoring a clock network in an integrated circuit provided in the present disclosure. [Diagram 2] 1 is a flowchart of a method for monitoring a clock network in an integrated circuit provided in an exemplary embodiment of the present disclosure. [Diagram 3] 11 is a flowchart of a method for monitoring a clock network in an integrated circuit provided in another exemplary embodiment of the present disclosure. [Figure 4] 11 is a flowchart of a method for monitoring a clock network in an integrated circuit provided in yet another exemplary embodiment of the present disclosure. [Diagram 5] 4 is a flowchart of detecting a clock operation state provided in an exemplary embodiment of the present disclosure. [Figure 6] 1 is a structural schematic diagram of a clock network monitoring device in an integrated circuit provided in an exemplary embodiment of the present disclosure; [Figure 7] FIG. 2 is a structural schematic diagram of a clock network monitoring device in an integrated circuit provided in another exemplary embodiment of the present disclosure. [Figure 8] FIG. 11 is a structural schematic diagram of a clock network monitoring device in an integrated circuit provided in yet another exemplary embodiment of the present disclosure. [Figure 9] FIG. 2 is a structural schematic diagram of an exemplary embodiment of a clock network monitoring device in an integrated circuit provided in an exemplary embodiment of the present disclosure; [Figure 10] 2 is a structural schematic diagram of an exemplary embodiment of a clock operation detection module 52 provided in an exemplary embodiment of the present disclosure. [Figure 11] FIG. 2 is a structural diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] In order to explain the present disclosure, exemplary embodiments of the present disclosure will be described in detail below with reference to the drawings. Obviously, it should be understood that the described embodiments are merely some embodiments of the present disclosure, not all embodiments, and the present disclosure is not limited to the exemplary embodiments.
[0011] Unless otherwise specified, the relative arrangements of components and steps, formulas, and numerical values described in these embodiments do not limit the scope of the present disclosure.
[0012] Summary of the Disclosure In the process of realizing the present disclosure, the inventors have discovered the following. In order to improve the operating efficiency of an integrated circuit such as a chip in a terminal device such as an in-vehicle terminal or a mobile phone terminal, the clock in the integrated circuit generally adopts a mesh structure and can be called a clock network. The clock network can include multiple clock nodes and is used to provide clocks to each circuit module and each on-chip clock controller (abbreviated as OCC) in the integrated circuit. In order to ensure the functional safety of the integrated circuit, it is very important to monitor each clock node of the clock network. In the related art, the clock frequency of each clock node in the clock network is generally monitored to achieve global monitoring of the clock network, but such a global monitoring method requires the consumption of a large amount of on-chip resources.
[0013] Illustrative Overview FIG. 1 is an application scene of an example of the method for monitoring a clock network in an integrated circuit provided in the present disclosure. As shown in FIG. 1, the clock network may include multiple clock nodes, and DIV stands for clock division, which is used to convert a high clock frequency to a low frequency for use by other circuits in the integrated circuit. The monitoring device for a clock network in an integrated circuit of the present disclosure can be used to realize the method for monitoring a clock network in an integrated circuit of the present disclosure. Specifically, the clock frequency state of a first clock node in the clock network in the integrated circuit is monitored, the clock operation state of a second clock node in the clock network is detected, and the operation state of the clock network is determined based on the clock frequency state of the first clock node and the clock operation state of the second clock node. When the operation state of the clock network is abnormal, clock abnormality information, an interrupt signal, etc. are output to allow an external module to process the clock network in a timely manner, and the operation state of the clock network is restored, thereby ensuring the normal operation of the clock network, and thereby ensuring the functional safety of the integrated circuit. The method disclosed herein can monitor the clock frequency status of only some clock nodes (e.g., one or more first clock nodes) in a clock network, and detect the clock operation status of other clock nodes, where the clock operation status indicates whether the clock node flips normally or not, but the monitoring of the clock frequency status generally needs to be realized by a highly accurate clock frequency monitoring circuit, and the specific frequency of the clock node needs to be monitored. Compared with the monitoring of the clock frequency status, the detection of the clock operation status can be realized with fewer on-chip resources, so the method of the embodiment disclosed herein can effectively reduce the resource consumption of clock monitoring in supporting the global monitoring of the clocks in the clock network, and contribute to solving the problem of large resource consumption in the global monitoring method of the related art.
[0014] Exemplary Methods 2 is a flowchart of a method for monitoring a clock network in an integrated circuit provided in an exemplary embodiment of the present disclosure. This embodiment can be specifically applied to electronic devices that require a clock network, such as an in-vehicle computing platform, a mobile phone, a computer, a server, etc. As shown in FIG. 2, the method of the embodiment of the present disclosure may include the following steps 201 to 203.
[0015] In step 201, the clock frequency status of a first clock node in a clock network in an integrated circuit is monitored.
[0016] Here, the integrated circuit may be any circuit that provides a clock using a clock network. For example, chips of various functions on an in-vehicle terminal may be included. The clock network may include a plurality of clock nodes, and the first clock node may be any clock node in the clock network, and is not specifically limited. The number of the first clock nodes may be one or more. It can be understood that the number of the first clock nodes is less than the total number of clock nodes in the clock network. For each first clock node, the clock frequency state of the first clock node can be monitored. The clock frequency state may include two states: a normal frequency and an abnormal frequency.
[0017] In some alternative embodiments, a highly accurate clock frequency monitoring circuit (also called a clock frequency monitoring module) can be used to monitor the clock frequency state of the first clock node. The clock frequency monitoring circuit can be implemented by any possible circuit configuration, for example, the clock frequency monitoring circuit may include a reference clock, a register, a counter, a comparator, etc., and the specific circuit is not limited. The clock frequency monitoring circuit can determine the clock frequency state of the first clock node based on the counting result by counting the number of reference clock periods and the number of clock periods of the first clock node within a preset time length. For example, the clock frequency monitoring circuit may calculate a ratio value between the number of reference clock periods and the number of clock periods of the first clock node, compare the ratio value with a reference value, and determine the clock frequency state of the first clock node based on the comparison result. Alternatively, the clock frequency monitoring circuit may count the number of clock periods of the first clock node within a preset time length based on a reference clock, compare the counting result with a reference number threshold, and determine the clock frequency state of the first clock node based on the comparison result. Alternatively, the clock frequency monitoring circuit may count the number of reference clock periods based on a certain time length of the first clock node, and determine the clock frequency state of the first clock node based on the counting result. The principle of determining the clock frequency state of the first clock node is mainly to determine the frequency relationship between the first clock node and the reference clock. For example, if the frequency of the reference clock is 100MHz and the frequency of the first clock node is 1GHz, during the operation of the clock network, if the clock network operates normally, the ratio value between the frequency of the reference clock and the frequency of the first clock node should be maintained or the change amount should be within the error range.
[0018] In step 202, the clock operating state of a second clock node in the clock network is detected.
[0019] Here, the second clock node may include other clock nodes in the clock network other than the first clock node. That is, each clock node in the clock network other than the first clock node may be the second clock node. For each second clock node, the clock operation state of the second clock node can be detected. The clock operation state may include a normal state and an abnormal state. The clock operation state can indicate whether the clock signal of the second clock node flips normally or not.
[0020] In some alternative embodiments, the first clock node may be the second clock node, without any specific limitation.
[0021] In some alternative embodiments, a clock operation detection circuit (also called a clock operation detection module) can detect the clock operation state of the second clock node. The clock operation detection circuit can be realized by any possible circuit structure, and the clock operation detection circuit can determine the clock operation state of the second clock node by periodically detecting the clock signal flip situation of the second clock node. For example, the clock operation detection circuit can include an edge detection logic circuit, a register, a comparator, etc., and the specific circuit structure is not limited. The edge detection logic circuit can detect an edge (which may include a rising edge and a falling edge) of a pulse signal that triggers the periodic detection, the register can record the flip state value of the second clock node within the detection period, and the comparator can compare the flip state value with a preset value, and determine the clock operation state of the second clock node based on the comparison result.
[0022] It should be noted that steps 201 and 202 may be performed in any order.
[0023] In step 203, determine an operation state of the clock network based on the clock frequency state of the first clock node and the clock operation state of the second clock node.
[0024] Here, the operating state of the clock network may include two states: normal operation and abnormal operation.
[0025] In some alternative embodiments, if at least one of the clock frequency state of the first clock node and the clock operating state of the second clock node is in an abnormal state, the operating state of the clock network can be determined to be abnormal.
[0026] In some alternative embodiments, if it is determined that the operating state of the clock network is abnormal, an abnormality signal can be output, for example, an interrupt signal can be output to a preset module in charge of abnormality processing in the integrated circuit. The preset module can be, for example, a processor (CPU), a microcontroller (MCU), etc. in the integrated circuit, so that the preset module can perform corresponding abnormality processing on the clock network in response to the interrupt, for example, control the clock network or the integrated circuit to reset, restart, etc. The specific processing manner is not limited.
[0027] The method for monitoring a clock network in an integrated circuit provided in this embodiment can monitor the clock frequency state of a first clock node in a clock network in an integrated circuit, detect the clock operation state of a second clock node in the clock network, and determine the operation state of the clock network based on the clock frequency state of the first clock node and the clock operation state of the second clock node. The method of the embodiment of the present disclosure can monitor the clock frequency state of only some clock nodes (e.g., one or more first clock nodes) in the clock network, and detect the clock operation state of other clock nodes, where the clock operation state indicates whether the clock node flips normally or not, and the clock frequency state generally needs to be realized by a high-precision clock frequency monitoring circuit, and the specific frequency of the clock node needs to be monitored. Compared with the monitoring of the clock frequency state, the detection of the clock operation state can be realized with fewer on-chip resources, so the method of the embodiment of the present disclosure can effectively reduce the resource consumption of clock monitoring in supporting the global monitoring of the clocks of the clock network, and contribute to solving the problem of the large resource consumption of the global monitoring method in the related art.
[0028] FIG. 3 is a flowchart of a method for monitoring a clock network in an integrated circuit provided in another exemplary embodiment of the present disclosure.
[0029] In some alternative embodiments, as shown in FIG. 3, monitoring the clock frequency status of a first clock node in a clock network in an integrated circuit in step 201 may include the following steps 2011 and 2012.
[0030] In step 2011, the clock frequency of the first clock node is detected according to a preset period based on a reference clock.
[0031] Here, the reference clock may be a reference clock in the clock frequency monitoring module, and the preset period (which may be called the first preset period) may be set to any period according to actual needs.
[0032] In some alternative embodiments, the clock frequency of the first clock node can be represented by counting the number of clock periods of the first clock node within a preset length of time (e.g., 1 second, 1 millisecond, 1 microsecond, etc.).
[0033] In step 2012, determine a clock frequency state of the first clock node based on a matching relationship between the clock frequency of the first clock node and the preset frequency range.
[0034] Here, the preset frequency range may be represented by a preset frequency upper limit value and a preset frequency lower limit value. For example, the preset frequency upper limit value is 1050 clock cycles, and the preset frequency lower limit value is 950 clock cycles, and the matching relationship between the clock frequency of the first clock node and the preset frequency range may include being within the preset frequency range, being smaller than the preset frequency range, and being larger than the preset frequency range. For example, if the clock frequency of the first clock node is larger than the preset frequency upper limit value, it may be determined that the clock frequency of the first clock node is larger than the preset frequency range, and it may be represented that the clock frequency of the first clock node is too large and belongs to a frequency abnormality. If the clock frequency of the first clock node is equal to or smaller than the preset frequency upper limit value and equal to or larger than the preset frequency lower limit value, it may be determined that the frequency of the first clock node is normal. If the clock frequency of the first clock node is smaller than the preset frequency lower limit value, it may be determined that the frequency of the first clock node is too slow, and it also belongs to a frequency abnormality.
[0035] In this embodiment, the clock frequency of the first clock node is periodically detected, and a specific clock frequency state of the first clock node is determined based on the matching relationship between the clock frequency of the first clock node and a preset frequency range, thereby realizing high-precision monitoring of the first clock node and contributing to ensuring the monitoring accuracy of the first clock node.
[0036] In some alternative embodiments, as shown in FIG. 3, detecting the clock running state of the second clock node in the clock network in step 202 may include the following steps 2021 and 2022.
[0037] In step 2021, a pulse signal output from a first module in the integrated circuit is detected.
[0038] Here, the first module may be any module that can generate a pulse signal in an integrated circuit. The first module can periodically output a pulse signal, and the pulse signal may be a long pulse signal, thereby ensuring that the clock operation detection module can detect the pulse signal and trigger the detection of the clock operation state of the second clock node. For example, the pulse signal may be a microsecond level, a millisecond level pulse signal, and is not specifically limited.
[0039] In some alternative embodiments, the first module may be a clock frequency monitoring module or may be some other module.
[0040] In some alternative embodiments, the first module can output a pulse signal periodically, and the output period of the pulse signal can be any period, such as 1 millisecond or other value.
[0041] In some alternative embodiments, the clock frequency monitoring module can output a pulse signal each time it completes one determination of the clock frequency state of the first clock node. For example, the clock frequency monitoring module can periodically detect the number of clock periods of the first clock node within a preset time length (e.g., 1 millisecond, 1 microsecond, etc.), thereby determining the clock frequency state of the first clock node, and output a pulse signal when the detection of the clock frequency state of the first clock node is completed, triggering the detection of the clock operation state of the second clock node. In this way, the detection of the clock operation state of the second clock node and the detection of the clock frequency state of the first clock node can be associated, for example, when the clock is turned off, it can automatically stop detecting the clock frequency state of the first clock node and further stop outputting a pulse signal to the clock operation detection module, thereby stopping the detection of the clock operation state of the second clock node, and avoiding the clock operation detection module reporting an error due to the clock signal flip not being detected by the clock operation detection module.
[0042] In step 2022, determine the clock operating state of the second clock node based on the pulse signal.
[0043] In some alternative embodiments, a flip condition of a clock signal state of a second clock node within a valid state of the pulse signal can be detected based on the pulse signal, and a clock operation state of the second clock node can be determined based on the flip condition.
[0044] In this embodiment, a first module periodically outputs a pulse signal, and triggers detection of the clock operating state of the second clock node based on the pulse signal, thereby realizing simple and effective monitoring of the second clock node, which contributes to reducing the consumption of integrated circuit resources caused by monitoring the second clock node, and thereby reducing the resource consumption of monitoring the entire clock network.
[0045] In some alternative embodiments, in Step 2022, determining the clock operating state of the second clock node based on the pulse signal includes: The method may include determining a clock flip state of the second clock node at a rising edge of the pulse signal, and determining a clock operation state of the second clock node based on the clock flip state of the second clock node at a falling edge of the pulse signal.
[0046] Here, the clock flip state may include two states: flip and non-flip, and different states can be represented by different state values, for example, 1 represents flip and 0 represents non-flip. If the clock flip state is flip, it can be determined that the clock operation state of the second clock node is a normal state, and if the clock flip state is non-flip, it can be determined that the clock operation state of the second clock node is an abnormal state.
[0047] In some alternative embodiments, when detecting a rising edge of the pulse signal, a clock signal of the second clock node is triggered to be sampled, a level state of the clock signal of the second clock node is determined, and a clock flip state of the second clock node is determined based on the level state of the clock signal of the second clock node. For example, if it is determined that the level state of the clock signal of the second clock node has changed from a low level to a high level, it is indicated that a flip has occurred, i.e., the clock flip state of the second clock node is a flip, and it is determined that the clock operation state of the second clock node is a normal state. If it is determined that the clock signal of the second clock node maintains a low level state, it is indicated that the clock signal of the second clock node does not flip, and it is determined that the clock operation state of the second clock node is an abnormal state.
[0048] In some alternative embodiments, the step of determining a clock flip state of the second clock node at a rising edge of the pulse signal may include a step of setting a value of a status register to a preset value if it is detected that the second clock node flips at the rising edge of the pulse signal, the preset value indicating that the clock flip state of the second clock node is a normal flip.
[0049] The step of determining a clock operating state of the second clock node based on a clock flip state of the second clock node at a falling edge of the pulse signal may include the steps of detecting a value of a status register at a falling edge of the pulse signal, and determining the clock operating state of the second clock node based on a correspondence between the value of the status register and a preset value.
[0050] Here, the value of the status register can be initially set to a preset reset value (or called initial value), for example, 0, and before the rising edge of the pulse signal arrives, the value of the status register is held at the reset value. If it is detected that the second clock node flips at the rising edge of the pulse signal, the value of the status register is set to a preset value, for example, 1, that is, the value of the status register flips from 0 to 1, and therefore the value of the status register being 1 can represent that the clock flip state of the second clock node is a normal flip. If it is detected that the second clock node does not flip, the value of the status register is held at the initial reset value. After the value of the status register flips to the preset value, the value of the status register is held at the preset value before the falling edge of the pulse signal arrives. By detecting the value of the status register at the falling edge of the pulse signal, the flip state of the second clock node can be determined, and the clock operation state of the second clock node is further determined. Specifically, the clock operation state of the second clock node can be determined based on the correspondence between the value of the status register and the preset value. For example, the value of the status register may be compared with a preset value, and if the value of the status register is equal to the preset value, it may be determined that the clock operating state of the second clock node is normal.
[0051] In some alternative embodiments, the rising edge of the pulse signal can be detected by rising edge detection logic. The falling edge of the pulse signal can be detected by falling edge detection logic. The comparison of the value of the status register with the preset value can be realized by a comparator.
[0052] In this embodiment, by detecting the rising edge and falling edge of the pulse signal, the flip state is recorded by the status register at the rising edge of the pulse signal, and whether the second clock node flips at the falling edge is determined. The rising edge and the falling edge can represent the effective time length for detecting whether the second clock node flips, so that if the second clock node flips within the effective time length from the rising edge to the falling edge, the status register can be flipped to a preset value, and it can be determined that the second clock node has flipped at the falling edge, so that it can be determined that the second clock node is in an operating state. If the second clock node does not flip within the effective time length of the pulse signal due to the second clock node being stuck or the frequency being too small, the value of the status register also does not flip, but is kept at an initial value, and it can be determined that the second clock node does not flip for a long time based on the value of the status register at the falling edge, so that it can be determined that the operation of the second clock node is abnormal. Therefore, the clock operating state of the second clock node can be effectively determined, which contributes to improving the validity and reliability of the clock operating state of the second clock node. Due to the effective time length of the periodic pulse signal, an abnormality in the second clock node can be discovered within a relatively short time length, so that the abnormality can be reported in a timely manner at the falling edge of the pulse signal, and the operating state of the second clock node can be restored in a timely manner.
[0053] In some alternative embodiments, after determining the clock operating state of the second clock node based on the correspondence between the value of the status register and the preset value, the method further includes a step of resetting the value of the status register in response to the clock operating state of the second clock node being a normal state.
[0054] Here, if the clock operation status of the second clock node is normal, it indicates that the second clock node is operating normally, and there is no need to output an abnormality signal, or a signal indicating normality can be output and the value of the status register can be reset, for example, by resetting the value of the status register from a preset value (e.g., 1) to an initial value (e.g., 0) so that the status register can continue to be used to detect the next clock operation status.
[0055] This embodiment contributes to making the status register available for periodic detection of the clock operating status of the second clock node by resetting the value of the status register when the clock operating status of the second clock node is normal, thereby ensuring continuous and effective monitoring of the clock network.
[0056] FIG. 4 is a flowchart of a method for monitoring a clock network in an integrated circuit provided in yet another exemplary embodiment of the present disclosure.
[0057] In some optional embodiments, as shown in FIG. 4, determining the operating state of the clock network based on the clock frequency state of the first clock node and the clock operating state of the second clock node in step 203 may include the following steps 2031 to 2033.
[0058] In step 2031, a first abnormal condition of the clock frequency state of the first clock node is determined.
[0059] Here, if the clock frequency state of any of the first clock nodes is a frequency abnormality, a first abnormal state can be determined. The first abnormal state can be expressed in any form.
[0060] In step 2032, a second abnormal condition of the clock operating condition of the second clock node is determined.
[0061] Here, if the clock operation state of any of the second clock nodes is an abnormal state, a second abnormal state can be determined.
[0062] In step 2033, it is determined that the operational state of the clock network is abnormal based on the first abnormal condition and the second abnormal condition.
[0063] Here, it can be determined that the operational state of the clock network is abnormal based on either the first abnormal state or the second abnormal state.
[0064] In some alternative embodiments, a data selector, a logical OR device, or the like may determine a first abnormal state of the clock frequency state of the first clock node and a second abnormal state of the clock operation state of the second clock node. For example, the data selector may output an abnormal signal indicating the first abnormal state when the clock frequency state of the first clock node is abnormal, and output an abnormal signal indicating the second abnormal state when the clock operation state of the second clock node is abnormal, making it easy to determine which part of the clock node in the clock network is abnormally operating. Also, for example, the logical OR device may output an abnormal signal indicating that the operation state of the clock network is abnormal when at least one of the clock frequency state of the first clock node is abnormal (i.e., frequency abnormality) and the clock operation state of the second clock node is abnormal occurs.
[0065] In this embodiment, the operation state of the clock network is determined to be abnormal based on a first abnormal state of the clock frequency state of the first clock node and a second abnormal state of the clock operation state of the second clock node. The first clock node and the second clock node can cover all nodes of the clock network. When the clock frequency state of any of the first clock nodes is a frequency abnormality, the first abnormal state can be determined, and when the clock operation state of any of the second clock nodes is in an abnormal state, the second abnormal state can be determined. Therefore, when an abnormality occurs in any clock node in the clock network, the abnormality in the clock network can be detected in a timely manner, which facilitates the timely recovery of the normal operation of the clock network, and thereby realizes global monitoring of the clock network with less resource consumption.
[0066] In some alternative embodiments, if the operational status of the clock network is determined to be abnormal, the method of the disclosed embodiment may further include resetting the clock network or the integrated circuit.
[0067] In some alternative embodiments, if the clock frequency state of the first clock node is determined to be in an abnormal state, the method of the disclosed embodiment may further include a step of re-detecting the clock frequency state of the first clock node.
[0068] In some optional embodiments, if the clock operating status of the second clock node is determined to be in an abnormal state, the method of the embodiment of the present disclosure may further include a step of detecting the clock operating status of the second clock node again.
[0069] In some alternative embodiments, FIG. 5 is a flowchart of detecting a clock operation state provided in an exemplary embodiment of the present disclosure. As shown in FIG. 5, the first module outputting a pulse signal may be a clock frequency monitoring module, and a high-precision clock frequency monitoring module can be pre-configured by software, so that the clock frequency monitoring module can monitor the clock frequency state of the first clock node and output a pulse signal periodically. The clock operation detection module can detect the occurrence of a rising edge of the pulse signal, and if the rising edge of the pulse signal does not occur, it continues to detect whether the rising edge occurs, and if the rising edge of the pulse signal occurs, it detects whether the second clock node flips. If the second clock node flips, it sets the value of a register (i.e., a status register) to a preset value (e.g., 1), and if the second clock node does not flip, the value of the register remains the original value (e.g., 0). Next, it detects whether a falling edge of the pulse signal occurs, and if a falling edge does not occur, it continues to detect, and if a falling edge occurs, it detects whether the value of the register is correct (i.e., whether it is a preset value), and if it is incorrect, it indicates that the clock operation state of this second clock node is in an abnormal state, and an error line can be set and an abnormal signal can be output. If the value of the register is correct, it indicates that the clock operation state of the second clock node is in a normal state, and the register can be reset, and the occurrence of the next rising edge of the pulse signal is waited for, thereby detecting the next clock operation state. By this analogy, high-precision monitoring of the first clock node and periodic detection of the clock operation state of the second clock node are realized. The normal operation of the clock network is ensured, and thus the functional safety of the integrated circuit is ensured.
[0070] The method of the embodiment of the present disclosure performs high-precision monitoring on one or some clock nodes based on the consistency of the clock sources of each clock node in a clock network, and when the frequency error becomes too large, it can be detected in a timely manner, and protects a large number of other clock nodes in the manner of clock running state detection, and ensures that these clock nodes will be detected in a timely manner when they hang up (or are called stuck) or have a too low frequency with the lowest resource consumption, thereby effectively reducing the resource consumption of monitoring while ensuring global monitoring of the clock network.
[0071] Each of the above embodiments of the present disclosure may be implemented alone, or may be implemented in any combination manner if there is no contradiction, and specifically may be set according to actual needs, and the present disclosure is not limited thereto.
[0072] Any of the methods for monitoring a clock network in an integrated circuit provided in the embodiments of the present disclosure may be executed by any suitable device having data processing capability, including, but not limited to, a terminal device and a server. Alternatively, any of the methods for monitoring a clock network in an integrated circuit provided in the embodiments of the present disclosure may be executed by a processor, for example, the processor executes any of the methods for monitoring a clock network in an integrated circuit mentioned in the embodiments of the present disclosure by calling corresponding instructions stored in a memory. Hereinafter, the description will be omitted.
[0073] Exemplary Apparatus 6 is a structural schematic diagram of a clock network monitoring device in an integrated circuit provided in an exemplary embodiment of the present disclosure. The device in this embodiment can be used to realize an embodiment of the method corresponding to the present disclosure. The device shown in FIG. 6 may include a clock frequency monitoring module 51, a clock activity detection module 52 and a processing module 53.
[0074] The clock frequency monitoring module 51 is used to monitor the clock frequency status of a first clock node in a clock network in an integrated circuit.
[0075] The clock operation detection module 52 is used for detecting the clock operation state of a second clock node in the clock network.
[0076] The processing module 53 is respectively connected to the clock frequency monitoring module 51 and the clock operation detection module 52, and is used to determine the operation state of the clock network based on the clock frequency state of the first clock node and the clock operation state of the second clock node.
[0077] Here, the specific functions of each of the above modules can be referred to in the corresponding method embodiments described above, and the description thereof will be omitted here.
[0078] In some alternative embodiments, each of the above modules can be realized by software, hardware, a combination of software and hardware, etc., and are not specifically limited. In order to ensure the real-time nature of the clock network monitoring, each of the above modules can be realized by hardware. For example, the clock frequency monitoring module 51 may be realized by a high-precision clock frequency monitoring circuit (e.g., the above-mentioned reference clock, counter, register, comparator, etc.). The clock operation detection module 52 may be realized by a simple and effective clock operation detection circuit (e.g., the above-mentioned edge detection logic circuit, register, comparator, etc.). The processing module 53 may be realized by a processing logic circuit (e.g., the above-mentioned data selector and OR device, etc.).
[0079] In some alternative embodiments, depending on the number of first clock nodes, the device of the embodiment of the present disclosure may include one or more clock frequency monitoring modules 51. Each first clock node may be connected to one corresponding clock frequency monitoring module 51. The first clock nodes may have a one-to-one correspondence with the clock frequency monitoring module 51. Similarly, depending on the number of second clock nodes, the device of the embodiment of the present disclosure may include a clock operation detection module 52 corresponding to each second clock node, thereby realizing global monitoring of the clock nodes of the clock network in the integrated circuit.
[0080] In some alternative embodiments, the clock frequency monitoring module 51 may include a monitoring unit corresponding to each first clock node, thereby realizing monitoring of the clock frequency state of each first clock node, and the clock operation detection module 52 may include a detection unit corresponding to each second clock node, thereby realizing monitoring of the clock operation state of each second clock node.
[0081] FIG. 7 is a structural schematic diagram of a clock network monitoring device in an integrated circuit provided in another exemplary embodiment of the present disclosure.
[0082] In some alternative embodiments, as shown in FIG. 7, the clock frequency monitoring module 51 may include a clock frequency detection unit 511 and a clock frequency status determination unit 512.
[0083] The clock frequency detection unit 511 can be used to detect the clock frequency of the first clock node according to a preset period based on a reference clock.
[0084] In some alternative embodiments, the clock frequency detection unit 511 may include a reference clock, a counter, a register, and the like.
[0085] The clock frequency state determination unit 512 is respectively connected to the clock frequency detection unit 511 and the processing module 53, and the clock frequency state determination unit 512 can be used to determine the clock frequency state of the first clock node based on the matching relationship between the clock frequency of the first clock node and the preset frequency range.
[0086] The clock frequency state determination unit 512 may further be used for outputting a frequency anomaly signal to the processing module 53 in response to determining that the clock frequency state of the first clock node is a frequency anomaly.
[0087] In some alternative embodiments, the clock frequency state determination unit 512 may include a comparator to realize a comparison between the clock frequency of the first clock node and a boundary value of a preset frequency range.
[0088] In some alternative embodiments, as shown in FIG. 7, the clock operation detection module 52 may include a pulse signal detection unit 521 and a clock operation state determination unit 522.
[0089] The pulse signal detection unit 521 can be connected to a first module that generates a pulse signal, and the pulse signal detection unit 521 can be used to detect the pulse signal output from the first module.
[0090] In some alternative embodiments, the pulse signal detection unit 521 may include an edge detection logic circuit used to detect an active pulse of the pulse signal. The edge detection logic circuit may be realized by any feasible circuit configuration. For example, the edge detection logic circuit may include a two-stage flip-flop, an inverter, a logical AND device, etc., and the specific circuit structure is not limited.
[0091] The clock running state determining unit 522 can be connected to the pulse signal detecting unit 521, and the clock running state determining unit 522 can be used to determine the clock running state of the second clock node based on the pulse signal.
[0092] In some alternative embodiments, the clock operating state determination unit 522 samples a signal flip state of the clock of the second clock node within a valid pulse period of the pulse signal based on the pulse signal, thereby determining the clock operating state of the second clock node based on the flip state.
[0093] FIG. 8 is a structural schematic diagram of a clock network monitoring device in an integrated circuit provided in yet another exemplary embodiment of the present disclosure.
[0094] In some alternative embodiments, as shown in FIG. 8, the pulse signal detection unit 521 may include a rising edge detection circuit 5211 and a falling edge detection circuit 5212.
[0095] The rising edge detection circuit 5211 is respectively connected to the first module and the clock running state determination unit 522, and the rising edge detection circuit 5211 can be used to output a first trigger signal to the clock running state determination unit 522 at the rising edge of the pulse signal.
[0096] Here, the first trigger signal may be a high-level signal, and after detecting the rising edge of the pulse signal, the rising detection circuit 5211 outputs a high-level first trigger signal to the clock running state determination unit 522, thereby triggering the clock running state determination unit 522 to sample the flip state of the clock signal of the second clock node.
[0097] The falling edge detection circuit 5212 can be respectively connected to the first module and the clock running state determination unit 522, and the falling edge detection circuit 5212 can be used to output a second trigger signal to the clock running state determination unit 522 at the falling edge of the pulse signal.
[0098] Here, the second trigger signal may be a high-level signal, and the falling edge detection circuit 5212 outputs a high-level second trigger signal to the clock operating state determination unit 522 when detecting the falling edge of the pulse signal.
[0099] The clock running state determination unit 522 may be used to determine a clock flip state of the second clock node in response to the first trigger signal.
[0100] Here, the clock operating state determination unit 522 samples the flip state of the clock signal of the second clock node by the trigger of the first trigger signal, and can determine that the flip state of the clock signal of the second clock node is flip when the clock signal of the second clock node flips, otherwise it is non-flip.
[0101] The clock running state determination unit 522 may further be used for determining, in response to the second trigger signal, a clock running state of the second clock node based on the clock flip state of the second clock node.
[0102] Here, the clock running state determination unit 522 is triggered by the second trigger signal to determine the clock running state of the second clock node according to the clock flip state of the second clock node, and if a flip occurs, it determines that the clock running state of the second clock node is a normal state, otherwise it determines that the clock running state is an abnormal state.
[0103] In some alternative embodiments, the clock operating state determination unit 522 may include a state register 5221 and a state detection circuit 5222 .
[0104] The state register 5221 can be connected to the rising edge detection circuit 5211 and the second clock node, and the state register 5221 can be used to flip the value of the state register to a preset value in response to the first trigger signal when the second clock node flips.
[0105] Here, a flip of the second clock node means that the level state of the clock signal of the second clock node changes; for example, the clock signal of the second clock node flips from a low level to a high level.
[0106] In some alternative embodiments, the first trigger signal and the clock signal are inputs to a state register, and when the first trigger signal is at a high level, the clock signal flips from a low level to a high level, triggering the value of the state register to flip from an initial value of 0 to a preset value of 1.
[0107] The state detection circuit 5222 can be respectively connected to the falling edge detection circuit 5212, the state register 5221 and the processing module 53, and the state detection circuit 5222 can be used to respond to a second trigger signal, detect the value of the state register 5221, and determine the clock operating state of the second clock node based on the correspondence between the value of the state register 5221 and the preset value.
[0108] The status detection circuit 5222 may further be used to output an operation status abnormal signal to the processing module 53 in response to determining that the clock operation status of the second clock node is in an abnormal state.
[0109] In some alternative embodiments, the state detection circuit 5222 may include a comparator and a reference register, the output of the falling edge detection circuit 5212 is the operation enable input of the comparator, the state register 5221 is connected to one input end of the comparator, the reference register stores a preset value and is connected to the other input end of the comparator, and the comparator operates in response to a second trigger signal, compares the value of the state register 5221 with the preset value of the reference register, and outputs the clock operation state of the second clock node based on the comparison result, for example, outputting 0 to indicate abnormality and outputting 1 to indicate normality, or outputting 0 to indicate normality and outputting 1 to indicate abnormality.
[0110] In some alternative embodiments, as shown in FIG. 8, the clock operating state determination unit 522 may further include a reset circuit 5223.
[0111] The reset circuit 5223 can be connected to the state detection circuit 5222 and the state register 5221, respectively, and the reset circuit 5223 can be used to reset the value of the state register 5221 in response to determining that the clock operating state of the second clock node is normal.
[0112] Here, the reset circuit 5223 can be realized using any operable logic circuit. When the reset circuit 5223 determines that the clock operation state of the second clock node is normal, it can output a reset signal (also called a reconfiguration signal) to the state register 5221 and control the state register 5221 to reset. For example, the output end of the reset circuit 5223 is connected to a reconfiguration pin of the state register 5221 and outputs a reconfiguration signal to the state register 5221 via the reconfiguration pin, and after receiving the reconfiguration signal, the state register 5221 clears its internal value and returns to its initial value. The specific reset method is not limited to the above method.
[0113] In some alternative embodiments, as shown in FIG. 7, the processing module 53 may include a data selector 531 and an interrupt register 532.
[0114] The data selector 531 may be used to output an abnormal condition signal in response to a first abnormal condition of the clock frequency condition of the first clock node and a second abnormal condition of the clock operation condition of the second clock node.
[0115] Here, the abnormal state signal may be a high level signal or a low level signal, and is not specifically limited.
[0116] In some alternative embodiments, the data selector may be an either / or selector that outputs an abnormal condition signal if either the clock frequency state of the first clock node or the clock operation state of the second clock node is abnormal.
[0117] The interrupt register 532 can be connected to the data selector 531, and the interrupt register 532 can be used to output an interrupt signal to a preset module of the integrated circuit based on the abnormal state signal.
[0118] Here, the preset module may be a module capable of performing abnormal processing for the clock network in response to an interrupt, such as a processor (CPU) or a microcontroller (MCU) in the basic circuit, and is not specifically limited.
[0119] In some alternative embodiments, the preset module can respond to an interrupt signal and reset the clock network or the integrated circuit to restore the operating state of the clock network.
[0120] In some alternative embodiments, the interrupt register 532 may be used to output a first instruction signal to the clock frequency monitoring module 51 in response to the clock frequency status of the first clock node being in an abnormal state, to instruct the clock frequency monitoring module 51 to re-detect the clock frequency status of the first clock node. If the clock frequency status of the first clock node obtained by the re-detection is normal, no error processing may be performed, and the clock frequency status of the first clock node may be continuously monitored. If the clock frequency status of the first clock node obtained by the re-detection is in an abnormal state, processing such as resetting may be performed on the clock network or the integrated circuit.
[0121] In some alternative embodiments, the interrupt register 532 may be used to output a second instruction signal to the clock operation detection module 52 in response to the clock operation status of the second clock node being in an abnormal state, to instruct the clock operation detection module 52 to re-detect the clock operation status of the second clock node. A subsequent processing method is determined based on the re-detection result. For example, if the re-detection result remains in the abnormal state, a process such as resetting the clock network or the integrated circuit may be performed.
[0122] In some optional embodiments, for multiple first clock nodes, the apparatus of the disclosed embodiment may further include a first OR unit used to perform a logical OR operation on the outputs of the clock frequency monitoring modules 51 corresponding to each first clock node, and output an abnormality signal to the processing module 53 if the clock frequency status of any of the first clock nodes is abnormal (e.g., indicated as 1).
[0123] In some optional embodiments, for multiple second clock nodes, the apparatus of the disclosed embodiment may further include a second OR unit used to perform a logical OR operation on the output of the clock operation detection module 52 corresponding to each second clock node, and output an abnormality signal to the processing module 53 if the clock operation status of any of the second clock nodes is abnormal (e.g., indicated as 1).
[0124] In some alternative embodiments, FIG. 9 is a structural schematic diagram of an exemplary embodiment of a monitoring device for a clock network in an integrated circuit provided in an exemplary embodiment of the present disclosure. As shown in FIG. 9, any one or more clock nodes in the clock network can be a first clock node, and one clock node in the figure is taken as an example to be the first clock node, and a clock frequency monitoring module 51 monitors the clock frequency status of the first clock node. Other clock nodes other than the first clock node in the clock network can be second clock nodes, and each second clock node can correspond to one clock operation detection module 52, and the clock operation detection module 52 detects the clock operation status of the second clock node. The clock frequency monitoring module 51, as a first module for generating a pulse signal, provides a periodic pulse signal to each clock operation detection module 52. The clock frequency monitoring module 51 and each clock operation detection module 52 are respectively connected to the processing module 53, or each clock operation detection module is connected to the processing module 53 via a logical OR circuit or a data selector, etc., and outputs the clock frequency state of the first clock node and the clock operation state of the second clock node to the processing module 53. The processing module 53 can determine the operation state of the clock network based on the clock frequency state of the first clock node and the clock operation state of the second clock node, and when an abnormality occurs in the operation state of the clock network, it outputs an interrupt signal to the preset module, so that the preset module timely performs abnormality processing on the clock network or the integrated circuit, and restores the operation state of the clock network.
[0125] In some alternative embodiments, Figure 10 is a structural schematic diagram of an exemplary embodiment of the clock operation detection module 52 provided in the exemplary embodiment of the present disclosure. As shown in Figure 10, for any second clock node, mesh_clk indicates the clock signal output from this second clock node, and the clock frequency monitoring module 51 can monitor the clock frequency state of the first clock node (output a frequency abnormality signal clk_frequency_error when the frequency is abnormal), and at the same time output a pulse signal (i.e., cmm_int in the figure) according to a certain period based on the reference clock of the clock frequency monitoring module 51, and the clock signal of the second clock node can provide an operating clock to the rising edge detection circuit 5211 and the status register 5221, and can provide an operating clock to other circuits that require an operating clock. The rising edge detection circuit 5211 outputs a first trigger signal to the state register 5221 according to the pulse signal and the clock signal, and the state register 5221 flips or holds the original value according to the first trigger signal and the clock signal, for example, if the first trigger signal is at a high level (or 1) and the clock signal is at a high level (or 1), the value of the state register 5221 flips to a preset value, for example, flips from 0 to 1, indicating that the second clock node flips normally. If either the first trigger signal or the clock signal is at a low level, the value of the state register 5221 does not flip and holds a reset value (for example, 0), indicating that the pulse signal does not reach a rising edge or the clock signal of the second clock node does not flip.After detecting the rising edge of the pulse signal, the falling edge detection circuit 5212 continues to detect the falling edge of the pulse signal, and at the falling edge of the pulse signal, the falling edge detection circuit 5212 outputs a second trigger signal (e.g., a high level signal or 1) to the status detection circuit 5222, the status detection circuit 5222 detects the value of the status register in response to the second trigger signal, and compares the value of the status register with a preset value, and if the value of the status register 5221 is the preset value, it can be determined that the second clock node has flipped normally, thereby determining that the clock operating state of the second clock node is in a normal state; if the value of the status register 5221 is not the preset value, it can be determined that the second clock node has not flipped, thereby determining that the clock operating state of the second clock node is in an abnormal state, and the status detection circuit 5222 can output an operating state abnormal signal (i.e., clk_stuck_error in the figure) to the processing module 53. If the state detection circuit 5222 determines that the clock operating state of the second clock node is normal, it can output a reset trigger signal to the reset circuit 5223, and the reset circuit 5223 outputs a reset signal to the state register 5221 in response to the reset trigger signal, and resets the value of the state register 5221 to a reset value (e.g., 0). Each second clock node in the clock network can periodically detect the clock operating state according to the above detection process, and the first clock node in the clock network detects the clock frequency state by the highly accurate clock frequency monitoring module 51, thereby ensuring the accuracy of local monitoring and at the same time realizing global monitoring of the clock network, and reducing the resources consumed in the monitoring process.
[0126] The beneficial technical effects corresponding to the exemplary embodiments of the present apparatus may be referred to the beneficial technical effects corresponding to the exemplary methods described above, and will not be described here.
[0127] Exemplary Electronic Devices FIG. 11 is a structural diagram of an electronic device provided in an embodiment of the present disclosure, which includes at least one processor 11 and a memory 12.
[0128] The processor 11 may be a central processing unit (CPU) or other processing unit having data processing and / or instruction execution capabilities, and may control other components within the electronic device 10 to perform desired functions.
[0129] The memory 12 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. The computer-readable storage medium may store one or more computer program instructions, and the processor 11 may execute one or more computer program instructions to realize the methods of the embodiments of the present disclosure and / or other desired functions.
[0130] In one example, electronic device 10 may further include input devices 13 and output devices 14, with these components interconnected via a bus system and / or other form of connection (not shown).
[0131] The input device 13 may further include, for example, a keyboard and a mouse.
[0132] The output device 14 can output various types of information to the outside, and may include, for example, a display, a speaker, a printer, a communication network, and a remote output device connected thereto.
[0133] For the sake of simplicity, Fig. 11 shows only some of the components related to the present disclosure in the electronic device 10, and omits components such as a bus and an output / input interface, etc. In addition, the electronic device 10 may further include any other appropriate components according to a specific application situation.
[0134] In some alternative embodiments, the embodiments of the present disclosure may further provide an electronic device, which may include a clock network monitoring device in an integrated circuit provided in any of the above embodiments of the present disclosure.
[0135] Exemplary Computer Program Products and Computer-Readable Storage Media In addition to the methods and apparatus described above, embodiments of the present disclosure may further provide a computer program product including computer program instructions that, when executed by a processor, cause the processor to perform steps in the methods of the various embodiments of the present disclosure described in the "Exemplary Methods" section above.
[0136] The computer program product may be written with program code for carrying out operations of the embodiments of the present disclosure in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, and traditional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computing device, partially on the user's device, as separate software packages, partly on the user's computing device and partly on a remote computing device, or entirely on a remote computing device or server.
[0137] Additionally, an embodiment of the present disclosure may be a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, cause the processor to perform steps in the methods of the various embodiments of the present disclosure described in the "Exemplary Methods" section above.
[0138] The computer readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, a system, apparatus or device including electrical, magnetic, optical, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include an electrical connection with one or more conductors, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0139] Although the basic principles of the present disclosure have been described above with reference to specific embodiments, the advantages, advantages, effects, etc. mentioned in the present disclosure are not limited but merely illustrative, and these advantages, advantages, effects, etc. are not necessarily possessed by each embodiment of the present disclosure. In addition, the specific details disclosed above are not limited but merely serve to serve as examples and to facilitate understanding, and the above details do not necessarily limit the present disclosure to be realized by the above specific details.
[0140] Those skilled in the art can make various modifications and variations to the present disclosure without departing from the spirit and scope of the present disclosure. Thus, if these modifications and variations of the present disclosure fall within the scope of the claims of the present disclosure and its equivalent technology, the present disclosure is also intended to include these modifications and variations.
Claims
1. monitoring a clock frequency status of a first clock node in a clock network in an integrated circuit; detecting a clock operating state of a second clock node in the clock network; determining an operational state of the clock network based on a clock frequency state of the first clock node and a clock operational state of the second clock node; A method for monitoring a clock network in an integrated circuit, the method being performed by an apparatus for monitoring a clock network in an integrated circuit.
2. The step of detecting a clock operation state of a second clock node in the clock network includes: Detecting a pulse signal output from a first module in the integrated circuit; determining a clock operation state of the second clock node based on the pulse signal; 2. The method for monitoring a clock network in an integrated circuit according to claim 1.
3. The step of determining a clock operation state of the second clock node based on the pulse signal includes: determining a clock flip state of the second clock node at a rising edge of the pulse signal; and determining a clock operation state of the second clock node based on a clock flip state of the second clock node at a falling edge of the pulse signal.
3. The method for monitoring a clock network in an integrated circuit according to claim 2.
4. The step of determining a clock flip state of the second clock node at a rising edge of the pulse signal comprises: setting a value of a state register to a preset value when detecting that the second clock node flips at a rising edge of the pulse signal, the preset value indicating that the clock flip state of the second clock node is a normal flip; determining a clock operation state of the second clock node based on a clock flip state of the second clock node at a falling edge of the pulse signal, detecting a value of the status register at a falling edge of the pulse signal; determining a clock operation state of the second clock node based on a correspondence between the value of the status register and the preset value; 4. The method for monitoring a clock network in an integrated circuit according to claim 3.
5. after the step of determining a clock operating state of the second clock node based on the correspondence between the value of the status register and the preset value, resetting a value of the status register in response to the clock operation status of the second clock node being a normal status; 5. The method for monitoring a clock network in an integrated circuit according to claim 4.
6. The step of monitoring a clock frequency status of a first clock node in a clock network in an integrated circuit includes: Detecting a clock frequency of the first clock node according to a preset period based on a reference clock; determining a clock frequency state of the first clock node based on a matching relationship between a clock frequency of the first clock node and a preset frequency range; A method for monitoring a clock network in an integrated circuit according to any one of claims 1 to 5.
7. determining an operational state of the clock network based on a clock frequency state of the first clock node and a clock operational state of the second clock node; determining a first abnormal condition of a clock frequency state of the first clock node; determining a second abnormal condition of a clock operating condition of the second clock node; determining, based on the first abnormal condition and the second abnormal condition, that an operational state of the clock network is abnormal; A method for monitoring a clock network in an integrated circuit according to any one of claims 1 to 5.
8. a clock frequency monitoring module for monitoring a clock frequency status of a first clock node in a clock network in an integrated circuit; a clock operation detection module for detecting a clock operation state of a second clock node in the clock network; a processing module coupled to the clock frequency monitoring module and the clock operation detection module, respectively, for determining an operation state of the clock network based on a clock frequency state of the first clock node and a clock operation state of the second clock node; A clock network monitoring device for an integrated circuit.
9. The clock detection module comprises: a pulse signal detection unit connected to a first module for generating a pulse signal, for detecting the pulse signal output from the first module; a clock operating state determining unit connected to the pulse signal detecting unit, for determining a clock operating state of the second clock node based on the pulse signal; 9. An apparatus for monitoring a clock network in an integrated circuit according to claim 8.
10. The clock frequency monitoring module includes: a clock frequency detection unit for detecting a clock frequency of the first clock node according to a preset period based on a reference clock; a clock frequency state determining unit, respectively connected to the clock frequency detection unit and the processing module, for determining a clock frequency state of the first clock node according to a matching relationship between the clock frequency of the first clock node and a preset frequency range; the clock frequency state determining unit is further adapted to, in response to determining that the clock frequency state of the first clock node is a frequency abnormality, output a frequency abnormality signal to the processing module. The device for monitoring a clock network in an integrated circuit according to any one of claims 8 to 9.
11. A computer program for carrying out the method for monitoring a clock network in an integrated circuit according to claim 1 is stored. A computer-readable storage medium.
12. An electronic device, Processor and a memory for storing instructions executable by the processor; The processor is adapted to read and execute the executable instructions from the memory to implement the method for monitoring a clock network in an integrated circuit according to claim 1; or The electronic device includes a clock network monitoring device in an integrated circuit according to claim 8. electronic equipment.
Citation Information
Patent Citations
Novel chip system and method for improving system stability
CN106293004A
Clock monitoring device
JP2003308131A
Monitoring device and power supply system using the same
JP2019083064A
Programmable Clock Monitor
JP2019536146A
Apparatus and method for detecting a fault with a clock source
US20150033101A1