- 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