Project

General

Profile

[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  BugVise
  CovVise
  Force-Gate-Sim
  Gspice
  IPC::Locker
  Rsvn
  SVN::S4
  Voneline
  WFH
General Info
  Papers

Issue #954

Coverage failure

Added by Thomas J Whatson about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Usage
% Done:

0%


Description

Hi

I installed the latest Verilator 3.875 from trunk on Ubuntu 14.04 64bit. I also installed SYSTEMC, VerilogPerl and SystemPerl as required in documentation

1. When I run make test in the verilator folder, it reports that tests are passed, but I see no coverage info in the test_sc/logs folder. 2. I'm running verilator in the C++ environment. When I add the following lines to my main.cpp,

//inside main.cpp

    mkdir("logs", 0777);
#if VM_COVERAGE
    SpCoverage::write();  // Writes logs/coverage.pl
#endif
I get compilation error:
../main.cpp: In function ‘int main(int, char**, char**)’:
../main.cpp:130:5: error: ‘SpCoverage’ has not been declared
     SpCoverage::write();  // Writes logs/coverage.pl
     ^
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-parentheses-equality" [enabled by default]

I believe there's something wrong with the coverage feature. Please fix it or write a clear guide how to add coverage to C++ environments.

Thanks, Alan

History

#1 Updated by Wilson Snyder about 4 years ago

  • Description updated (diff)

#2 Updated by Wilson Snyder about 4 years ago

  • Status changed from New to Closed
  • Assignee set to Wilson Snyder

Sorry, SpCoverage is now VerilatedCov. In git fixed example and updated bin/verilator docs. We welcome patches to help improve the documentation!

Also available in: Atom