IP Library Granted Patent US 12,174,254
Granted Patent B2
US 12,174,254 · App. 18/308,405 · Granted Dec 24, 2024

Fault detection method and related apparatus

Inventors: Zhe Tao (Shanghai, CN); Ge Shen (Shenzhen, CN); Jianlong Cao (Shanghai, CN); Ming Wang (Shenzhen, CN); Rui Fang (Shanghai, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
G01R31/318544G06F9/4881
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,174,254
App. No.
18/308,405
Granted
Dec 24, 2024
Kind
B2
Abstract

A fault detection method includes: obtaining a scheduling table of a target task, where the scheduling table is used to indicate at least one test pattern, the at least one test pattern is used to detect a fault in a target logic circuit, and the target logic circuit is a logic circuit configured to execute the target task; and executing the at least one test pattern based on the scheduling table, to detect the fault in the target logic circuit.

Claims (46)

1. A fault detection method comprising:

obtaining a scheduling table of a target task, wherein the scheduling table indicates test patterns and an execution sequence of a first test pattern, wherein the test patterns comprise the first test pattern, wherein the first test pattern is for detecting a fault in a target logic circuit, wherein the target logic circuit is for executing the target task, and wherein the execution sequence is based on a quantity of execution times of an instruction type; and

executing the first test pattern based on the scheduling table to detect the fault.

2. The fault detection method of claim 1 , wherein the target task is a running task.

3. The fault detection method of claim 1 , further comprising:

determining the instruction type based on a second mapping relationship and a machine instruction code set of the target task, wherein the second mapping relationship maps the instruction type to the machine instruction code; and

determining the first test pattern based on a first mapping relationship and the instruction type, wherein the first mapping relationship maps the first test pattern to the instruction type.

4. The fault detection method of claim 3 , further comprising generating the scheduling table based on the first test pattern.

5. The fault detection method of claim 4 , further comprising:

determining the quantity; and

determining the execution sequence of the first test pattern based on the quantity; and

further generating the scheduling table based on the first test pattern and the execution sequence.

6. The fault detection method of claim 3 , further comprising:

writing the first test pattern into a sorting register based on the execution sequence;

further executing the first test pattern based on the execution sequence to obtain an execution result; and

writing the execution result into a status register.

7. The fault detection method of claim 1 , further comprising storing the scheduling table in a shared memory that is accessible to a plurality of processors.

8. The fault detection method of claim 1 , wherein the target task comprises a process or a thread.

9. A terminal comprising:

a memory configured to store instructions; and

one or more processors coupled to the memory and configured to execute the instructions to cause the terminal to:

obtain a scheduling table of a target task, wherein the scheduling table indicates test patterns and an execution sequence of a first test pattern, wherein the test patterns comprise the first test pattern, wherein the first test pattern is for detecting a fault in a target logic circuit, wherein the target logic circuit is for executing the target task, and wherein the execution sequence is based on a quantity of execution times of an instruction type; and

execute the first test pattern based on the scheduling table to detect the fault.

10. The terminal of claim 9 , wherein the target task is a running task.

11. The terminal of claim 9 , wherein the one or more processors are further configured to execute the instructions to cause the terminal to:

determine the instruction type based on a second mapping relationship and a machine instruction code set of the target task, wherein the second mapping relationship maps the instruction type to the machine instruction code; and

determine the first test pattern based on a first mapping relationship and the instruction type, wherein the first mapping relationship maps the first test pattern to the instruction type.

12. The terminal of claim 11 , wherein the one or more processors are further configured to execute the instructions to cause the terminal to generate the scheduling table based on the first test pattern.

13. The terminal of claim 12 , wherein the one or more processors are further configured to execute the instructions to cause the terminal to:

determine the quantity;

determine the execution sequence of the first test pattern based on the quantity; and

further generate the scheduling table based on the first test pattern and the execution sequence.

14. The terminal of claim 11 , wherein the one or more processors are further configured to execute the instructions to cause the terminal to:

write the first test pattern into a sorting register based on the execution sequence;

further execute the first test pattern based on the execution sequence to obtain an execution result; and

write the execution result into a status register.

15. The terminal of claim 9 , wherein the one or more processors are further configured to execute the instructions to cause the terminal to store the scheduling table in a shared memory that is accessible to a plurality of processors.

16. The terminal of claim 9 , wherein the target task comprises a process or a thread.

17. A computer program product comprising computer-executable instructions stored on a non-transitory computer-readable storage medium that, when executed by one or more processors, cause a terminal to:

obtain a scheduling table of a target task, wherein the scheduling table indicates test patterns and an execution sequence of a first test pattern, wherein the test patterns comprise the first test pattern, wherein the first test pattern is for detecting a fault in a target logic circuit, wherein the target logic circuit is for executing the target task, and wherein the execution sequence is based on a quantity of execution times of an instruction type; and

execute the first test pattern based on the scheduling table to detect the fault.

18. The computer program product of claim 17 , wherein the target task is a running task.

19. The computer program product of claim 17 , wherein the computer-executable instructions, when executed by the one or more processors, further cause the terminal to:

determine the instruction type based on a second mapping relationship and a machine instruction code set of the target task, wherein the second mapping relationship maps the instruction type to the machine instruction code; and

determine the first test pattern based on a first mapping relationship and the instruction type, wherein the first mapping relationship maps the first test pattern to the instruction type.

20. The computer program product of claim 19 , wherein the computer-executable instructions, when executed by the one or more processors, further cause the terminal to generate the scheduling table based on the first test pattern.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 12, 2024
From: HUAWEI TECHNOLOGIES CO., LTD.
To: SHENZHEN YINWANG INTELLIGENT TECHNOLOGIES CO., LTD.
Reel/Frame 069336/0125 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 1, 2024
From: TAO, ZHE; SHEN, GE; CAO, JIANLONG; WANG, MING; FANG, RUI
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 069101/0164 →