I've tried this already (trying to get anything to work with cache) and have never succeeded. I have a small monitor program that can run out of flash, internal ram/rom or sdram just fine. But, if I use a NIOS core with cache, nothing happens. By all outward appearances the CPU is dead. The monitor could fit 100% in icache, but since the core is dead, I can't try anything.
I've tried both the standard and full cores, standard having only i-cache, and full having both i- and d-cache.
There must be something required to initialize the cache, or flush it or something on power-up (or hard cpu reset), but I've yet to find out what the magic trick is.
Oh, and I'm using release 1.01 of the NIOS2 core. Of course, that would be so easy to blame....
I'd be happy for any advice.
Thanks,
TB