We have tested a simple asm code of writing zeros to a buffer of size 16KB, which is in SDRAM on BF-533 Ez-Kit Lite. Here we are giving cycles for different modes of caching.
|Cache with Write Back Mode||361486|
|Cache with write through ( Cache lines for reading & Writing)||385165|
|Cache with Write Through ( Cache lines only for reading)||171544|
From above table we observed that,
1. Writing to non cachble memory is taking lesser cycles than writing to cachable memory.
2. Write back is consuming more cycles than write through
3. In write through, when cache line snot alloacted for writing is taking less cycles than allocating cache lines for writing
Please share your views on this.