In order to use L1 cache I suppose that I should set L1D as 'data' and L1P as 'code' in .tcf System->Mem respective space properties. Or it does not matter?
Regards,
Gaston
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
In order to use L1 cache I suppose that I should set L1D as 'data' and L1P as 'code' in .tcf System->Mem respective space properties. Or it does not matter?
Regards,
Gaston
I will assume a C674x DSP and DSP/BIOS 5.xx.
If you use the BIOS GUI Configuration Tool and set the L1D cache size, it will create a memory component for the L1D_CACHE component and possibly one for the remaining L1D component, if any. The same is true for L1P.
In order to use L1D/L1P as SRAM, you would only want to configure that component as data or code, resp., since nothing else can be placed there. But there is no correlation with the CACHE component.
RandyP
Indeed I'm using C674x DSP and DSP/BIOS v5.41 as you've assumed and I'd like to set the whole L1D/L1P spaces as cache memory, that is 32KB in each case. So don't want to use L1D/L1P as SRAM. According with this, which space property should I set in tcf file for L1D_CACHE/L1P_CACHE? code, data, code/data or reserved?
Gaston
If "reserved" is an option, that would be an excellent choice, and probably the one that the GUI would use.
The way to avoid spending the time trying to figure out details like this is to use the BIOS Configuration GUI. It includes many defaults and it will create this cache section for you. At the very least, you can create a new BIOS tcf file using the GUI, and compare its results with your own or use its results as a template or example.
Regards,
RandyP
If this answers your question, please click the Verify Answer button below. If not, please reply back with more information.