Allow empty top-level module name, to match standalone simulation

This commit is contained in:
Wilson Snyder
2010-02-03 19:19:18 -05:00
parent e40fbf1470
commit 3912e5ef0b
6 changed files with 34 additions and 13 deletions
+2 -1
View File
@@ -290,7 +290,8 @@ void EmitCSyms::emitSymImp() {
} else {
ofp()->printf("\t%c %-30s ", comma, scopep->nameDotless().c_str());
puts("(Verilated::catName(topp->name(),");
putsQuoted("."+scopep->prettyName());
// The "." is added by catName
putsQuoted(scopep->prettyName());
puts("))\n");
comma=',';
}