Hi,
I was trying to run the a simple array case in Bambu and generate a testbench. The code is given below:
#include <stdio.h>
#include <stdlib.h>
int fct(unsigned char array1[12], unsigned char array2[12], int size) {
int result1 = 0;
int array3[12];
int i,j;
//int a, b, c;
for (i = 0; i < size; i++) {
array3[i] = array1[i]*array2[i];
result1 = result1 + array3[i];
}
return result1;
}
However, in the testbench the array size was not as defined in the c code. It also said that the simulation failed. Can you please let me know if we have made any errors from my side?
I have attached the values.txt with this mail.