Skip to content

Commit

Permalink
Test all files in verilog dir
Browse files Browse the repository at this point in the history
  • Loading branch information
RCoeurjoly committed May 25, 2024
1 parent 5085d0e commit 7d07bb3
Show file tree
Hide file tree
Showing 79 changed files with 8,029 additions and 33 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
defaultPackage = yosys;
packages.vcdiff = vcdiff;
devShell = pkgs.mkShell {
buildInputs = with pkgs; [ clang bison flex libffi tcl readline python3 llvmPackages.libcxxClang zlib git gtest abc-verifier gtkwave vcdiff ];
buildInputs = with pkgs; [ clang bison flex libffi tcl readline python3 llvmPackages.libcxxClang zlib git gtest abc-verifier gtkwave vcdiff lcov ];
};
}
);
Expand Down
4 changes: 2 additions & 2 deletions tests/functional/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
and_cxxrtl.cc
and_functional_cxx.cc
my_module_cxxrtl.cc
my_module_functional_cxx.cc
vcd_harness
cxxrtl.vcd
functional_cxx.vcd
Binary file added tests/functional/coverage_report/amber.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests/functional/coverage_report/emerald.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="en">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>LCOV - vcd_harness.info - functional/and_cxxrtl.cc - functions</title>
<link rel="stylesheet" type="text/css" href="../gcov.css">
</head>

<body>

<table width="100%" border=0 cellspacing=0 cellpadding=0>
<tr><td class="title">LCOV - code coverage report</td></tr>
<tr><td class="ruler"><img src="../glass.png" width=3 height=3 alt=""></td></tr>

<tr>
<td width="100%">
<table cellpadding=1 border=0 width="100%">
<tr>
<td width="10%" class="headerItem">Current view:</td>
<td width="35%" class="headerValue"><a href="../index.html">top level</a> - <a href="index.html">functional</a> - and_cxxrtl.cc<span style="font-size: 80%;"> (<a href="and_cxxrtl.cc.gcov.html">source</a> / functions)</span></td>
<td width="5%"></td>
<td width="15%"></td>
<td width="10%" class="headerCovTableHead">Hit</td>
<td width="10%" class="headerCovTableHead">Total</td>
<td width="15%" class="headerCovTableHead">Coverage</td>
</tr>
<tr>
<td class="headerItem">Test:</td>
<td class="headerValue">vcd_harness.info</td>
<td></td>
<td class="headerItem">Lines:</td>
<td class="headerCovTableEntry">22</td>
<td class="headerCovTableEntry">29</td>
<td class="headerCovTableEntryMed">75.9 %</td>
</tr>
<tr>
<td class="headerItem">Date:</td>
<td class="headerValue">1980-01-01 00:00:00</td>
<td></td>
<td class="headerItem">Functions:</td>
<td class="headerCovTableEntry">5</td>
<td class="headerCovTableEntry">7</td>
<td class="headerCovTableEntryLo">71.4 %</td>
</tr>
<tr><td><img src="../glass.png" width=3 height=3 alt=""></td></tr>
</table>
</td>
</tr>

<tr><td class="ruler"><img src="../glass.png" width=3 height=3 alt=""></td></tr>
</table>

<center>
<table width="60%" cellpadding=1 cellspacing=1 border=0>
<tr><td><br></td></tr>
<tr>
<td width="80%" class="tableHead">Function Name <span class="tableHeadSort"><a href="and_cxxrtl.cc.func.html"><img src="../updown.png" width=10 height=14 alt="Sort by function name" title="Sort by function name" border=0></a></span></td>
<td width="20%" class="tableHead">Hit count <span class="tableHeadSort"><img src="../glass.png" width=10 height=14 alt="Sort by hit count" title="Sort by hit count" border=0></span></td>
</tr>
<tr>
<td class="coverFn"><a href="and_cxxrtl.cc.gcov.html#59">_ZN13cxxrtl_design7p_Adder10debug_evalEv</a></td>
<td class="coverFnLo">0</td>
</tr>
<tr>
<td class="coverFn"><a href="and_cxxrtl.cc.gcov.html#81">cxxrtl_design_create</a></td>
<td class="coverFnLo">0</td>
</tr>
<tr>
<td class="coverFn"><a href="and_cxxrtl.cc.gcov.html#63">_ZN13cxxrtl_design7p_Adder10debug_infoEPN6cxxrtl11debug_itemsEPNS1_12debug_scopesENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEOSt3mapISB_NS1_8metadataESt4lessISB_ESaISt4pairIKSB_SD_EEE</a></td>
<td class="coverFnHi">3</td>
</tr>
<tr>
<td class="coverFn"><a href="and_cxxrtl.cc.gcov.html#48">_ZN13cxxrtl_design7p_Adder5resetEv</a></td>
<td class="coverFnHi">3</td>
</tr>
<tr>
<td class="coverFn"><a href="and_cxxrtl.cc.gcov.html#24">_ZN13cxxrtl_design7p_AdderC2Ev</a></td>
<td class="coverFnHi">3</td>
</tr>
<tr>
<td class="coverFn"><a href="and_cxxrtl.cc.gcov.html#51">_ZN13cxxrtl_design7p_Adder4evalEPN6cxxrtl9performerE</a></td>
<td class="coverFnHi">33</td>
</tr>
<tr>
<td class="coverFn"><a href="and_cxxrtl.cc.gcov.html#38">_ZN13cxxrtl_design7p_Adder6commitEv</a></td>
<td class="coverFnHi">33</td>
</tr>
</table>
<br>
</center>
<table width="100%" border=0 cellspacing=0 cellpadding=0>
<tr><td class="ruler"><img src="../glass.png" width=3 height=3 alt=""></td></tr>
<tr><td class="versionInfo">Generated by: <a href="https://github.com/linux-test-project/lcov" target="_parent">LCOV version 1.0</a></td></tr>
</table>
<br>

