Functional Coverage Report Generator - 2020.2 English

Vivado Design Suite User Guide: Logic Simulation (UG900)

Document ID
UG900
Release Date
2020-11-23
Version
2020.2 English

Vivado simulator provides a utility using which you can generate the functional coverage report either in text or html format. The Xilinx Coverage Report Generator (XCRG) can also be used for merging multiple coverage databases into a single database.

Table 1. xcrg Command Options and Description
xcrg Option Description
-db_name arg Name of the database inside xsim.covdb. If unspecified all databases present in the directory are used.
-dir arg Path where the xsim.covdb database directory is located. Default is ./xsim.covdb.
-file arg Specify file with location of the coverage databases to be restored.
-h Print help message and exit.
-help Print help message and exit.
-merge_db_name arg Name of the merged database. Default is xcrg_mdb.
-merge_dir arg Directory where the merged database is saved. Default is ./xsim.covdb.
-nolog Suppresses the log file generation.
-report_dir arg Directory where the coverage database and the report are saved. Default is ./xcrg_report.
-report_format arg Specify the desired format of the coverage report html or text or all. Default is html.
-log arg Specify the file name which has the log saved. Default is xcrg.log.

xcrg Example Syntax

xcrg -h
xcrg -file /path/to/file
xcrg -file /path/to/file -db_name work.top
xcrg -dir /path/to/abc
xcrg -dir ./abc -report_dir def -report_format html
xcrg -dir ./abc -db_name work.top -report_dir def -report_format html
xcrg -dir /path/to/abc -db_name work.top -report_dir def -report_format text
xcrg -merge_dir m
xcrg -merge_db_name xyz -report_dir def
xcrg -report_format html -nolog
xcrg -report_format html -log xcrgOutput.log