diff options
author | whitequark <whitequark@whitequark.org> | 2020-11-25 02:48:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-25 02:48:10 +0000 |
commit | 2a39c785a210be8c0386e6f6d1a2cf2e4fc67589 (patch) | |
tree | d3004a110b55a779a3e498303708a9d1a445b74c /passes | |
parent | 88c47a380bdd62b633b11d1e763e7bcfd54ef423 (diff) | |
parent | cdc802e4b77e6fecd250850c99469b81c2c7f104 (diff) | |
download | yosys-2a39c785a210be8c0386e6f6d1a2cf2e4fc67589.tar.gz yosys-2a39c785a210be8c0386e6f6d1a2cf2e4fc67589.tar.bz2 yosys-2a39c785a210be8c0386e6f6d1a2cf2e4fc67589.zip |
Merge pull request #2450 from nitz/sim-vcd-filename
Add rewrite_filename for sim -vcd argument.
Diffstat (limited to 'passes')
-rw-r--r-- | passes/sat/sim.cc | 4 |
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()) { |