Search

CN-122026898-A - Method, device, computer equipment, medium and product for detecting frequency division clock circuit

CN122026898ACN 122026898 ACN122026898 ACN 122026898ACN-122026898-A

Abstract

The application relates to a frequency division clock circuit detection method, a frequency division clock circuit detection device, computer equipment, media and products. The method comprises the steps of obtaining a detection target set of a frequency division clock circuit to be detected, wherein the detection target set comprises detection targets, determining detection templates corresponding to the detection targets in candidate detection templates, extracting a clock information set corresponding to the frequency division clock to be detected in a functional module to be detected, updating each detection template according to the clock information set to obtain detection data, detecting the frequency division clock to be detected according to the detection data to obtain a detection result of the frequency division clock to be detected, and locating the reason of abnormality of the functional module to be detected according to the detection result. The problem positioning accuracy can be improved by adopting the method.

Inventors

  • XU GANG

Assignees

  • 成都海光集成电路设计有限公司

Dates

Publication Date
20260512
Application Date
20260123

Claims (16)

  1. 1. The method for detecting the frequency division clock circuit is characterized by being applied to the frequency division clock circuit to be detected, wherein the frequency division clock circuit to be detected comprises a functional module to be detected, and the method comprises the following steps: obtaining a detection target set of the frequency division clock circuit to be detected, wherein the detection target set comprises all detection targets; determining detection templates corresponding to the detection targets in the candidate detection templates; Extracting a clock information set corresponding to a frequency division clock to be detected from the functional module to be detected, and updating each detection template according to the clock information set to obtain detection data; And detecting the frequency division clock to be detected according to the detection data to obtain a detection result of the frequency division clock to be detected, wherein the detection result is used for positioning the reason of the abnormality of the functional module to be detected.
  2. 2. The method of claim 1, wherein each of the candidate detection templates includes a frequency division ratio detection template, a signal change origin detection template, a signal duration detection template, and a spur detection template, and wherein determining a detection template corresponding to each of the detection targets in each of the candidate detection templates includes: and acquiring each candidate detection template, and determining the candidate detection template which accords with the detection target in each candidate detection template as a detection template aiming at different detection targets.
  3. 3. The method according to claim 2, wherein the determining, among the candidate detection templates, a candidate detection template that matches the detection target as a detection template includes: If the detection target is a frequency division ratio, determining the frequency division ratio detection template to be a detection template corresponding to the detection target; If the detection target is a signal change starting point, determining that the signal change starting point detection template is a detection template corresponding to the detection target; if the detection target is the signal duration, determining the signal duration detection template as a detection template corresponding to the detection target; And if the detection target is the burr, determining the burr detection template as a detection template corresponding to the detection target.
  4. 4. The method according to claim 1, wherein the extracting, in the functional module to be detected, a clock information set corresponding to a frequency division clock to be detected includes: determining a frequency division clock identification of a frequency division clock to be detected and a primary clock identification corresponding to the primary clock in a functional module to be detected; Extracting a frequency division synchronizing signal and a frequency division indicating signal of the frequency division clock to be detected, and extracting an original synchronizing signal of the clock; And constructing a clock information set corresponding to the frequency division clock to be detected according to the frequency division clock identification, the original synchronous signal, the frequency division synchronous signal and the frequency division indication signal.
  5. 5. The method of claim 1, wherein updating each of the detection templates based on the set of clock information to obtain detection data comprises: For each detection template, determining a target clock information set corresponding to the detection template in the clock information set; And updating the target clock information set into the detection template to obtain detection data.
  6. 6. The method of claim 5, wherein the set of clock information includes a divided clock identification, a raw synchronization signal, a divided synchronization signal, and a divided indication signal, and wherein determining the set of target clock information corresponding to the detection template in the set of clock information includes: if the detection template is a frequency division ratio detection template, a target clock information set is constructed according to the original clock identification and the frequency division clock identification; If the detection template is a signal change starting point detection template, a target clock information set is constructed according to the frequency division clock identification, the frequency division synchronous signal and the frequency division indication signal; If the detection template is a signal duration detection template, a target clock signal set is constructed according to the frequency division clock identification, the frequency division synchronous signal, the original clock identification and the original synchronous signal; If the detection template is a burr detection template, a target clock signal set is constructed according to the frequency division synchronizing signal and the frequency division clock identification.
  7. 7. The method according to claim 1, wherein the detecting the frequency-divided clock to be detected according to the detection data, to obtain a detection result of the frequency-divided clock to be detected, includes: Detecting the frequency division clock to be detected according to the detection data to obtain a strategy detection result corresponding to the detection target; generating a detection log based on the strategy detection result and the operation data of the frequency division clock to be detected; and determining the detection result of the frequency division clock to be detected according to the detection log.
  8. 8. The method of claim 7, wherein the detecting the frequency-divided clock to be detected according to the detection data to obtain a policy detection result corresponding to the detection target includes: If the detection data are frequency division ratio detection data, detecting whether the frequency division ratio of the frequency division clock to be detected is normal according to the frequency division ratio detection data, and obtaining a frequency division ratio detection result corresponding to the frequency division ratio; if the detection data are signal change starting point detection data, detecting whether the signal change starting point of the frequency division clock to be detected is normal or not according to the signal change starting point detection data, and obtaining a signal change starting point detection result corresponding to the signal change starting point; If the detection data are signal duration detection data, detecting whether the signal duration of the frequency division clock to be detected is normal or not according to the signal duration detection data, and obtaining a signal duration detection result corresponding to the signal duration; if the detection data are burr detection data, detecting whether burrs exist in the frequency division clock to be detected and the synchronous signal according to the burr detection data, and obtaining a burr detection result corresponding to the burrs.
  9. 9. The method according to claim 8, wherein the detecting whether the frequency division ratio of the frequency division clock to be detected is normal according to the frequency division ratio detection data, to obtain a frequency division ratio detection result corresponding to the frequency division ratio, includes: Under the condition that the frequency division clock to be detected has a change trend, based on the frequency division ratio detection data, judging whether the frequency division clock to be detected has the change trend after a frequency division multiple number of clock cycles; And under the condition that the frequency division clock to be detected does not have the change trend, determining the frequency division ratio abnormality of the frequency division clock to be detected, and constructing a frequency division ratio detection result of the frequency division ratio according to the frequency division ratio abnormality and the time of the frequency division ratio abnormality.
  10. 10. The method of claim 8, wherein detecting whether the signal change start point of the frequency division clock to be detected is normal according to the signal change start point detection data, to obtain a signal change start point detection result corresponding to the signal change start point, includes: Based on the signal change starting point detection data, judging whether the frequency division synchronous signal changes and whether the value of the frequency division indicating signal is 1; If at least one frequency division synchronizing signal changes and the value of the indicating signal is 1, judging whether the frequency division clock to be detected is in an ascending trend or not; If the frequency division clock to be detected is not the rising trend, determining that the signal change starting point of the frequency division clock to be detected is wrong, and constructing a signal change starting point detection result based on the information of the signal change starting point error and the time of the signal change starting point error.
  11. 11. The method of claim 8, wherein detecting whether the signal duration of the frequency division clock to be detected is normal according to the signal duration detection data, to obtain a signal duration detection result corresponding to the signal duration, includes: acquiring a first duration of a total pulse in the presence of the total pulse of the original synchronous signal; Determining a synchronous pulse corresponding to the total pulse in a frequency division synchronous signal based on the starting time and the frequency division multiple of the total pulse, and collecting a second duration of the synchronous pulse; judging whether the multiple difference between the first duration and the second duration accords with the frequency division multiple or not according to the signal duration detection data; if the multiple difference is not consistent with the frequency division multiple, determining that the signal duration of the frequency division clock to be detected is abnormal, and constructing a signal duration detection result according to the information of the signal duration abnormality.
  12. 12. The method of claim 8, wherein detecting whether the frequency-divided clock and the synchronization signal to be detected have a glitch according to the glitch detection data, to obtain a glitch detection result corresponding to the glitch, includes: monitoring whether the frequency division synchronous signal changes according to the burr detection data; Under the condition that the frequency division synchronous signal changes, calculating the time of the current round change, and judging whether the time is larger than a preset time threshold; And under the condition that the time consumption is smaller than or equal to the time threshold, determining that the frequency division clock to be detected has burrs, and constructing the burr detection result according to the information of the frequency division clock to be detected having burrs.
  13. 13. A frequency division clock circuit detection device, wherein the device is applied to a frequency division clock circuit to be detected, the frequency division clock circuit to be detected comprises a functional module to be detected, and the device comprises: The acquisition module is used for acquiring a detection target set of the frequency division clock circuit to be detected, wherein the detection target set comprises all detection targets; The determining module is used for determining detection templates corresponding to the detection targets in the candidate detection templates; The updating module is used for extracting a clock information set corresponding to the frequency division clock to be detected from the functional module to be detected, and updating each detection template according to the clock information set to obtain detection data; The detection module is used for detecting the frequency division clock to be detected according to the detection data to obtain a detection result of the frequency division clock to be detected, and the detection result is used for locating the reason of the abnormality of the functional module to be detected.
  14. 14. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 12 when the computer program is executed.
  15. 15. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 12.
  16. 16. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any one of claims 1 to 12.

