mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Internals: Some prep from branch towards multitrace (#5813 prep)
This commit is contained in:
@@ -82,7 +82,7 @@ class EmitCModel final : public EmitCFunc {
|
||||
puts("\n");
|
||||
puts("class " + EmitCUtil::symClassName() + ";\n");
|
||||
puts("class " + EmitCUtil::prefixNameProtect(modp) + ";\n"); // For rootp pointer only
|
||||
if (v3Global.opt.trace()) puts("class " + v3Global.opt.traceClassLang() + ";\n");
|
||||
for (const string& base : v3Global.opt.traceClassLangs()) puts("class " + base + ";\n");
|
||||
emitModCUse(modp, VUseType::INT_FWD_CLASS); // Note: This is needed for cell forwarding
|
||||
|
||||
puts("\n");
|
||||
@@ -637,9 +637,8 @@ class EmitCModel final : public EmitCFunc {
|
||||
|
||||
puts("\n");
|
||||
puts("#include \"" + EmitCUtil::pchClassName() + ".h\"\n");
|
||||
if (v3Global.opt.trace()) {
|
||||
puts("#include \"" + v3Global.opt.traceSourceLang() + ".h\"\n");
|
||||
}
|
||||
for (const string& base : v3Global.opt.traceSourceLangs())
|
||||
puts("#include \"" + base + ".h\"\n");
|
||||
|
||||
emitConstructorImplementation(modp);
|
||||
emitDestructorImplementation();
|
||||
|
||||
Reference in New Issue
Block a user