Fix genblk naming with directly nested generate blocks, #2176.

This commit is contained in:
Wilson Snyder
2020-02-25 22:21:16 -05:00
parent 4c438bbc67
commit 68b6a0b667
20 changed files with 390 additions and 39 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ private:
while ((pos=dottedname.find("__DOT__")) != string::npos) {
string ident = dottedname.substr(0, pos);
dottedname = dottedname.substr(pos+strlen("__DOT__"));
if (!nodep->unnamed()) {
if (nodep->name() != "") {
if (m_namedScope=="") m_namedScope = ident;
else m_namedScope = m_namedScope + "__DOT__"+ident;
}