Project

General

Profile

Actions

HDL Testbench Simulation

To run HDL testbench on ModelSim simulator and collect the coverage data, do the following:

1. Copy testbench_launch.sh script to the directory with HDL testbench.

2. Run the script with the following arguments:

-f path-to-hdl-file-under-test -g

3. On ModelSim press "Run All" button.

To generate an HTML report about test coverage at the GUI mode do the following:

1. Collect coverage information (create a coverage database for the specified test):

coverage save -onexit -testname <testname> <cov_database.ucdb>

2. Merge the produced database with the general one (after exit from ModelSim):
vcover merge <cov_database.ucdb> <overall_database.ucdb> -o <overall_database.ucdb>

3. Generate an HTML report:
vcover report -html <overall_database.ucdb>

To generate an HTML report about test coverage at command line mode run the testbench_launch.sh script with the following parameters:

-f path-to-hdl-file-under-test

and then do:
vcover report -html <overall_database.ucdb>

Updated by Sergey Smolov about 8 years ago · 3 revisions