EvmDM642_ddk.tci
上传用户:dahaojd
上传日期:2008-01-29
资源大小:14357k
文件大小:5k
- /*
- * ======== EvmDM642_ddk.tci ========
- * This script simply sets up the board-specific parameters that are needed
- * for the assorted DDK examples.
- */
- /*
- * 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);
- /*
- * enable assorted BIOS features
- */
- bios.enableMemoryHeaps(prog)
- bios.enableRealTimeAnalysis(prog);
- bios.enableRtdx(prog);
- bios.enableTskManager(prog);
- /*
- * This function is in the board support libary (BSL) for EVMDM642.
- * This function must be called to initialize the hardware before any
- * BIOS or device driver initialization.
- */
- tibios.GBL.CALLUSERINITFXN = true;
- tibios.GBL.USERINITFXN = prog.extern("EVMDM642_init");
- /*
- * 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";
- tibios.TSK_idle.stackMemSeg = tibios.SDRAM;
- /*
- * Memory segments, their sizes, heaps, and heap sizes
- * ISRAM is internal program & data memory
- * SDRAM is external program & data memory,
- *
- * In internal and external memory, we create heaps with names
- * INTERNALHEAP and EXTERNALHEAP, respectively, and platform-independent
- * portions of the application refer to these heaps by their names
- * rather than the names of memory segments they are created in
- */
- /* define comments of the data memory segments (Temporary fix for SDSsq28652) */
- tibios.SDRAM.comment ="This object defines space for the DSP's off-chip memory";
- tibios.GBL.C641XCONFIGUREL2 = true; /* Enable L2 configuration */
- tibios.GBL.C641XCCFGL2MODE = "4-way cache (0k)"; /* No L2 cache */
- /* allocate heap named "EXTERNALHEAP" of size 16MB in external memory */
- tibios.SDRAM.createHeap = true;
- tibios.SDRAM.heapSize = 0x01000000; /* 16MB */
- tibios.SDRAM.enableHeapLabel = true;
- tibios.SDRAM.heapLabel = prog.extern( "EXTERNALHEAP" );
- /*
- * ------- Bug number SDSsq30624 ------
- * EvmDM642.tcp platform file has incorrect ISRAM size.
- * DM642 internal memory size is 1MB only
- */
- tibios.ISRAM.len = 0x40000;
- /* reduce ISRAM size to 128Kbytes to allow for 128Kbyte cache */
- tibios.ISRAM.len = 0x20000;
- /*
- * Set the size of the application stack. Must be large
- * enough to accomodate worst-case of nested priorities, if any.
- */
- tibios.MEM.STACKSIZE = 0x1000;
- /*
- * Set the default segment for the stack allocated by TSK_create().
- */
- tibios.TSK.STACKSEG = tibios.SDRAM;
- /*
- * Move all memory sections to external memory.
- */
- tibios.MEM.BIOSOBJSEG = tibios.SDRAM;
- tibios.MEM.MALLOCSEG = tibios.SDRAM;
- tibios.MEM.ARGSSEG = tibios.SDRAM;
- tibios.MEM.STACKSEG = tibios.SDRAM;
- tibios.MEM.GBLINITSEG = tibios.SDRAM;
- tibios.MEM.TRCDATASEG = tibios.SDRAM;
- tibios.MEM.SYSDATASEG = tibios.SDRAM;
- tibios.MEM.OBJSEG = tibios.SDRAM;
- tibios.MEM.BIOSSEG = tibios.SDRAM;
- tibios.MEM.SYSINITSEG = tibios.SDRAM;
- tibios.MEM.HWISEG = tibios.SDRAM;
- tibios.MEM.HWIVECSEG = tibios.SDRAM;
- tibios.MEM.TEXTSEG = tibios.SDRAM;
- tibios.MEM.SWITCHSEG = tibios.SDRAM;
- tibios.MEM.BSSSEG = tibios.SDRAM;
- tibios.MEM.FARSEG = tibios.SDRAM;
- tibios.MEM.CINITSEG = tibios.SDRAM;
- tibios.MEM.PINITSEG = tibios.SDRAM;
- tibios.MEM.CONSTSEG = tibios.SDRAM;
- tibios.MEM.DATASEG = tibios.SDRAM;
- tibios.MEM.CIOSEG = tibios.SDRAM;
- tibios.MEM.ENABLELOADADDR = 1;
- tibios.MEM.LOADTEXTSEG = tibios.SDRAM;
- tibios.MEM.LOADSWITCHSEG = tibios.SDRAM;
- tibios.MEM.LOADCINITSEG = tibios.SDRAM;
- tibios.MEM.LOADBIOSSEG = tibios.SDRAM;
- tibios.MEM.LOADCONSTSEG = tibios.SDRAM;
- tibios.MEM.LOADSYSINITSEG = tibios.SDRAM;
- tibios.MEM.LOADPINITSEG = tibios.SDRAM;
- tibios.MEM.LOADTRCDATASEG = tibios.SDRAM;
- tibios.MEM.LOADGBLINITSEG = tibios.SDRAM;
- tibios.MEM.LOADRTDXTEXTSEG = tibios.SDRAM;
- tibios.MEM.LOADHWIVECSEG = tibios.SDRAM;
- tibios.MEM.LOADHWISEG = tibios.SDRAM;
- tibios.MEM.ENABLELOADADDR = 0;
- tibios.QUE.OBJMEMSEG = tibios.SDRAM;
- tibios.LCK.OBJMEMSEG = tibios.SDRAM;
- tibios.STS.OBJMEMSEG = tibios.SDRAM;
- tibios.SYS.TRACESEG = tibios.SDRAM;
- tibios.CLK.OBJMEMSEG = tibios.SDRAM;
- tibios.HST.OBJMEMSEG = tibios.SDRAM;
- tibios.IDL.OBJMEMSEG = tibios.SDRAM;
- tibios.LOG.OBJMEMSEG = tibios.SDRAM;
- tibios.TSK.OBJMEMSEG = tibios.SDRAM;
- tibios.SWI.OBJMEMSEG = tibios.SDRAM;
- tibios.SIO.OBJMEMSEG = tibios.SDRAM;
- tibios.SEM.OBJMEMSEG = tibios.SDRAM;
- tibios.BUF.OBJMEMSEG = tibios.SDRAM;
- tibios.DHL.OBJMEMSEG = tibios.SDRAM;
- tibios.DIO.OBJMEMSEG = tibios.SDRAM;
- tibios.MBX.OBJMEMSEG = tibios.SDRAM;
- tibios.PIP.OBJMEMSEG = tibios.SDRAM;
- tibios.PRD.OBJMEMSEG = tibios.SDRAM;
- tibios.MEM.RTDXTEXTSEG = tibios.SDRAM;
- tibios.RTDX.RTDXDATASEG = tibios.SDRAM;