取消
显示结果 
搜索替代 
您的意思是: 
Highlighted
Observer
Observer
153 次查看
注册日期: ‎01-14-2019

关于#pragma AP PIPELINE II = 1的疑问

void copy_buffer(unsigned int* input, unsigned int* output)
{
unsigned int i,j;
unsigned index;
for (i = 0; i < FRAME_HEIGHT; i++) {
for (j = 0; j < FRAME_WIDTH; j++) {
#pragma AP PIPELINE II = 1
index = i*FRAME_WIDTH + j;
output[index] = input[index];
}
}
}

请问程序中的void copy_buffer(unsigned int* input, unsigned int* output)
{
unsigned int i,j;
unsigned index;
for (i = 0; i < FRAME_HEIGHT; i++) {
for (j = 0; j < FRAME_WIDTH; j++) {
#pragma AP PIPELINE II = 1
index = i*FRAME_WIDTH + j;
output[index] = input[index];
}
}
}

请问程序中的

#pragma AP PIPELINE II = 1 

 的作用是什么

0 项奖励
1 条回复1
Highlighted
Xilinx Employee
Xilinx Employee
144 次查看
注册日期: ‎07-17-2008

回复: 关于#pragma AP PIPELINE II = 1的疑问

II是Initial Interval的简称,你可以看看UG902的相关内容。定义如下:

Initiation interval (II): Number of clock cycles before the function can accept new input data.

文档的第11页,Figure 3有一个图例,可以比较直观地看一下performance的各项指标。

II=1可以不间断地接收新的输入,增大吞吐量。

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 项奖励