1
0
mirror of synced 2026-04-18 10:26:18 +00:00

Add rewrite_filename for sim -vcd argument.

This commit is contained in:
Chris Dailey
2020-11-24 15:17:16 -05:00
committed by GitHub
parent 949eb95593
commit cdc802e4b7

View File

@@ -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()) {