- /*
- * ======== Evm5509_ddk.tci ========
- * This file is used for textual configuration of DSP/BIOS as an alternative
- * or in addition to the traditional graphical configuration tool (GCONF).
- * For more information on textual configuration and the TCONF utility,
- * please refer to the DSP/BIOS TextConf User's Guide (SPRU007).
- */
- /*
- * Create an empty object and call it with the getProgObjs method to
- * create global variables for every Module and Instance object.
- * For example, instead of
- * prog.module("LOG").instance("LOG_system").buflen = <some value>;
- * we can simply say
- * tibios.LOG_system.buflen = <value>;
- */
- tibios = {};
- utils.getProgObjs(prog, tibios);
- if (environment["config._55l_"] != null) {
- tibios.GBL.MEMORYMODEL = "LARGE";
- }
- /*
- * enable assorted BIOS features
- */
- bios.enableMemoryHeaps(prog)
- bios.enableRealTimeAnalysis(prog);
- bios.enableRtdx(prog);
- bios.enableTskManager(prog);
- /*
- * initialize LOG objects for user trace and system log
- */
- var trace = tibios.LOG.create("trace");
- trace.bufLen = 1024;
- trace.logType = "circular";
- tibios.LOG_system.bufLen = 1024;
- tibios.LOG_system.logType = "circular";
- /*
- * initialize CLKMD register and MIPS setting.
- */
- tibios.GBL.MODIFYCLKMD = 1;
- tibios.GBL.CLKMD = 0x2512;
- tibios.GBL.CLKOUT = 120.0000;
- /* work-around for bad default from evm5509.tcp */
- tibios.GBL.DSPSUBTYPE = 5509;
- /*
- * Configure Memory
- */
- tibios.DARAM.createHeap = true;
- tibios.DARAM.heapSize = 0x4000;
- tibios.SARAM_B.base = 0x18000;
- tibios.SARAM_B.len = 0x8000;
- tibios.SARAM_B.createHeap = false;
- tibios.SARAM_A.base = 0x10000;
- tibios.SARAM_A.len = 0x8000;
- tibios.SARAM_A.createHeap = false;
- tibios.SARAM.base = 0x8000;
- tibios.SARAM.len = 0x8000;
- tibios.SARAM.createHeap = true;
- tibios.SARAM.heapSize = 0x3000;
- /*
- * Set the size of the application stack. Must be large
- * enough to accomodate worst-case of nested priorities, if any.
- * 55x has 2 stacks. Since default setup is "lock-step" where both XSP
- * (Extended Data Stack Ptr) and XSSP (Extended System Stack Ptr) increment
- * in lock-step, must ensure sufficiently large Sys Stack.
- */
- tibios.MEM.STACKSIZE = 0x0400;
- tibios.MEM.SYSSTACKSIZE = 0x0400;
- /*
- * Set the default segment for the stack allocated by TSK_create().
- */
- tibios.TSK.STACKSEG = tibios.SARAM;
- tibios.MEM.BIOSOBJSEG = tibios.DARAM; /* Segment for DSP/BIOS Objects */
- tibios.MEM.MALLOCSEG = tibios.DARAM; /* Segment for malloc()/free() */
- /*
- * Overriding default section placement
- * assign listed sections to specified memory segments
- */
- /* BIOS data */
- /* BIOS code */
- /* Compiler Sections */