Generate verilator coverage report in html

#合并覆盖率.dat文件为一个coverage.dat
 verilator_coverage  -write coverage.dat test.dat test_1.dat test_2.dat test_3.dat test_4.dat
#生成coverage.info  
 verilator_coverage  -write-info coverage.info coverage.dat
#生成 html覆盖率报告
genhtml coverage.info --output-directory coverage

Remark:

  1. https://aijishu.com/a/1060000000330400
  2. brew install iconv or apt-get install lcov

Leave a Reply

Your email address will not be published. Required fields are marked *