Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for generating test program for verifying function of microprocessor

A test program and functional verification technology, applied in functional inspection, software testing/debugging, faulty computer hardware detection, etc., can solve the problem of multi-point of interest features that are not suitable for the functional coverage model, and the poor effect of the microprocessor functional coverage model , lack of practical experience in verifying the microprocessor function coverage model, etc., to achieve the effect of improving verification efficiency

Active Publication Date: 2012-09-26
BEIJING PKUNITY MICROSYST TECH +1
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Not suitable for functional coverage models and design verification requiring large test programs, because microprocessor functional coverage models usually contain a large number of widely varying points of interest, and large test programs are required to achieve functional coverage goals
In the existing test program evolution method, the test program is obtained from the individual mapping in the population, and the validity of the test program needs to be checked during the operation of the evolutionary algorithm, and the calculation cost is greatly affected by the length of the chromosome code.
[0022] In addition, existing evolutionary test program methods explore a unique optimal test program in the solution space, which requires a large search effort for complex coverage models, greatly increases the running time of the algorithm, and a single optimal solution search is not suitable for functional coverage The multi-interest point feature of the model affects the convergence speed of the algorithm
[0023] The complexity and scale of microprocessor design are large, and the complexity of the functional coverage model is high, including a large number of interesting points with great differences. The traditional test program evolution method needs a large-scale test program to achieve the target of functional coverage. Complex coverage models require significant search effort, greatly increasing the running time of the algorithm
[0024] To sum up, the existing test program evolution method can search high-quality test programs in the solution space, but the effect is not good when it is used for the verification of the microprocessor functional coverage model, and there is a lack of actual verification of the microprocessor functional coverage model. experience

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
  • Method and device for generating test program for verifying function of microprocessor
  • Method and device for generating test program for verifying function of microprocessor
  • Method and device for generating test program for verifying function of microprocessor

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0086] Embodiment one, a kind of test program generation method for microprocessor function verification, comprises:

[0087] A. Randomly generate μ+λ individuals and save them as the original generation population; use the original generation population as the current population;

[0088] B. Combined with the instruction library, convert the individuals in the current population into test programs;

[0089] C. Simulate and execute the test program converted by each individual in the current population, and generate a function coverage report;

[0090] D. If the current population is the original generated population, proceed to step E directly;

[0091] Otherwise, select individuals in the current population to perform λ times of crossover and mutation operations, and save the new individuals generated into the current population, and then proceed to step E; the selection method of λ can be the same as the existing technology;

[0092] E. According to the functional coverag...

Embodiment 2

[0161] Embodiment two, a kind of test program generating device for microprocessor function verification, comprises:

[0162] The conversion module is used to convert the individual in the current population into a test program in combination with the instruction library;

[0163] A generation module is used to randomly generate μ+λ individuals and save them as the original generation population; output the original generation population as the current population to the conversion module;

[0164] The test platform is used to simulate and execute the test program transformed by each individual in the current population, and generate a functional coverage report;

[0165] A selection module is used to select at least μ individuals from the current population as a new generation population;

[0166] The processing module, after receiving the functional coverage report of the test platform, if the current population is the original generation population, then directly start the ...

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 relates to a method and a device for generating a test program for verifying the function of a microprocessor. The method comprises the following steps of: A, randomly generating mu+lamda individuals, saving the individuals as an original generation population, and taking the original generation population as the current population; B, converting the individuals in the current population into the test program by combining an instruction library; C, performing simulation execution on the test program obtained by converting each individual in the current population to generate a functional coverage report; D, directly performing the step E if the current population is the original generation population, and performing intersection and variation operation on the individuals in the current population for lamda times, saving the generated new individuals in the current population, and performing the step E if the current population is not the original generation population; E, selecting at least mu individuals from the current population as a new-generation population according to the functional coverage report; and F, outputting test program sets corresponding to the individuals in the new-generation population if the stop condition is met, and taking the new-generation population as the current population and returning to the step B if the stop condition is not met.

Description

technical field [0001] The invention relates to instruction-level verification of microprocessors, in particular to a method and device for generating test programs for function verification of microprocessors. Background technique [0002] With the rapid development of integrated circuit manufacturing technology, the scale and complexity of microprocessor design are getting higher and higher, and many new micro-architecture features are introduced, such as deep pipeline, dynamic scheduling, out-of-order execution, etc. Microprocessor is the core component of computer system, and its functional correctness is the key to the normal operation of the final product. Effective verification methods are needed to find hidden design errors in the design. If there is a functional verification vulnerability, causing design errors to flow into the final product, it will bring huge losses to the enterprise. [0003] At present, microprocessor chip-level verification mainly adopts the m...

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 Patents(China)
IPC IPC(8): G06F11/26G06F11/36
Inventor 程旭佟冬张良
Owner BEIJING PKUNITY MICROSYST TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products