Simulator based automatic functional test implementation method for central processing unit instruction sets

A central processing unit and functional testing technology, applied in the field of processors, can solve problems such as single verification means and narrow application range of test case sets, and achieve the effect of simple creation/modification/addition/deletion

Inactive Publication Date: 2015-01-28
NANJING FUJITSU NANDA SOFTWARE TECH
View PDF7 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0026] The purpose of the present invention is to solve the problems existing in the prior art when the central processing unit is automatically tested for functions: 1) the application range of the test case set is narrow; 2) the problem of a single verification means provides a simulator-based central processing unit The automatic implementation method of the function test of the instruction set, the technical solution provided by the invention can theoretically support the verification of any type of CPU, and the simulation results can be verified without obtaining the actual results from the actual machine of the hardware product to be simulated, It can be tested with any simulator, and the verification methods are rich

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
  • Simulator based automatic functional test implementation method for central processing unit instruction sets
  • Simulator based automatic functional test implementation method for central processing unit instruction sets
  • Simulator based automatic functional test implementation method for central processing unit instruction sets

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0058] In this embodiment, the method for automatically implementing the function test of the central processing unit instruction set based on the simulator (the hardware simulator is used to simulate another computer with incompatible instructions or different systems on one computer), and the verified CPU model is Motorola 68360, the real machine simulation test tool used is Trace32, and the CPU hardware simulator is QEMU simulator. The DataSheet of Motorola 68360 can be obtained by downloading it on the open source website, or it can be obtained from other methods such as the bundled materials of the purchased hardware.

[0059] See image 3 , The method for automatically implementing the function test of the instruction set of this embodiment includes the following steps:

[0060] Step 1: Sort out the DataSheet in the CPU, design test items according to the description of the instructions in the DataSheet, and write each test item in Excel; the number of test items M is determi...

Embodiment approach

[0122] In summary, the method for automatically implementing the function test of the central processing unit instruction set based on the simulator of this embodiment has the following significant effects:

[0123] (1) The test case set has a wide application range:

[0124] 1) In theory, it can support verification of any type of CPU;

[0125] the reason:

[0126] The cpu instruction set is composed of cpu instructions and operands, and the process of verifying the cpu instruction set is:

[0127] a. Preset expected results (that is, the actual machine results obtained by running Trace32);

[0128] b. Execute commands composed of cpu instructions and operands to obtain simulation results;

[0129] c. Compare the expected result and the simulation result.

[0130] The commands composed of cpu instructions and operands used in step b can be sorted out according to the datasheet script to automatically generate the commands needed for all test items, and the script can be used to intercept ...

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 simulator based automatic functional test implementation method for central processing unit instruction sets and belongs to the technical field of processors. The method includes the steps of 1), managing DataSheet in a central processing unit and writing out test items in an Excel table; 2), analyzing the Excel table and generating script files for real machine tool and assembling files capable of being recognized by the to-be-tested central processing units; 3), operating the script files by the aid of the real machine tool to obtain actual results; 4), utilizing a hardware simulator to operate the assembling files to obtain simulated results; 5), converting the actual results and the simulated results to a uniform format by the aid of a resolver; 6), comparing the actual results with the simulated results unified in format in the step to generate final test results. The central processing units of optional types can be tested supportively and theoretically, the simulated results can be tested without the actual results obtained by the real machine tool of to-be-simulated hardware products, the central processing units can be matched with optional simulators for test, and the method is rich in test means.

Description

Technical field [0001] The invention belongs to the technical field of processors, and in particular relates to an automatic testing method for central processing unit function testing based on a hardware simulator platform, in particular to an automatic testing method for instruction set functions supported by the central processing unit. Background technique [0002] During the development of the processor, it is very critical to carry out accurate and rigorous testing of its functions. Laurent Vivier in the QEMU open source community provides a set of automatic test tools for a specific model of CPU (Motorola 68020). This set of automatic testing tools includes the following: [0003] 1) The tester-gen software uses the actual CPU to run the test case set to obtain the real machine running results of the test case set; [0004] 2) The m68k-tester software uses the QEMU simulator of the CPU that has been simulated to run the test case set to obtain the simulation results; [0005]...

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 NANJING FUJITSU NANDA SOFTWARE 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