I want am new to am62x and I want to write a code which starts processing on A53 core, send a task to C7 and R5 which sends their results back to A53 like in the pseudocod below:
int main(){
//on A53 core, read data a ,b ,c d
a = read(a_data) ;
b = read(b_data) ;
c = read(c_data) ;
d = read(d_data);
//core A53 sends a commad to get the product of a and b on core C7 which return the product back to core A53
product = a *b;
//core A53 sends a commad to get the sum of c and d on core R5 which return the sum back to core A53
sum = c+d;
//core A53 recieves the sum and product and perform further processing
further = product - sum
}
My second question is: I understand the C7 accelerator is good for multiplication task, and I want to know if one has to program the C7 to take up such task or its automatic. pls bear with me if my question sound dumb, I am newbie
}