Renesas M16C/64 Network Card User Manual


 
R0E530640MCU00 User’s Manual 5. Debugging Functions
REJ10J1733-0100 Rev.1.00 Apr. 01, 2008
Page 147 of 229
5.11 Measuring Code Coverage
5.11.1 Measuring Code Coverage
Code coverage is the function to indicate the ‘digestion’ degree of test, i.e., “to what degree tests have been carried out on
software code (pass).”
Instruction execution information is displayed at C/C++ and assembler levels.
This function collects instruction execution information from a program without causing it to break. Therefore, the realtime
capability of the user program will not be lost.
The coverage result is updated upon a break.
The E100 emulator supports C0: Instruction coverage rate and C1: Branch coverage rate.
Table 5.27 Code coverage definition
C0: Instruction coverage rate All statements within code are executed at least once.
C1: Branch coverage rate All branches within code are executed at least once.
The E100 emulator comes with up to a 2-Mbyte code coverage memory when using the C0 + C1 level coverage, and up to a 1-
Mbyte code coverage memory when using the C1 level coverage.
With initial settings, the code coverage memory is allocated automatically to addresses in the ROM and RAM areas in this
order.
5.11.2 Opening the Code Coverage Window
Choose Code -> Code Coverage from the View menu or click the Code Coverage toolbar button [
].
The Code Coverage window initially appears in a blank state.