How do I use code coverage in the command line?

Solution

To use code coverage in the command line, please use the -acdb switch with the asim command. In order for code coverage to be collected, the files should be compiled with debugging information (-dbg switch). As the simulation advances, you can control the Code Coverage engine with the coverage commands (coverage clear, coverage disable, coverage enable, coverage off, coverage write).

The -acdb argument cannot be used in conjunction with the -profiler argument. For example:

asim -lib work -acdb -acdb_dest ./results tb


Printed version of site: www.aldec.com/en/support/resources/documentation/faq/1630