Application-level random instruction testing method, system and device

A test method and application-level technology, applied in the field of micro-processing verification, can solve problems such as test blind spots, impossible to cover instructions, weak points, etc., and achieve the effects of improving test reliability, saving test time, and improving test efficiency

Active Publication Date: 2012-05-16
JIANGNAN INST OF COMPUTING TECH
View PDF3 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in the process of implementing the present invention, the inventor found that in the instruction set of the microprocessor, the number of instruction templates is as many as hundreds, and the operand space corresponding to each instruction template is also astronomical. The combinations of generated instructions are even more diverse. To perform application-level testing on microprocessors, it is almost impossible to cover all instructions by manually writing programs / test cases, which will bring blind spots or weak links in testing.

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
  • Application-level random instruction testing method, system and device
  • Application-level random instruction testing method, system and device
  • Application-level random instruction testing method, system and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] For reference and clarity, technical terms, abbreviations or abbreviations used hereinafter are summarized as follows:

[0055] Hash: Generally translated as "hash", there are also direct transliterations as "hash", that is, the input of any length is converted into a fixed-length output through a hash algorithm, and the output is the hash value;

[0056] Hash function: a function that compresses a message of any length into a message digest of a fixed length;

[0057] GP: Global Pointer, global pointer;

[0058] FP: frame pointer, heap pointer.

[0059] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in ...

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 embodiment of the invention discloses an application-level random instruction testing method, system and device, which can not generate testing blind areas or weak links easily. The method comprises the following steps of: randomly selecting multiple instruction templates from a specified instruction set; and testing for the preset times by utilizing the instruction templates, and obtaining test results. Each test comprises the following steps of: respectively executing assembly instructions which are randomly generated according to the instruction templates by using a hardware platform and a simulation platform, and obtaining respective execution results, wherein the specified memory spaces and registers of the hardware platform and the simulation platform are initialized. Each test result includes a comparison result, and the comparison result is obtained by comparing whether the execution result of the hardware platform is the same as the execution result of the simulation platform. In the invention, the selection of the instruction templates and the generation of the assembly instructions are random, and especially, when the preset times are large enough, blind areas or weak links which are difficult to test by conventional programs/test cases are easier to test, so that testing blind areas or weak links are not easy to generate.

Description

technical field [0001] The invention relates to the technical field of microprocessing verification, and more specifically, to an application-level random instruction testing method, system and device. Background technique [0002] In the development process of the microprocessor, it is necessary to carry out application-level testing on its functions, and the main way of functional testing is the test verification based on the instruction set. [0003] When performing application-level testing, the general method is to manually write a program / test case composed of multiple microprocessor instructions, and run them on the operating system-based hardware platform (the hardware platform is the physical reference model of the microprocessor to be tested) Execute with a simulation platform based on the same operating system (the simulation platform is a software reference model of the microprocessor to be tested), and compare the execution results. [0004] However, in the pro...

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 JIANGNAN INST OF COMPUTING TECH
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