Using ap_float_acc<> Restrictions - 2024.2 English - UG1399

Vitis High-Level Synthesis User Guide (UG1399)

Document ID
UG1399
Release Date
2024-11-13
Version
2024.2 English

An array of ap_float_acc<> instances must be fully partitioned by using the array_partition pragma.

The ap_float_acc<> helper class does not support crossing hierarchies and cannot be copied:

  • Declare the ap_float_acc instance in the same function as the accumulate member function will be used; this also applies to the dataflow process.
  • If the accumulate function is used in a pipelined loop it should only be used in that loop (as the compiler extracts pipelined loops into their own function).