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

Closed
veripoolbot opened this issue Aug 7, 2015 · 1 comment
Closed

Coverage failure #954

veripoolbot opened this issue Aug 7, 2015 · 1 comment
Assignees
Labels
area: usability Issue involves general usability resolution: fixed Closed; fixed

Comments

@veripoolbot
Copy link
Contributor


Author Name: Thomas J Whatson
Original Redmine Issue: 954 from https://www.veripool.org
Original Date: 2015-08-07
Original Assignee: Wilson Snyder (@wsnyder)


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

@veripoolbot
Copy link
Contributor Author


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!

@veripoolbot veripoolbot added area: usability Issue involves general usability resolution: fixed Closed; fixed labels Dec 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: usability Issue involves general usability resolution: fixed Closed; fixed
Projects
None yet
Development

No branches or pull requests

2 participants