</body>
</html>
100 changes: 100 additions & 0 deletions tests/functional/coverage_report/functional/and_cxxrtl.cc.func.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="en">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>LCOV - vcd_harness.info - functional/and_cxxrtl.cc - functions</title>
<link rel="stylesheet" type="text/css" href="../gcov.css">
</head>

<body>

<table width="100%" border=0 cellspacing=0 cellpadding=0>
<tr><td class="title">LCOV - code coverage report</td></tr>
<tr><td class="ruler"><img src="../glass.png" width=3 height=3 alt=""></td></tr>

<tr>
<td width="100%">
<table cellpadding=1 border=0 width="100%">
<tr>
<td width="10%" class="headerItem">Current view:</td>
<td width="35%" class="headerValue"><a href="../index.html">top level</a> - <a href="index.html">functional</a> - and_cxxrtl.cc<span style="font-size: 80%;"> (<a href="and_cxxrtl.cc.gcov.html">source</a> / functions)</span></td>
<td width="5%"></td>
<td width="15%"></td>
<td width="10%" class="headerCovTableHead">Hit</td>
<td width="10%" class="headerCovTableHead">Total</td>
<td width="15%" class="headerCovTableHead">Coverage</td>
</tr>
<tr>
<td class="headerItem">Test:</td>
<td class="headerValue">vcd_harness.info</td>
<td></td>
<td class="headerItem">Lines:</td>
<td class="headerCovTableEntry">22</td>
<td class="headerCovTableEntry">29</td>
<td class="headerCovTableEntryMed">75.9 %</td>
</tr>
<tr>
<td class="headerItem">Date:</td>
<td class="headerValue">1980-01-01 00:00:00</td>
<td></td>
<td class="headerItem">Functions:</td>
<td class="headerCovTableEntry">5</td>
<td class="headerCovTableEntry">7</td>
<td class="headerCovTableEntryLo">71.4 %</td>
</tr>
<tr><td><img src="../glass.png" width=3 height=3 alt=""></td></tr>
</table>
</td>
</tr>

<tr><td class="ruler"><img src="../glass.png" width=3 height=3 alt=""></td></tr>
</table>

<center>
<table width="60%" cellpadding=1 cellspacing=1 border=0>
<tr><td><br></td></tr>
<tr>
<td width="80%" class="tableHead">Function Name <span class="tableHeadSort"><img src="../glass.png" width=10 height=14 alt="Sort by function name" title="Sort by function name" border=0></span></td>
<td width="20%" class="tableHead">Hit count <span class="tableHeadSort"><a href="and_cxxrtl.cc.func-sort-c.html"><img src="../updown.png" width=10 height=14 alt="Sort by hit count" title="Sort by hit count" border=0></a></span></td>
</tr>
<tr>
<td class="coverFn"><a href="and_cxxrtl.cc.gcov.html#59">_ZN13cxxrtl_design7p_Adder10debug_evalEv</a></td>
<td class="coverFnLo">0</td>
</tr>
<tr>
<td class="coverFn"><a href="and_cxxrtl.cc.gcov.html#63">_ZN13cxxrtl_design7p_Adder10debug_infoEPN6cxxrtl11debug_itemsEPNS1_12debug_scopesENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEOSt3mapISB_NS1_8metadataESt4lessISB_ESaISt4pairIKSB_SD_EEE</a></td>
<td class="coverFnHi">3</td>
</tr>
<tr>
<td class="coverFn"><a href="and_cxxrtl.cc.gcov.html#51">_ZN13cxxrtl_design7p_Adder4evalEPN6cxxrtl9performerE</a></td>
<td class="coverFnHi">33</td>
</tr>
<tr>
<td class="coverFn"><a href="and_cxxrtl.cc.gcov.html#48">_ZN13cxxrtl_design7p_Adder5resetEv</a></td>
<td class="coverFnHi">3</td>
</tr>
<tr>
<td class="coverFn"><a href="and_cxxrtl.cc.gcov.html#38">_ZN13cxxrtl_design7p_Adder6commitEv</a></td>
<td class="coverFnHi">33</td>
</tr>
<tr>
<td class="coverFn"><a href="and_cxxrtl.cc.gcov.html#24">_ZN13cxxrtl_design7p_AdderC2Ev</a></td>
<td class="coverFnHi">3</td>
</tr>
<tr>
<td class="coverFn"><a href="and_cxxrtl.cc.gcov.html#81">cxxrtl_design_create</a></td>
<td class="coverFnLo">0</td>
</tr>
</table>
<br>
</center>
<table width="100%" border=0 cellspacing=0 cellpadding=0>
<tr><td class="ruler"><img src="../glass.png" width=3 height=3 alt=""></td></tr>
<tr><td class="versionInfo">Generated by: <a href="https://github.com/linux-test-project/lcov" target="_parent">LCOV version 1.0</a></td></tr>
</table>
<br>

</body>
</html>
Loading

0 comments on commit 7d07bb3

Please sign in to comment.