mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 10:33:13 +02:00
Framework for WDatas being vectors of 64-bit EDatas, but not supporting this at this time.
This commit is contained in:
+8
-4
@@ -630,10 +630,14 @@ private:
|
||||
return new AstCStmt(portp->fileline(), linesp);
|
||||
}
|
||||
// Use a AstCMath, as we want V3Clean to mask off bits that don't make sense.
|
||||
int cwidth = VL_WORDSIZE;
|
||||
if (portp->basicp()) cwidth = portp->basicp()->keyword().width();
|
||||
if (portp->basicp()
|
||||
&& portp->basicp()->keyword().isBitLogic()) cwidth = VL_WORDSIZE*portp->widthWords();
|
||||
int cwidth = VL_IDATASIZE;
|
||||
if (portp->basicp()) {
|
||||
if (portp->basicp()->keyword().isBitLogic()) {
|
||||
cwidth = VL_EDATASIZE * portp->widthWords();
|
||||
} else {
|
||||
cwidth = portp->basicp()->keyword().width();
|
||||
}
|
||||
}
|
||||
AstNode* newp = new AstAssign(portp->fileline(),
|
||||
new AstVarRef(portp->fileline(), portvscp, true),
|
||||
new AstSel(portp->fileline(),
|
||||
|
||||
Reference in New Issue
Block a user