Verilator

Форк
0
/
code_coverage.dat 
60 строк · 2.1 Кб
1
# -*- Python -*-
2
# DESCRIPTION: Verilator: Internal C++ code lcov control file
3
#
4
# Copyright 2019-2024 by Wilson Snyder. This program is free software; you
5
# can redistribute it and/or modify it under the terms of either the GNU
6
# Lesser General Public License Version 3 or the Perl Artistic License
7
# Version 2.0.
8
# SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
9

10
source_globs("src/*.cpp")
11
source_globs("src/*.h")
12
source_globs("src/*.l")
13
source_globs("src/*.y")
14
source_globs("src/obj_dbg/*.h")
15
source_globs("src/obj_dbg/*.cpp")
16
source_globs("include/*.c")
17
source_globs("include/*.cpp")
18
source_globs("include/*.h")
19
source_globs("include/*/*.h")
20
source_globs("include/*/*.cpp")
21
source_globs("include/*/*.c")
22

23
# Note *'s are removed when using fastcov
24
remove_source("/usr/*")
25
remove_source("*/include/sysc/*")
26
remove_source("*/V3Lexer_pregen.yy.cpp")
27
remove_source("*/V3PreLex_pregen.yy.cpp")
28
remove_source("*/verilog.c")
29
remove_source("*include/gtkwave/*")
30
# Something wrong in generation, unfortunately as would like this
31
#genhtml: ERROR: cannot read /svaha/wsnyder/SandBox/homecvs/v4/verilator/src/obj_dbg/verilog.y
32
#remove_source("*/src/obj_dbg/verilog.y")
33
remove_source("*test_regress/*")
34
remove_source("*examples/*")
35

36
# Remove collected coverage on each little test main file
37
# Would just be removed with remove_source in later step
38
remove_gcda_regexp(r'test_regress/.*/(Vt_|Vtop_).*\.gcda')
39

40
# Exclude line entirely, also excludes from function and branch coverage
41
exclude_line_regexp(r'\bv3fatalSrc\b')
42
exclude_line_regexp(r'\bfatalSrc\b')
43
exclude_line_regexp(r'\bVL_UNCOVERABLE\b')
44
exclude_line_regexp(r'\bVL_UNREACHABLE\b')
45
exclude_line_regexp(r'\bVL_FATAL')
46
exclude_line_regexp(r'\bUASSERT')
47
exclude_line_regexp(r'\bNUM_ASSERT')
48
exclude_line_regexp(r'\bERROR_RSVD_WORD')
49
exclude_line_regexp(r'\bV3ERROR_NA')
50
exclude_line_regexp(r'\bUINFO\b')
51
exclude_line_regexp(r'\bVL_DEFINE_DEBUG_FUNCTIONS\b')
52

53
# Exclude for branch coverage only
54
exclude_branch_regexp(r'\bdebug\(\)')
55
exclude_branch_regexp(r'\bassert\(')
56
exclude_branch_regexp(r'\bBROKEN_BASE_RTN\(')
57
exclude_branch_regexp(r'\bBROKEN_RTN\(')
58
exclude_branch_regexp(r'\bSELF_CHECK')
59

60
True
61

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.