Vitis HLS 支持在 C++ 中使用模板进行综合。Vitis HLS 不支持对顶层函数使用模板。请参阅 GitHub 上的 Vitis-HLS-Introductory-Examples/Modeling/using_C++_templates,以获取这些概念的示例。
重要: 不能使用模板作为顶层函数。
Vitis HLS 支持在 C++ 中使用模板进行综合。Vitis HLS 不支持对顶层函数使用模板。请参阅 GitHub 上的 Vitis-HLS-Introductory-Examples/Modeling/using_C++_templates,以获取这些概念的示例。