From ac619ef3d864e09181f3762eae17e232deda4e02 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 14 Oct 2008 14:27:11 -0400 Subject: [PATCH] Include Verilog file's directory name in coverage reports. --- Changes | 2 ++ src/V3EmitC.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 44e10d4a5..32d95798f 100644 --- a/Changes +++ b/Changes @@ -21,6 +21,8 @@ indicates the contributor was also the author of the fix; Thanks! **** Fix genvars causing link error when using --public. [Chris Candler] +**** Include Verilog file's directory name in coverage reports. + * Verilator 3.671 2008/09/19 ** SystemC uint64_t pins are now the default instead of sc_bv<64>. diff --git a/src/V3EmitC.cpp b/src/V3EmitC.cpp index 91e4eb85b..161df0aa7 100644 --- a/src/V3EmitC.cpp +++ b/src/V3EmitC.cpp @@ -214,7 +214,7 @@ public: puts("__vlCoverInsert("); // As Declared in emitCoverageDecl puts("&__Vcoverage["); puts(cvtToStr(m_coverIds.remap(nodep))); puts("]"); - puts(", \""); puts(nodep->fileline()->filebasename()); puts("\""); + puts(", \""); puts(nodep->fileline()->filename()); puts("\""); puts(", "); puts(cvtToStr(nodep->fileline()->lineno())); puts(", "); puts(cvtToStr(nodep->column())); puts(", \""); puts(nodep->hier()); puts("\"");