Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- @ badomen how do i flush the cache?? i keep getting the wrong value... example: i wrote the offset 0 with 0x23, and then i read this offset and i get the 0x23. but then i wrote the offset 3 with 0x14 and then i read in offset 0 and i get 0x14. isn't it supposed to be 0x23?? --- Quote End --- I would attach your code to a post since any number of things could be happening. The only time I would expect the issue you are seeing is: a) When you say offset 3, if you are talking byte offset 3 and performing a 16/32 bit access then that is not allowed (unaligned access) b) You are mixing cached and non-cached accesses to the same memory location If you are doing neither then bypassing the cache shouldn't solve this problem and it's most likely something else causing the issue.