Generating Code Coverage Report for Exclusion Coverage Using Xcrg - 2025.1 English - UG937

Vivado Design Suite Tutorial: Logic Simulation (UG937)

Document ID
UG937
Release Date
2025-06-11
Version
2025.1 English
  1. In Vivado IDE, go to settings and in elaboration and check for coverage options.
    1. Set the xsim.elaborate.coverage.name value to DB1 (can be any name).
    2. Set the xsim.elaborate.coverage.dir* value to cRun1 (can be any name dir).
    3. Set the xsim.elaborate.coverage.type value to statement or s or branch or b or condition or c toggle or t or all or sbct or statement branch condition toggle.
    4. Set the xsim.elaborate.more_options value to -ccExclusionFile exclusion.txt.
  2. Apply and Run simulation.
  3. Invoke the following commands in Tcl console.
    write_xsim_coverage -cov_db_name DB1 -cov_db_dir cRun1
    export_xsim_coverage -cov_db_name DB1 -cov_db_dir cRun1 -output_dir cReport
    open_html true -ccExclusionFile ./exclusion.txt
  4. Now you can see the HTML report opened in the default browser as shown below.
  5. Click on Files in the top right corner to see the File Specific Information.
  6. Click on Modules in the top right corner to see Module Specific Information.
  7. Click on the specified signal file and select toggle coverage to see the signal exclusion/inclusion.