This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Vivek,
Thanks for your reply. It really helped, but I have a further related question:
Let's say I have an unsigned 32-bit integer variable in CLA_to_CPU message RAM, called 'result_value'. Currently, CPU is accessing this variable and performing the following operation:
uint32 local_variable;
local_variable = ( result_value >> 8);
The shifting will take a few cycles and what will happen to 'result_value' if CLA tries to write to this variable during the shifting process? Would this cause some thread safe issue?
Thanks.
James,
Sorry, I misunderstood it. You are right, it'll just read the variable in do the shifting but will not write back.
I am still not clear on the issue here. CLA modifying the variable between two reads is expected event or non-expected event?
Regards,
Vivek Singh