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