Forum Discussion
Altera_Forum
Honored Contributor
21 years agoNios readdata problem
Hi, I have a strange problem about reading the readdata. I designed a user logic and wrote a C code corresponding to it. I hope use this circuit to do caculations twice. And I get right r...
Altera_Forum
Honored Contributor
21 years agoIt could be that the compiler optimized your code or you have data cache turned on. To fix the compiler optimization issue you should make the value volatile and to fix the data cache issue you will need to bypass the cache on the read.
volatile float * p; p = (1<<31) | 0x920800;