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     *
    16     */
    17    
    18    /*!
    19     *  ======== Platform ========
    20     *  Platform support for the evmDM6446
    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     *  The configuration parameters are initialized in this package's
    26     *  configuration script (package.cfg) and "bound" to the TCOM object
    27     *  model.  Once they are part of the model, these parameters are
    28     *  queried by a program's configuration script.
    29     */
    30    
    31    metaonly module Platform inherits xdc.platform.IPlatform
    32    {
    33        enum RuntimeEnv {
    34            STDIO,
    35            POSIX,
    36            BIOS
    37        };
    38        
    39        readonly config xdc.platform.IPlatform.Board BOARD = {      
    40            id:             "0",
    41            boardName:      "evmDM6446",
    42            boardFamily:    "evmDM6446",
    43            boardRevision:  null,
    44        };
    45            
    46        readonly config xdc.platform.IExeContext.Cpu DSP = {        
    47            id:             "0",
    48            clockRate:      567.0,
    49            catalogName:    "ti.catalog.c6000",
    50            deviceName:     "TMS320CDM6446",
    51            revision:       "1.0",
    52        };
    53        
    54        readonly config xdc.platform.IExeContext.Cpu GPP = {
    55            id:             "1",
    56            clockRate:      300.0,
    57            catalogName:    "ti.catalog.arm",
    58            deviceName:     "TMS320CDM6446",
    59            revision:       "1.0",
    60        };
    61    
    62    instance:
    63    
    64        override readonly config xdc.platform.IPlatform.Memory
    65            externalMemoryMap[string] = [
    66                ["DDR2", {name: "DDR2", base: 0x80000000, len: 0x10000000}],
    67            ];
    68    
    69        /* default segment for code sections */
    70        override config string codeMemory = "DDR2";
    71    
    72        /* default segment for data sections */
    73        override config string dataMemory = "DDR2";
    74    
    75        /* default segment for stack sections */
    76        override config string stackMemory = "DDR2";
    77    
    78        /*!
    79         *  ======== runTime ========
    80         *  The runtime environment available to executables
    81         */
    82        config RuntimeEnv runTime = STDIO;
    83    
    84        /*!
    85         *  ======== singleCore ========
    86         *  no longer used!
    87         * @_nodoc
    88         */
    89        config Bool singleCore = true;
    90    }
    91    /*
    92     *  @(#) ti.platforms.evmDM6446; 1, 0, 0, 1,237; 10-7-2009 15:38:38; /db/ztree/library/trees/platform-k22x/src/
    93     */
    94