Fujitsu softune f2 mc-16 Manuel D’Utilisation

Page de 354
188
CHAPTER 2  DEPENDENCE FUNCTIONS
2.3.8
Measuring Coverage
This emulator has the C0 coverage measurement function. 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.
This emulator coverage function is used to find what percentage of the whole program has been executed. In
addition, details such as which addresses were not accessed can be checked.
This enables the measurement coverage range to be set.
To execute the C0 coverage, set a range within the code area. In addition, setting a range in the data area,
permits checking the access status of variables such as finding unused variables, etc.
Execution of coverage measurement is limited to the address space specified as the debug area.
Therefore, set the debug area in advance.
This is operable by enabling the coverage function on the chip tabs: [Environment] - [Setup Debugging
Environment] - [Debug Environment] menu.
Coverage Measurement Procedures
The procedure for coverage measurement is as follows:
1. Set range for coverage measurement:SET COVERAGE
2. Measuring coverage:GO, STEP, CALL
3. 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
- Abortion and resume of coverage measurement: ENABLE COVERAGE, DISABLE COVERAGE
- Clearing coverage data:
CLEAR COVERAGE
- Canceling coverage measurement range:
CANCEL COVERAGE
Note:
When the coverage measurement function is used, the monitoring function in RAM area of the 0 bank
cannot be used. For more details, refer to Section "2.3.9  Real-time Monitoring".