1    /*
     2     *  Copyright (c) 2011 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     *
    16     */
    17    
    18    /*!
    19     *  ======== Platform ========
    20     *  Platform support for the evmDM357
    21     *
    22     *  This module implements xdc.platform.IPlatform and defines configuration
    23     *  parameters that correspond to this platform's Cpu's, Board's, etc.
    24     */
    25    
    26    metaonly module Platform inherits xdc.platform.IPlatform
    27    {
    28        readonly config xdc.platform.IPlatform.Board BOARD = {      
    29            id:             "0",
    30            boardName:      "evmDM357",
    31            boardFamily:    "evmDM357",
    32            boardRevision:  null,
    33        };
    34            
    35        readonly config xdc.platform.IExeContext.Cpu DSP = {        
    36            id:             "0",
    37            clockRate:      540.0,
    38            catalogName:    "ti.catalog.c6000",
    39            deviceName:     "TMS320DM357",
    40            revision:       "1.0",
    41        };
    42        
    43        readonly config xdc.platform.IExeContext.Cpu GPP = {
    44            id:             "1",
    45            clockRate:      270.0,
    46            catalogName:    "ti.catalog.arm",
    47            deviceName:     "TMS320DM357",
    48            revision:       "1.0",
    49        };
    50    
    51    instance:
    52    
    53        override readonly config xdc.platform.IPlatform.Memory
    54            externalMemoryMap[string] = [
    55                ["DDR2", {name: "DDR2", base: 0x80000000, len: 0x10000000}],
    56            ];
    57    
    58        /* default segment for data sections */
    59        override config string dataMemory = "DDR2";
    60        override config string stackMemory = "DDR2";
    61    
    62        /* default segment for stack sections */
    63    
    64        /*
    65         *  ======== l1PMode ========
    66         *  Define the amount of L1P RAM used for L1 Program Cache.
    67         *
    68         *  Check the device documentation for valid values.
    69         */
    70        config String l1PMode = "32k";
    71        
    72        /*
    73         *  ======== l1DMode ========
    74         *  Define the amount of L1D RAM used for L1 Data Cache.
    75         *
    76         *  Check the device documentation for valid values.
    77         */
    78        config String l1DMode = "32k";
    79        
    80        /*
    81         *  ======== l2Mode ========
    82         *  Define the amount of L2 RAM used for L2 Cache.
    83         *
    84         *  Check the device documentation for valid values.
    85         */
    86        config String l2Mode = "0k";
    87    }
    88    /*
    89     *  @(#) ti.platforms.evmDM357; 1, 0, 0,219; 11-9-2011 12:02:01; /db/ztree/library/trees/platform/platform-n08x/src/
    90     */
    91