Thanks for the explanation Donq. I have to master this pointer business quickly! I tried the changes but I am still not successful in what I am trying to do.
alt_u8 small_1= {1,2,3,4};
alt_u8 small_2= {5,6,7,8};
alt_u32 custom_int_res = 0;
custom_int_res = ALT_CI_MYMACRO((void *)small_1,(void *)small_2);
Perhaps I am doing something wrong in the custom logic which is as shown below where I am expecting my answer to be 1 + 2 + 3 +5 = 11.
module mycalc_c_instr( dataa, datab, result);
input dataa;
input datab;
output result;
assign result=(
(dataa + dataa + dataa + datab)
);
endmodule
Or should I try returning a pointer value instead of integer (i.e. using
*__builtin_custom_pnpp )?
It's probably a stupid mistake again from me, but I can't figure it out! Any help please?
Thanks