1    /*
     2     *  Copyright (c) 2010 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     * */
    12    
    13    /*
    14     *  ======== Platform.xdc ========
    15     *  Platform support for evmDM8148
    16     *
    17     */
    18    
    19    package ti.platforms.evmDM8148;
    20    
    21    /*!
    22     *  ======== Platform ========
    23     *  Platform support for the evmDM8148
    24     *
    25     *  This module implements xdc.platform.IPlatform and defines configuration
    26     *  parameters that correspond to this platform's Cpu's, Board's, etc.
    27     *
    28     *  The configuration parameters are initialized in this package's
    29     *  configuration script (package.cfg) and "bound" to the TCOM object
    30     *  model.  Once they are part of the model, these parameters are
    31     *  queried by a program's configuration script.
    32     *
    33     *  This particular platform has 4 CPU's, a host GPP, 2 M3's, and a
    34     *  C674 DSP.
    35     */
    36    metaonly module Platform inherits xdc.platform.IPlatform
    37    {
    38        readonly config xdc.platform.IPlatform.Board BOARD = {
    39            id:             "0",
    40            boardName:      "evmDM8148",
    41            boardFamily:    "evmDM8148",
    42            boardRevision:  null
    43        };
    44    
    45        /* C674 GEM */
    46        readonly config xdc.platform.IExeContext.Cpu GEM = {
    47            id:             "0",
    48            clockRate:      800.0,
    49            catalogName:    "ti.catalog.c6000",
    50            deviceName:     "TMS320DM8148",
    51            revision:       ""
    52        };
    53    
    54        /* M3 Subsystem */
    55        readonly config xdc.platform.IExeContext.Cpu DSS = {
    56            id:             "1",
    57            clockRate:      250.0,
    58            catalogName:    "ti.catalog.arm.cortexm3",
    59            deviceName:     "TMS320DM8148",
    60            revision:       "1.0"
    61        };
    62    
    63        /* GPP */
    64        readonly config xdc.platform.IExeContext.Cpu GPP = {
    65            id:             "2",
    66            clockRate:      1000.0,  /* Typically set by the HLOS */
    67            catalogName:    "ti.catalog.arm.cortexa8",
    68            deviceName:     "TMS320DM8148",
    69            revision:       "1.0"
    70        };
    71    
    72    instance:
    73    
    74        override readonly config xdc.platform.IPlatform.Memory
    75            externalMemoryMap[string] = [
    76    
    77                ["DDR3_RAM", {
    78                    comment: "External RAM",
    79                    name: "DDR3_RAM",
    80                    base: 0x80000000,
    81                    len:  0x10000000
    82                }]
    83    
    84            ];
    85    
    86        override config string codeMemory = "DDR3_RAM";
    87        override config string dataMemory = "DDR3_RAM";
    88        override config string stackMemory = "DDR3_RAM";
    89    
    90        /*
    91         *  ======== l1PMode ========
    92         *  Define the amount of L1P RAM used for L1 Program Cache.
    93         *
    94         *  Check the device documentation for valid values.
    95         */
    96        config String l1PMode;
    97    
    98        /*
    99         *  ======== l1DMode ========
   100         *  Define the amount of L1D RAM used for L1 Data Cache.
   101         *
   102         *  Check the device documentation for valid values.
   103         */
   104        config String l1DMode;
   105    
   106        /*
   107         *  ======== l2Mode ========
   108         *  Define the amount of L2 RAM used for L2 Cache.
   109         *
   110         *  Check the device documentation for valid values.
   111         */
   112        config String l2Mode;
   113    };
   114    /*
   115     *  @(#) ti.platforms.evmDM8148; 1, 0, 0,3; 8-7-2010 18:30:07; /db/ztree/library/trees/platform/platform-l20x/src/
   116     */
   117