Skip to content

Commit

Permalink
Fix Verilog backend string import
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolu1990 committed Dec 19, 2017
1 parent 5c1cbcf commit 42c058a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sim/src/main/scala/spinal/sim/VerilatorBackend.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class VerilatorBackend(val config : VerilatorBackendConfig) {
def genWrapperCpp(): Unit = {
val wrapperString = s"""
#include <stdint.h>
#include <string>

#include "V${config.toplevelName}.h"
#include "verilated_vcd_c.h"
Expand Down Expand Up @@ -158,7 +159,7 @@ ${val signalInits = for((signal, id) <- config.signals.zipWithIndex)
#ifdef TRACE
Verilated::traceEverOn(true);
top.trace(&tfp, 99);
tfp.open((string("${config.workspacePath}/V${config.toplevelName}_") + name + ".vcd").c_str());
tfp.open((std::string("${config.workspacePath}/V${config.toplevelName}_") + name + ".vcd").c_str());
#endif
}

Expand Down

0 comments on commit 42c058a

Please sign in to comment.