mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Fix sc names (#2500)
cint.mainInt(nodep) walks the tree and populates m_ctorVarsVec. Reuse EmitCImp cint for the slow mainImp() emition steps to make sure we emit constructor calls to setup SystemC sc_module names.
This commit is contained in:
+2
-2
@@ -3791,8 +3791,8 @@ void V3EmitC::emitc() {
|
||||
nodep = VN_CAST(nodep->nextp(), NodeModule)) {
|
||||
if (VN_IS(nodep, Class)) continue; // Imped with ClassPackage
|
||||
// clang-format off
|
||||
{ EmitCImp cint; cint.mainInt(nodep); }
|
||||
{ EmitCImp slow; slow.mainImp(nodep, true); }
|
||||
EmitCImp cint; cint.mainInt(nodep);
|
||||
cint.mainImp(nodep, true);
|
||||
{ EmitCImp fast; fast.mainImp(nodep, false); }
|
||||
// clang-format on
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user