IO主要包括通过数值传递和通过指针(或references\数组)。
Unconditional IO
对应于"wire"类型,没有握手协议。
Unconditional IO is used most often for either control type interfaces, where the IO does not change, on in designs that are pipelined with II=1 and the IO is read or written every clock cycle.
具体细分如下:
Pass by Reference
Pass by reference is when a variable is declared as either a pointer or a reference on the design interface. This means that the data that the variable “points to” or “refers to” is stored externally. In other words the “data” is stored off-chip.
Example 5-1. Unconditional IO Passed by Reference
void accumulate(int din[4], int &dout, int &threshold, bool &flag){
int acc=0;
ACCUM:for

本文探讨了HLS中无条件IO(如通过引用和值传递)和有条件IO的概念。无条件IO类似于“wire”类型,主要用于控制类型接口或II=1的流水线设计。通过引用传递时,数据存储在外部;而通过值传递则在设计内部进行寄存。有条件IO引入了握手协议,降低了IO流量并解决了同步问题。
最低0.47元/天 解锁文章
365

被折叠的 条评论
为什么被折叠?



