CPU on-line testing method based on grey box

An online test and gray box technology, applied in the field of software algorithms, can solve the problems of unreliable CPU test results, poor portability, unpredictability, etc., and achieve the effect of improving portability and readability

Active Publication Date: 2014-01-15
SHANGHAI FUXIN INTELLIGENT TRANSPORTATION SOLUTIONS
View PDF2 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. Due to the increasing integration of CPUs and the increasingly complex internal structure, operations inside the CPU may bring unpredictable risks.
[0005] 2. It is often necessary to turn off interrupts for CPU testing during system operation, which affects the normal work and real-time response capabilities of the security system
[0006] 3. The test results of the CPU itself are unreliable. If the CPU itself fails, the test results need to be judged by yourself, which is unpredictable.
[0007] 4. CPU test cases are usually implemented with low-level assembly code. Due to the need to consider CPUs with different architectures, the portability is poor, and different test programs need to be written on different CPUs.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • CPU on-line testing method based on grey box
  • CPU on-line testing method based on grey box
  • CPU on-line testing method based on grey box

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The present invention provides a CPU online testing method based on gray box testing. The algorithm can be applied to fields including but not limited to safety signal systems, industrial control systems and the like. The present invention improves the above algorithm at a higher level, overcomes the shortcomings of the prior art, and can achieve the purpose of covering CPU function failures.

[0019] Gray Box is a device in which the working process of a program or system is partially recognized. Gray box testing, also called gray box analysis, is a software debugging method based on limited knowledge of the internal details of the program. The tester may know how the system components interact, but lack a detailed understanding of the internal program function and operation. For internal processes, gray box testing treats the program as a black box that must be analyzed from the outside.

[0020] Gray box testing does not require the tester to touch the source code, so g...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a CPU on-line testing method based on a grey box. The method includes the following steps that a safe computer language code rule is set; a minimum language subset related to CPU functions is extracted; a CPU functional test case is generated; an object code is generated; the object code operates on a tested CPU, and a test result is produced; results are compared on another CPU; an expected result is stored on another CPU; whether the test result is identical with the expected result or not is judged; if the test result is identical with the expected result, CPU functions are judged as normal, and operation continues; if the test result is not identical with the expected result, system failure processing is judged. Advanced computer languages are utilized to achieve on-line testing on the CPU functions, transportability and readability of a test code are improved, a CPU functional layer, truly used commands and complete coverage of a register are considered, a CPU does not need to be shut off or interrupted, preservation and recovery of the internal state of the CPU before and after self-testing are not needed, and the current state of the CPU cannot be damaged.

Description

Technical field [0001] The invention belongs to the field of software algorithms and is used for online detection of the correctness of CPU execution functions. Background technique [0002] In industrial control systems and safety signal systems (used in avionics, railway signaling, nuclear power and other industries), the central processing unit CPU has established the core control position, which plays an extremely important role in ensuring the safety and reliability of the system. In order to ensure that the CPU can perform functional tasks correctly, the CPU must be monitored periodically. When an abnormality is discovered, the fault management mechanism shall be activated, and safety measures shall be taken in time to avoid more serious accidents. In the security field, CPU detection has always been a difficult point in the industry. The usual practices are figure 1 Shown. [0003] The existing method is to detect the internal resources of the CPU, such as the register ban...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
Inventor 袁跃峰张小林林先贤赵磊严文煜
Owner SHANGHAI FUXIN INTELLIGENT TRANSPORTATION SOLUTIONS
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products