Forum Discussion
Altera_Forum
Honored Contributor
14 years agoMarking the data 'volatile', or using the asm statement I mentioned earlier, will force the compiler to generate the actual memory cycles - possibly just to the cache.
Memory mapped IO registers should usually be marked 'volatile' (and be uncached), but if you are trying to verify the connections to cached or non-volatile 'memory' you need to force the compiler to flush any non-volatile data it has cached in registers, as well as flush and invalidate the data cache itself.