Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12600 Discussions

Can I disable Nios2 Data Cache?

Altera_Forum
Honored Contributor II
1,241 Views

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, 

Ken
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
510 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
510 Views

Thanks James. I just tried it and sho&#39;nuf it worked. Ever consider a career doing this stuff? http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif  

 

Ken
0 Kudos
Altera_Forum
Honored Contributor II
510 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
510 Views

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.

0 Kudos
Reply