Fix truncation warning with -pins-bv, bug912.

This commit is contained in:
Wilson Snyder 2015-04-28 21:31:25 -04:00
parent 49fa65c0dd
commit 238a5809bf
2 changed files with 7 additions and 5 deletions

View File

@ -5,9 +5,11 @@ indicates the contributor was also the author of the fix; Thanks!
* Verilator 3.873 devel
**** Fix installing missing manpages, bug908. [Ahmed El-Mahmoudy]
**** Fix installing missing manpages, bug908. [Ahmed El-Mahmoudy]
**** Fix core dump in sync-async warnings, bug911. [Sebastian Dressler]
**** Fix core dump in sync-async warnings, bug911. [Sebastian Dressler]
**** Fix truncation warning with -pins-bv, bug912. [Alfonso Martinez]
* Verilator 3.872 2015-04-05

View File

@ -594,13 +594,13 @@ static inline void VL_ASSIGNBIT_WO(int, int bit, WDataOutP owp, IData) {
#define VL_ASSIGN_SWI(obits,svar,rd) { \
sc_bv<obits> _bvtemp; \
_bvtemp.set_word(0,rd); \
_bvtemp.set_word(0,(rd)); \
svar.write(_bvtemp); \
}
#define VL_ASSIGN_SWQ(obits,svar,rd) { \
sc_bv<obits> _bvtemp; \
_bvtemp.set_word(0,rd); \
_bvtemp.set_word(1,rd>>VL_WORDSIZE); \
_bvtemp.set_word(0,(IData)(rd)); \
_bvtemp.set_word(1,(IData)((rd)>>VL_WORDSIZE)); \
svar.write(_bvtemp); \
}
#define VL_ASSIGN_SWW(obits,svar,rwp) { \