We have a common code set that works on the multiple cores of a TCI6486/C6472. The *ONLY* difference is the section of external DDR2 they can use. DSP BIOS 5.4 supports both access to system envronment variables and conditional processing (if, else). Thus my *.TCF contains the segment:
if (environment["CORE"] == 1) {
bios.MEM.instance("DDR2").base = 0xe6000000; // Core 1
print("Core 1 selected");
}
else if (environment["CORE"] == 2) {
bios.MEM.instance("DDR2").base = 0xe8000000; // Core 2
print("Core 2 selected");
}
else if (environment["CORE"] == 3) {
bios.MEM.instance("DDR2").base = 0xea000000; // Core 3
print("Core 3 selected");
}
...
What is the best method for duplicating this functionality in DSP BIOS 6 / RTSC / XDC? Does DSP BIOS 6 /RTSC/XDC support conditional processing (I see that I can access system environment variables)?