由于英特尔® HLS Compiler Pro 18.1 版或更早版本出现问题,您可能会看到 __builtin_popcountll(未签名长) 和 __builtin_popcountl(未签名长)带来的意外价值。您在编译英特尔 HLS Compiler标准版本 18.1 或更早版本时,可能会看到“错误:Cosim testbench 细化失败。”
为了避免此错误,请使用 __builtin_popcount(未签名的 int) 代替以下功能:
int __builtin_popcountll_workaround(未签名长 v)
{
返回__builtin_popcount(未签名的 int)v) __builtin_popcount(未签名的 int)(v>>32);
}
此问题计划在英特尔® Quartus® Prime 专业版/标准版软件(包括英特尔 HLS Compiler)的未来发行版中修复。