Forum Discussion
Can I disable Nios2 Data Cache?
I would like to explore the benefits of the /f core without the trouble of maintaining dcache coherency. I read in the SW Guide that the cache cannot be disabled, but wonder if there is a way. (either officially or otherwise)
I see in excalibur.h the define "always_bypass_dcache". It is set to 0 now, is there perhaps a .ptf setting or something? Thanks, Ken4 Replies
- Altera_Forum
Honored Contributor
Just as you suspect, you can set always_bypass_dcache to "1" in your system PTF to disable the dcache.
Edit the PTF while SOPC Builder isn't running. - Altera_Forum
Honored Contributor
Thanks James. I just tried it and sho'nuf it worked. Ever consider a career doing this stuff? http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif
Ken - Altera_Forum
Honored Contributor
A career! No way. I just like this hobbie thing with a paycheck and benefits http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/rolleyes.gif
- Altera_Forum
Honored Contributor
Just waking up this thread to say to our dear Google searchers that the method mentioned here does not work. As said in this thread (http://www.alteraforum.com/forum/showthread.php?p=137715), to disable the data cache, set its size to "None" in SOPC builder.