1 #pragma HLS interface port = a mode = m_axi offset = direct 2 #pragma HLS interface port = n_ptr mode = m_axi offset = direct 3 #pragma HLS interface port = res mode = m_axi offset = direct 5 void maxNumbers(
int* a,
unsigned int* n_ptr,
int* res)
10 unsigned int n = *n_ptr;
14 *res = (int)(1 << 31);
18 for(i = 1; i < n; ++i)
19 result = result < a[i] ? a[i] : result;
void maxNumbers(int *a, unsigned int *n_ptr, int *res)