Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coverage failure #954

veripoolbot opened this issue Aug 7, 2015 · 1 comment

Coverage failure #954

veripoolbot opened this issue Aug 7, 2015 · 1 comment


Copy link

@veripoolbot veripoolbot commented Aug 7, 2015

Author Name: Thomas J Whatson
Original Redmine Issue: 954 from
Original Date: 2015-08-07
Original Assignee: Wilson Snyder (@wsnyder)


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);
     SpCoverage::write();  // Writes logs/

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/
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.



This comment has been minimized.

Copy link

@veripoolbot veripoolbot commented Aug 12, 2015

Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2015-08-12T23:19:51Z

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.