读HLS Bluebook(三)之 IO and Memories

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

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值