Rename internal interface references, part of #2614.

This commit is contained in:
Wilson Snyder 2020-11-01 20:52:21 -05:00
parent 5821048df7
commit b663d1a230

View File

@ -1861,8 +1861,8 @@ private:
AstVar* makeIfaceModportVar(FileLine* fl, AstCell* cellp, AstIface* ifacep, AstVar* makeIfaceModportVar(FileLine* fl, AstCell* cellp, AstIface* ifacep,
AstModport* modportp) { AstModport* modportp) {
// Create iface variable, using duplicate var when under same module scope // Create iface variable, using duplicate var when under same module scope
string varName = ifacep->name() + "__Vmp__" + modportp->name() + "__Viftop" string varName
+ cvtToStr(++m_modportNum); = cellp->name() + "__Vmp__" + modportp->name() + "__Viftop" + cvtToStr(++m_modportNum);
AstIfaceRefDType* idtypep = new AstIfaceRefDType(fl, modportp->fileline(), cellp->name(), AstIfaceRefDType* idtypep = new AstIfaceRefDType(fl, modportp->fileline(), cellp->name(),
ifacep->name(), modportp->name()); ifacep->name(), modportp->name());
idtypep->cellp(cellp); idtypep->cellp(cellp);