Technical data

Simulating with Code Coverage
10-94 ModelSim EE/SE Tutorial
This switch configures the test bench – the ringrtl.vhd file. Changing this entry in
the text file causes two different tests to be run from the same test bench.
4 Compile top level block, test bench and configuration files.
vcom ringrtl.vhd testring.vhd config_rtl.vhd
(MENU: Design > Compile)
5 Use the vsim -coverage command to load the design configuration with Code
Coverage.
vsim -coverage work.test_bench_rtl
(MENU: Design > Load New Design)
6 Run the simulator for 3 milliseconds.
run 3000000
7 Display the coverage_summary window.
view_coverage
(MENU: View > Other > Source Coverage)