文章 ID: 000086543 內容類型: 疑難排解 最近查看日期: 2023 年 06 月 20 日

為什麼__builtin_popcountll Intel® HLS Compiler回報出意料之外的價值?

環境

  • Intel® Quartus® Prime Pro Edition 軟體
  • BUILT IN - ARTICLE INTRO SECOND COMPONENT
    描述

    由於 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 的未來版本中修復。

    相關產品

    本文章適用於 6 產品

    Intel® Cyclone® 10 GX FPGA
    Cyclone® V FPGA 與 SoC FPGA
    Intel® Arria® 10 FPGA 與 SoC FPGA
    Arria® V FPGA 與 SoC FPGA
    Intel® Stratix® 10 FPGA 與 SoC FPGA
    Intel® MAX® 10 FPGA

    這個頁面的內容綜合了英文原始內容的人工翻譯譯文與機器翻譯譯文。本內容是基於一般資訊目的,方便您參考而提供,不應視同完整或準確的內容。如果這個頁面的英文版與譯文之間發生任何牴觸,將受英文版規範及管轄。 查看這個頁面的英文版。