beautypg.com

11 measuring coverage, Measuring coverage – FUJITSU CM71-00329-7E User Manual

Page 68

background image

58

CHAPTER2 Dependence Functions

2.1.11

Measuring Coverage

In the high-speed version simulator debugger, the C0 coverage measurement function
is provided. Use this function to find what percentage of an entire program has been
executed.

Coverage Measurement Function

When testing a program, the program is executed with various test data input and the results are checked

for correctness. When the test is finished, every part of the entire program should have been executed. If

any part has not been executed, there is a possibility that the test is insufficient.

It can know what percentage of the entire program executed when the coverage function for the high-speed

version simulator debugger to have is used.

In addition, details such as which addresses were not accessed can be checked.

In this debugger, the range to measure coverage can be set.

Please set the time base range only to the code area when you do the C0 coverage.

Moreover, the access of the variable can be examined as the variable not used is searched out by setting the

time base range to the data area.

Coverage Measurement Procedures

The procedure for coverage measurement is as follows:

- Set range for coverage measurement:

SET COVERAGE

- Measuring coverage:

GO, STEP, CALL

- Displaying measurement result:

SHOW COVERAGE

Coverage Measurement Operation

The following operation can be made in coverage measurement:

- Load/Save of coverage data:

LOAD/COVERAGE. SAVE/COVERAGE

- Clearing coverage data:

CLEAR COVERAGE

- Canceling coverage measurement range:

CANCEL COVERAGE