由於 Intel® HLS Compiler Pro 版本 18.1 或更早版本的問題,您可能會看到 __builtin_popcountll(未簽名長) 和 __builtin_popcountl(未簽名長)的意外價值。在編譯Intel HLS Compiler標準版本 18.1 或更早版本時,您也可能會看到「錯誤:Cosim testbench 詳細闡述失敗。」這些內建功能。
為了避免此錯誤,請使用 __builtin_popcount(未指派的 int), 而不是下列功能:
int __builtin_popcountll_workaround(未簽名的長 v)
{
退回__builtin_popcount(未指派的 int)v) __builtin_popcount(未指派的 int)(v>>32);
}
此問題排定在包括Intel HLS Compiler在內的 Intel® Quartus® Prime Pro/Standard Edition Software 的未來版本中修復。