- In Vivado IDE, go to settings and in elaboration and check for coverage
options.
- Set the
xsim.elaborate.coverage.name
value to
DB1(can be any name). - Set the
xsim.elaborate.coverage.dir*
value to
cRun1(can be any name dir). - Set the
xsim.elaborate.coverage.type
value to statement or
sor branch orbor condition orctoggle ortorallorsbctor statement branch condition toggle. - Set the
xsim.elaborate.more_options
value to
-ccExclusionFile exclusion.txt.
- Set the
xsim.elaborate.coverage.name
value to
- Apply and Run simulation.
- 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 - Now you can see the HTML report opened in the default browser as
shown below.
- Click on Files in the top
right corner to see the File Specific Information.
- Click on Modules in the top
right corner to see Module Specific Information.
- Click on the specified signal file and select toggle coverage to see the signal exclusion/inclusion.