On 05/03/2016 09:07 AM, Antonio Bergnoli wrote:
A code coverage article was written by Arnim Läuger in 2005. A copy can be 
found here:
http://home.mnet-online.de/al/ghdl_gcov/ghdl_gcov.html
Are you referring to this article, by writing "in the past”?

Yes following this tutorial i was able to do code coverage.

Hallo *,

obtaining a coverage analysis of a test bench via

  ghdl -a -Wc,-ftest-coverage -Wc,-fprofile-arcs ... <unit>.vhd
  ghdl -e -Wl,-lgcov <toplevel configuration>

as stated by Arnim Läuger in the write-up from 2005 apparently doesn't
work with 0.33, I get

  ghdl -a -Wc,-ftest-coverage -Wc,-fprofile-arcs testgcov_v.vhd
  unknown option '-ftest-coverage'

In Tristans FOSDEM'16 slides is on slide 6 the line

  * Coverage (with gcov)

but it's unclear what the context is (what is profiled ?). The ghdl manual
on http://ghdl.readthedocs.io/en/latest/ doesn't say anything on this topic.

In an email from Tristan send 2014 is the statement

   On 02/23/2014 10:12 AM, tging...@free.fr wrote:
   >> Is there a way to get code coverage?
   > The simplest way is to use gcov.
   > Tristan.

So apparently it should work, but as apparently it seems to be not
well documented.

So I'd very much appreciate if Tristan could briefly explain how to
setup coverage analysis with ghdl 0.33.

                With best regards,   Walter

_______________________________________________
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to