Full-covered automatic generating method of test case package of microprocessor
A test case, microprocessor technology, applied in software testing/debugging, detection of faulty computer hardware, functional inspection, etc., can solve problems such as the inability to ensure that all instruction combinations are covered, and it is difficult for users to use them.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0045] specific implementation plan
[0046] figure 1 Is the general flowchart of the present invention.
[0047] Step 1), build the initialization function Init: form the initialization code into a separate initialization function for the test case to call;
[0048] Step 2), build the state output function Output;
[0049] Step 3), according to the description of microprocessor instruction, set up the instruction template library that comprises M instruction templates;
[0050] Step 4), the construction size is M N The set of instruction template combinations X;
[0051] Step 5), judging whether the collection X is empty, if it is empty, execute step 9), if not empty, execute step 6);
[0052] Step 6), choose an instruction template combination x to be instantiated from the set X, X=X-{x};
[0053] Step 7), instantiate each instruction template i in the instruction template combination x obtained in step 6), and obtain an instruction combination x' corresponding to x; ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 