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:
Edgar E. Iglesias
2020-08-13 08:23:02 -04:00
committed by GitHub
parent 20c906261b
commit 5d98035170
5 changed files with 74 additions and 2 deletions
+2 -2
View File
@@ -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
}