aboutsummaryrefslogtreecommitdiffstats
path: root/passes/sat
diff options
context:
space:
mode:
authorChris Dailey <nitz@users.noreply.github.com>2020-11-24 15:17:16 -0500
committerGitHub <noreply@github.com>2020-11-24 15:17:16 -0500
commitcdc802e4b77e6fecd250850c99469b81c2c7f104 (patch)
tree783ffe12c2560b4805e9f96a823ab1c8ae20497f /passes/sat
parent949eb95593aec0753010289612d018c21ae46c5e (diff)
downloadyosys-cdc802e4b77e6fecd250850c99469b81c2c7f104.tar.gz
yosys-cdc802e4b77e6fecd250850c99469b81c2c7f104.tar.bz2
yosys-cdc802e4b77e6fecd250850c99469b81c2c7f104.zip
Add rewrite_filename for sim -vcd argument.
Diffstat (limited to 'passes/sat')
-rw-r--r--passes/sat/sim.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/passes/sat/sim.cc b/passes/sat/sim.cc
index 75f922dba..3ba66bd33 100644
--- a/passes/sat/sim.cc
+++ b/passes/sat/sim.cc
@@ -810,7 +810,9 @@ struct SimPass : public Pass {
size_t argidx;
for (argidx = 1; argidx < args.size(); argidx++) {
if (args[argidx] == "-vcd" && argidx+1 < args.size()) {
- worker.vcdfile.open(args[++argidx].c_str());
+ std::string vcd_filename = args[++argidx];
+ rewrite_filename(vcd_filename);
+ worker.vcdfile.open(vcd_filename.c_str());
continue;
}
if (args[argidx] == "-n" && argidx+1 < args.size()) {