Generating Code Coverage Report for Exclusion Coverage Using Xelab - 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