Fix setting thread count in VerilatedContext (#6826 partial) (#6841)

This commit is contained in:
Yangyu Chen 2025-12-19 23:59:43 +08:00 committed by GitHub
parent 5cee225022
commit 47d1a50aa4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ private:
puts("Verilated::debug(0);\n"); puts("Verilated::debug(0);\n");
puts("const std::unique_ptr<VerilatedContext> contextp{new VerilatedContext};\n"); puts("const std::unique_ptr<VerilatedContext> contextp{new VerilatedContext};\n");
if (v3Global.opt.trace()) puts("contextp->traceEverOn(true);\n"); if (v3Global.opt.trace()) puts("contextp->traceEverOn(true);\n");
puts("contextp->threads(" + std::to_string(v3Global.opt.threads()) + ");\n");
puts("contextp->commandArgs(argc, argv);\n"); puts("contextp->commandArgs(argc, argv);\n");
puts("\n"); puts("\n");