#合并覆盖率.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:
- https://aijishu.com/a/1060000000330400
- brew install iconv or apt-get install lcov