> (our workflow has been expained) what they did that i am going to follow with some modification.
Have you managed to make it work with NO modification?
Code:
#include <ap_cint.h>
#include "head.h"
void foo_top (uint32 *m,int con,uint32 BASE_ADDR) {
uint32 buff[N];
int i;
if (con == 0x00000001)
{
memcpy(buff, m+(BASE_ADDR/4), N * sizeof(uint32));
buff[0] +=1;
for (i = 0; i < N-1; i++) {
buff[i+1]= buff[i]+ 1;
}
memcpy(m+(BASE_ADDR/4), buff, N * sizeof(uint32));
}
}
Have you tried replacing
buff[i+1]= buff[i]+ 1;
with
buff[i+1]= rand();
Is this your paid work?