From 5dc8fb5b4fa663efb4981d28c4c7d61d507d5c89 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Mon, 4 Mar 2024 08:04:39 -0500 Subject: [PATCH] Commentary (#4930) --- docs/guide/faq.rst | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/guide/faq.rst b/docs/guide/faq.rst index f342e55f0..778f10f6f 100644 --- a/docs/guide/faq.rst +++ b/docs/guide/faq.rst @@ -128,10 +128,13 @@ How do I generate waveforms (traces) in C++? See also the next question for tracing in SystemC mode. -A. Pass the :vlopt:`--trace` option to Verilator, and in your top-level C - code, call ``Verilated::traceEverOn(true)``. Then you may use - ``$dumpfile`` and ``$dumpvars`` to enable traces, the same as with any - Verilog simulator. See ``examples/make_tracing_c`` in the distribution. +A. Pass the :vlopt:`--trace` option to Verilator. Then you may use ``$dumpfile`` and + ``$dumpvars`` to enable traces, the same as with any Verilog simulator, + although Verilator ignores the arguments to ``$dumpvars``. See + ``examples/make_tracing_c`` in the distribution. + + If writing the top-level C code, call ``Verilated::traceEverOn(true)``; + this is done for you if using :vlopt:`--binary`. B. Or, for finer-grained control, or C++ files with multiple Verilated modules, you may also create the trace purely from C++. Create a