Using Code Coverage

The code coverage feature provides visibility as to what portions of the code are being executed.

Code coverage differs from traced code in the following way:

This feature works by latching addresses of the opcode as it executes in a debug session. With code coverage enabled, the next pause (step, software breakpoint or Pause command) will cause a report to be written to either the Output window, Debugger Console tab, or Output file, depending on options chosen.

Select File>Project Properties, “Simulator” category, “Code Coverage Options” option category to see code coverage options:

Figure 1. Simulator Code Coverage