Fix DPI undeclared svBitVecVal compile error, bug346.

This commit is contained in:
Wilson Snyder
2011-05-12 06:32:29 -04:00
parent df4bc950fe
commit 4af0af93bf
3 changed files with 10 additions and 3 deletions
+6 -3
View File
@@ -1792,14 +1792,17 @@ 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());
// Us
puts("#include \""+ symClassName() +".h\"\n");
if (v3Global.dpi()) {
puts("#include \""+ topClassName() +"__Dpi.h\"\n");
}
if (optSystemPerl() && (splitFilenum() || !m_fast)) {
puts("\n");