1    /*
     2     *  Copyright 2009 by Texas Instruments Incorporated.
     3     *
     4     *  All rights reserved. Property of Texas Instruments Incorporated.
     5     *  Restricted rights to use, duplicate or disclose this code are
     6     *  granted through contract.
     7     *
     8     */
     9    
    10    /*
    11     *  ======== Platform.xdc ========
    12     *  This module implements xdc.IPlatform and defines configuration
    13     *  parameters that correspond to this platform's Cpu's, Board's, etc.
    14     *
    15     *  The configuration parameters are initialized in this package's
    16     *  configuration script (package.cfg) and "bound" to the TCOM object
    17     *  model.  Once they are part of the model, these parameters are
    18     *  queried by a program's configuration script.
    19     *
    20     *  This particular platform has a single Cpu, and therefore, only
    21     *  declares a single CPU configuration object.  Multi-CPU platforms
    22     *  would declare multiple Cpu configuration parameters (one per
    23     *  platform CPU).
    24     *
    25     */
    26    
    27    package ti.platforms.ezdsp2812;
    28    
    29    metaonly module Platform inherits xdc.platform.IPlatform
    30    {
    31        readonly config xdc.platform.IPlatform.Board BOARD = {
    32            id:             "0",
    33            boardName:      "ezdsp2812",
    34            boardFamily:    "ezdsp2812",
    35            boardRevision:  null
    36        };
    37    
    38        readonly config xdc.platform.IExeContext.Cpu   CPU = {      
    39            id:             "0",
    40            clockRate:      150.0,
    41            catalogName:    "ti.catalog.c2800",
    42            deviceName:     "TMS320C2812",
    43            revision:       null
    44        };
    45        
    46    instance:
    47    
    48        override readonly config xdc.platform.IPlatform.MemoryMap
    49            externalMemoryMap = [
    50            /* The commented combination of the base address and the size for SRAM
    51             * is a workaround for gdb2000. For an unknown reason, it won't run
    52             * with the correct parameters. The error message is:
    53             * OTIS: Can't load COFF file on target.
    54             * .tmp11603:1: Error in sourced command file:
    55             * Cannot access memory at address 0x8000
    56             *
    57             * The address 0x8000 above is the address of .args section. 
    58             */
    59                //["SRAM",   {name: "SRAM",  page: 1, base: 0x1000,  len: 0x6000}],
    60                ["SRAM",
    61                    {
    62                        name: "SRAM",
    63                        base: 0x100000,
    64                        len: 0x10000,
    65                        page: 0,
    66                        space: "code/data"
    67                    }
    68                ],
    69            ];
    70    
    71        override config string codeMemory = "SRAM";
    72        
    73        override config string dataMemory = "SRAM";
    74    
    75        override config string stackMemory = "LSARAM";
    76    };
    77    /*
    78     *  @(#) ti.platforms.ezdsp2812; 1, 0, 0,225; 6-4-2009 14:24:26; /db/ztree/library/trees/platform-k10x/src/
    79     */
    80