You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Verilator is generating calls to a undefined function named VL_SHIFTR_QQW.
This bug is nearly identical to that reported in [[1412-Verilator-Verilator-generates-calls-to-an-undefined-function-named-VL_SHIFTL_QQW]]
I've found that defining this function in include/verilated.h fixes this issue. To resolve, simply add the following definition to include/verilated.h after VL_SHIFTR_IIW:
static inline QData VL_SHIFTR_QQW(int obits,int,int rbits,QData lhs, WDataInP rwp) VL_MT_SAFE {
for (int i=1; i < VL_WORDS_I(rbits); ++i) {
if (VL_UNLIKELY(rwp[i])) { // Huge shift 1>>32 or more
return 0;
}
}
return VL_CLEAN_QQ(obits,obits,lhs>>(static_cast<QData>(rwp[0])));
}
</code>
Author Name: Larry Lee (@llee454)
Original Redmine Issue: 1415 from https://www.veripool.org
Original Assignee: Larry Lee (@llee454)
Verilator is generating calls to a undefined function named VL_SHIFTR_QQW.
This bug is nearly identical to that reported in [[1412-Verilator-Verilator-generates-calls-to-an-undefined-function-named-VL_SHIFTL_QQW]]
I've found that defining this function in include/verilated.h fixes this issue. To resolve, simply add the following definition to include/verilated.h after VL_SHIFTR_IIW:
I've created a Git fork with the necessary changes that can be pulled into your Git repo: https://github.com/llee454/verilator
The text was updated successfully, but these errors were encountered: