mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Add --hierarchical-threads (#6037)
This commit is contained in:
@@ -503,8 +503,11 @@ class EmitCModel final : public EmitCFunc {
|
||||
+ "::hierName() const { return vlSymsp->name(); }\n");
|
||||
putns(modp, "const char* " + topClassName() + "::modelName() const { return \""
|
||||
+ topClassName() + "\"; }\n");
|
||||
const int threads = v3Global.opt.hierChild()
|
||||
? v3Global.opt.threads()
|
||||
: std::max(v3Global.opt.threads(), v3Global.opt.hierThreads());
|
||||
putns(modp, "unsigned " + topClassName() + "::threads() const { return "
|
||||
+ cvtToStr(v3Global.opt.threads()) + "; }\n");
|
||||
+ cvtToStr(threads) + "; }\n");
|
||||
putns(modp, "void " + topClassName()
|
||||
+ "::prepareClone() const { contextp()->prepareClone(); }\n");
|
||||
putns(modp, "void " + topClassName() + "::atClone() const {\n");
|
||||
|
||||
Reference in New Issue
Block a user