Description

Method, device, computer equipment, medium and product for detecting frequency division clock circuit Technical Field The present application relates to the field of digital circuits, and in particular, to a method, an apparatus, a computer device, a medium, and a product for detecting a frequency division clock circuit. Background Clock divider circuits are common in more functional, larger scale digital circuits. The clock divider circuit can be implemented by a logic circuit. In order to ensure the normal operation of the high-speed system, the correctness of the frequency division clock and the correctness of the synchronous circuit function of the clock domain need to be detected. In the conventional technology, test cases in a test case set are input into a circuit to be tested, and whether output meets expected specifications is judged to obtain a test result. The test case is used for testing whether each functional module of the circuit to be tested can normally operate. However, in the conventional art, the functional module includes at least one divided clock and each functional sub-module. When a functional module is abnormal, it also takes a lot of time to determine whether the abnormality is caused by the divided clock or the functional sub-module. Therefore, the problem location of the current divided clock circuit detection method is not clear. Disclosure of Invention In view of the foregoing, it is desirable to provide a divided clock circuit method, apparatus, computer device, computer readable storage medium, and computer program product. In a first aspect, the present application provides a method for detecting a frequency division clock circuit, where the method is applied to a frequency division clock circuit to be detected, and the frequency division clock circuit to be detected includes a functional module to be detected, and the method includes: obtaining a detection target set of the frequency division clock circuit to be detected, wherein the detection target set comprises all detection targets; determining detection templates corresponding to the detection targets in the candidate detection templates; Extracting a clock information set corresponding to a frequency division clock to be detected from the functional module to be detected, and updating each detection template according to the clock information set to obtain detection data; And detecting the frequency division clock to be detected according to the detection data to obtain a detection result of the frequency division clock to be detected, wherein the detection result is used for positioning the reason of the abnormality of the functional module to be detected. In one embodiment, each candidate detection template includes a frequency division ratio detection template, a signal change start point detection template, a signal duration detection template, and a spur detection template, where determining a detection template corresponding to each detection target in each candidate detection template includes: and acquiring each candidate detection template, and determining the candidate detection template which accords with the detection target in each candidate detection template as a detection template aiming at different detection targets. In one embodiment, the determining, in each candidate detection template, that the candidate detection template matching the detection target is a detection template includes: If the detection target is a frequency division ratio, determining the frequency division ratio detection template to be a detection template corresponding to the detection target; If the detection target is a signal change starting point, determining that the signal change starting point detection template is a detection template corresponding to the detection target; if the detection target is the signal duration, determining the signal duration detection template as a detection template corresponding to the detection target; And if the detection target is the burr, determining the burr detection template as a detection template corresponding to the detection target. In one embodiment, the extracting, in the to-be-detected functional module, a clock information set corresponding to a to-be-detected divided clock includes: determining a frequency division clock identification of a frequency division clock to be detected and a primary clock identification corresponding to the primary clock in a functional module to be detected; Extracting a frequency division synchronizing signal and a frequency division indicating signal of the frequency division clock to be detected, and extracting an original synchronizing signal of the clock; And constructing a clock information set corresponding to the frequency division clock to be detected according to the frequency division clock identification, the original synchronous signal, the frequency division synchronous signal and the frequency division indication signal. In one