Fix DPI import output of 64 bits, bug398.

This commit is contained in:
Wilson Snyder
2011-10-07 19:47:10 -04:00
parent ca2db37039
commit e080b9d565
4 changed files with 13 additions and 0 deletions
+5
View File
@@ -618,6 +618,11 @@ private:
stmt += "VL_CVT_VP_Q(";
ket += ")";
}
else if (portp->basicp() && portp->basicp()->isBitLogic() && portp->widthMin() != 1 && portp->isQuad()) {
// SV is vector, Verilator isn't
stmt += "VL_SET_QW(";
ket += ")";
}
if (!cvt
&& portp->basicp() && portp->basicp()->isBitLogic() && portp->widthMin() != 1 && !portp->isWide())
stmt += "*"; // it's a svBitVecVal, which other code won't think is arrayed (as WData aren't), but really is