Fix DPI undeclared svBitVecVal compile error, bug346. Additional change.

This commit is contained in:
Wilson Snyder 2011-05-12 06:59:13 -04:00
parent 4af0af93bf
commit 9558e14479

View File

@ -1619,7 +1619,12 @@ void EmitCImp::emitInt(AstNodeModule* modp) {
if (v3Global.needHInlines()) { // Set by V3EmitCInlines; should have been called before us
puts("#include \""+topClassName()+"__Inlines.h\"\n");
}
// No __Dpi.h needed, we've shimmed it all into the interface
if (v3Global.dpi()) {
// do this before including our main .h file so that any references to
// types defined in svdpi.h are available
puts("#include \""+ topClassName() +"__Dpi.h\"\n");
puts("\n");
}
// Declare foreign instances up front to make C++ happy
puts("class "+symClassName()+";\n");
@ -1792,12 +1797,6 @@ void EmitCImp::emitImp(AstNodeModule* modp) {
puts("//############################################################\n");
puts("#sp implementation\n");
}
if (v3Global.dpi()) {
// do this before including our main .h file so that any references to
// types defined in svdpi.h are available
puts("#include \""+ topClassName() +"__Dpi.h\"\n");
puts("\n");
}
ofp()->printf("#include \"%-20s // For This\n",
(modClassName(modp)+".h\"").c_str());