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.

BIOS

In the file "all.tcf". We can  see:

prog.module("MEM").BIOSOBJSEG=bios.DDR2;

bios.setMemCodeSections(prog,bios.DDR2);

There are so many statements about prog and bios like those.

So can you tell me something about them??

Thank you!!

  • The object 'prog' is an instance of the class Program (described in Tconf User's Guide). The object represents the program being configured by a user's script, all.tcf in this example.
    'prog' is created by the Tconf initialization script tconfini.tcf, which runs before the user's script. The initialization script can be found in the same directory where the tconf executable is found.

    The object 'bios' is a namespace created when a user's script calls utils.loadPlatform() method, which is usually done at the beginning of a user's script. This object is described in Section 3.6 Object and Property Naming and Referencing in Tconf User's Guide. 'bios' is a shortcut to all modules and instances available under the object 'prog'.
    For example, a DSP/BIOS module MEM can be referenced as prog.module("MEM"), but can also be referenced as bios.MEM.

    The best source to read about functions defined under the object 'bios' is gconf help. It can be found either by going to Help->DSP/BIOS Help Topics or opening one of the hlp files in the directory packages/ti/bios/help/doc in a DSP/BIOS installation. Then, open Tconf Configuration->Reference->Methods->Enabling DSP/BIOS Components.

    Sasha