Allow top name to be '' for invisible shells

This commit is contained in:
Wilson Snyder
2010-02-02 21:09:11 -05:00
parent 53fda88d4c
commit 5d5952d354
4 changed files with 12 additions and 9 deletions
+5 -1
View File
@@ -1712,7 +1712,11 @@ void EmitCImp::emitInt(AstNodeModule* modp) {
puts("VL_CTOR("+modClassName(modp)+");\n");
puts("~"+modClassName(modp)+"();\n");
} else {
if (modp->isTop()) puts("/// Construct the model; called by application code\n");
if (modp->isTop()) {
puts("/// Construct the model; called by application code\n");
puts("/// The special name "" may be used to make a wrapper with a\n");
puts("/// single model invisible WRT DPI scope names.\n");
}
puts(modClassName(modp)+"(const char* name=\"TOP\");\n");
if (modp->isTop()) puts("/// Destroy the model; called (often implicitly) by application code\n");
puts("~"+modClassName(modp)+"();\n");