How do I use code coverage in the command line?


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
Ask Us a Question
Ask Us a Question
Captcha ImageReload Captcha
Incorrect data entered.
Thank you! Your question has been submitted. Please allow 1-3 business days for someone to respond to your question.
Internal error occurred. Your question was not submitted. Please contact us using Feedback form.
We use cookies to ensure we give you the best user experience and to provide you with content we believe will be of relevance to you. If you continue to use our site, you consent to our use of cookies. A detailed overview on the use of cookies and other website information is located in our Privacy Policy.