How do I use code coverage in the command line?

Solution

To use code coverage in the command line, please use the -cc 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 -cc argument cannot be used in conjunction with the -profiler argument. For example:

asim -lib work -cc -cc_dest ./results tb
Ask Us a Question
x

Ask Us a Question

x
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.