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 simDM730
    16     *
    17     */
    18    
    19    package ti.platforms.simDM730;
    20    
    21    /*!
    22     *  ======== Platform ========
    23     *  Platform support for the simDM730
    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 a single Cpu, and therefore, only
    34     *  declares a single CPU configuration object.  Multi-CPU platforms
    35     *  would declare multiple Cpu configuration parameters (one per
    36     *  platform CPU).
    37     */
    38    metaonly module Platform inherits xdc.platform.IPlatform
    39    {
    40        readonly config xdc.platform.IPlatform.Board BOARD = {      
    41            id:             "0",
    42            boardName:      "simDM730",
    43            boardFamily:    "simDM730",
    44            boardRevision:  null,
    45        };
    46    
    47        /* C674 GEM */      
    48        readonly config xdc.platform.IExeContext.Cpu GEM = {        
    49            id:             "0",
    50            clockRate:      800.0,
    51            catalogName:    "ti.catalog.c6000",
    52            deviceName:     "TMS320CDM730",
    53            revision:       "",
    54        };
    55    
    56        /* Ducati Subsystem */
    57        readonly config xdc.platform.IExeContext.Cpu DSS = {        
    58            id:             "0",
    59            clockRate:      250.0,
    60            catalogName:    "ti.catalog.arm",
    61            deviceName:     "TMS320CDM730",
    62            revision:       "1.0",
    63        };
    64    
    65    instance:
    66    
    67        override readonly config xdc.platform.IPlatform.Memory
    68            externalMemoryMap[string] = [
    69    
    70                ["EXT_RAM", {
    71                    comment: "External RAM",
    72                    name: "EXT_RAM",
    73                    base: 0x80000000, 
    74                    len:  0x10000000
    75                }],
    76    
    77            ];
    78    
    79        override config string codeMemory = "EXT_RAM";
    80        override config string dataMemory = "EXT_RAM";
    81        override config string stackMemory = "EXT_RAM";
    82    
    83        /*
    84         *  ======== l1PMode ========
    85         *  Define the amount of L1P RAM used for L1 Program Cache.
    86         *
    87         *  Check the device documentation for valid values.
    88         */
    89        config String l1PMode = "32k";
    90        
    91        /*
    92         *  ======== l1DMode ========
    93         *  Define the amount of L1D RAM used for L1 Data Cache.
    94         *
    95         *  Check the device documentation for valid values.
    96         */
    97        config String l1DMode = "32k";
    98        
    99        /*
   100         *  ======== l2Mode ========
   101         *  Define the amount of L2 RAM used for L2 Cache.
   102         *
   103         *  Check the device documentation for valid values.
   104         */
   105        config String l2Mode = "0k";
   106    };
   107    /*
   108     *  @(#) ti.platforms.simDM730; 1, 0, 0,61; 12-3-2010 12:58:32; /db/ztree/library/trees/platform/platform-l29x/src/
   109     */
   110