Forum Discussion
Altera_Forum
Honored Contributor
21 years agoDoes alt_dcache_flush_all() work right?
Hi: I want to flush all dcache of niosII/f core, I find a function in kitsv1.1\nios2\components\altera_nios2\HAL\src\alt_dcache_flush_all.c , but I wonder if it is correct. the function is li...
Altera_Forum
Honored Contributor
21 years agoYes, this is correct.
The Nios II FLUSHD instruction ignores the tag portion of the memory address (the top bits). This means that a FLUSHD to address 0x0000 is the same as a FLUSHD to address 0x1000, 0x2000, 0x3000, etc. for a 4096 byte D-cache. +james+