PandA-2024.02
documentation
tutorial_hpca_2023
04-axi
Exercise2
sum.c
Go to the documentation of this file.
1
#pragma HLS interface port = v mode = m_axi offset = direct
2
#pragma HLS interface port = n mode = m_axi offset = direct
3
4
int
sum
(
int
* v,
unsigned
* n)
5
{
6
int
sum
= 0;
7
8
for
(
unsigned
i = 0; i < *(n); i++)
9
{
10
sum += v[i];
11
}
12
13
return
sum
;
14
}
sum
int sum(int *v, unsigned *n)
Definition:
sum.c:4
Generated on Mon Feb 12 2024 13:02:48 for PandA-2024.02 by
1.8.13