VIVADO HLS:如何在任意精度类型中声明 "total width of the variable"?

VIVADO HLS: How to declare "total width of the variable" in Arbitrary Precision Types?

我正在使用 XILINX VIVADO HLS,我需要 运行 C/C++ 代码和 "Arbitrary Precision Types"。所以,我已经浏览了 UG902 Xilinx 中的 "Arbitrary Precision Types" 个主题 guidebook.But 我不太清楚这个主题。我不知道如何初始化"total width of the variable"。谁能举例说明一下?

 int#W,
 uint#W

数字#W 指定声明的变量的总宽度。 假设我的数组大小是 102(一维数组)或 102x204(二维数组)。你将如何声明 "total width of the variable"。

任意精度类型的宽度是指变量中的位数,它与数组中存储精度类型是正交的。

例如,如果您想要 4 位的 102 个元素,您将使用:

int4 array[102];