SystemPerl is no longer required for tracing.

Applications must use VerilatedVcdC class in place of SpTraceVcdC.
This commit is contained in:
Wilson Snyder
2010-01-24 18:37:01 -05:00
parent 3e6e6ec0a5
commit 11e702c430
27 changed files with 1729 additions and 96 deletions
+3 -3
View File
@@ -8,7 +8,7 @@
#include <verilated.h> // Defines common routines
#include "Vtop.h" // From Verilating "top.v"
#if VM_TRACE
# include <SpTraceVcdC.h> // Trace file format header (from SystemPerl)
# include <verilated_vcd_c.h> // Trace file format header
#endif
Vtop *top; // Instantiation of module
@@ -28,8 +28,8 @@ int main(int argc, char **argv, char **env) {
#if VM_TRACE // If verilator was invoked with --trace
Verilated::traceEverOn(true); // Verilator must compute traced signals
cout << "Enabling waves...\n";
SpTraceVcdCFile* tfp = new SpTraceVcdCFile;
VL_PRINTF("Enabling waves...\n");
VerilatedVcdC* tfp = new VerilatedVcdC;
top->trace (tfp, 99); // Trace 99 levels of hierarchy
tfp->open ("vlt_dump.vcd"); // Open the dump file
#endif