-
Hi The odd thing is that there are more accesses to one memory location than I wrote in the code. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 20 replies
-
Could you show the entire code (including the variable declaration)? Do you have a cache enabled? |
Beta Was this translation helpful? Give feedback.
-
Question.zip |
Beta Was this translation helpful? Give feedback.
-
I think a block size bigger than 1 may cause this case (more memory writes than specified), right?🤔 From datasheet: The write-back strategy will gather all writes locally inside the cache until the according cache block is about to be replaced. In this case, the entire modified cache block is written back to main memory. |
Beta Was this translation helpful? Give feedback.
Ahh I see. You are using the default testbench for simulation which has the external bus cache enabled:
The additional write accesses your are seeing in the terminal are caused by the block write back of the XCACHE.