1    /* 
     2     *  Copyright (c) 2008 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     *  ======== Platform.xdc ========
    14     */
    15    
    16    package ti.platforms.sim6xxx;
    17    
    18    /*!
    19     *  ======== Platform ========
    20     *  Simulation-based Platform support for 6xxx platforms
    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     *  This particular platform has a single Cpu, and therefore, only
    31     *  declares a single CPU configuration object.  Multi-CPU platforms
    32     *  would declare multiple Cpu configuration parameters (one per
    33     *  platform CPU).
    34     */
    35    metaonly module Platform inherits xdc.platform.IPlatform
    36    {
    37        /*!
    38         *  ======== BOARD ========
    39         *  This platform's board attributes
    40         */
    41        readonly config xdc.platform.IPlatform.Board BOARD = {
    42            id:             "0",
    43            boardName:      "sim6xxx",
    44            boardFamily:    "sim6xxx",
    45            boardRevision:  null
    46        };
    47    
    48        /*!
    49         *  ======== CPU ========
    50         *  The CPU simulated by this platform.
    51         *
    52         *  The device simulated is determined by the platform instance name
    53         *  or if this does not name a ti.catalog.c6000 module, we simulate
    54         *  a TMS320C6416.
    55         */
    56        readonly config xdc.platform.IExeContext.Cpu CPU = {        
    57            id:             "0",
    58            clockRate:      600.0,
    59            catalogName:    "ti.catalog.c6000",
    60            deviceName:     "TMS320C6416",
    61            revision:       "",
    62        };
    63    
    64    instance:
    65    
    66        /*!
    67         *  ======== externalMemoryMap ========
    68         *  A mapping of memory names to memory objects for external memory.
    69         *
    70         *  This parameter defines the external portion of the platform's memory
    71         *  map.
    72         */
    73        override readonly config xdc.platform.IPlatform.Memory externalMemoryMap[string] = [
    74            ["SDRAM",
    75                {
    76                    name: "SDRAM",
    77                    base: 0x80000000,
    78                    len: 0x01000000,
    79                    space: "code/data",
    80                }
    81            ],
    82        ];
    83    
    84        /*!
    85         *  ======== deviceName ========
    86         *  The CPU simulated by this simulator platform.
    87         *
    88         *  This parameter is optional. If it's not set, then the Platform module
    89         *  parameter CPU.deviceName is used.
    90         */
    91        config string deviceName;
    92    
    93        /*!
    94         *  ======== ftpath ========
    95         *  Installation directory of the Foundational Tools Suite
    96         *
    97         *  The underlying simulation engine used to run executables produced
    98         *  using this platform is part of the Target Server / Foundational Tools
    99         *  product (http://www.hou.asp.ti.com/asp/sds/eft/projects/Foundation_Tools/Releases/index.html).
   100         */
   101        config String ftpath;
   102    
   103        override config string codeMemory = "IRAM";
   104        
   105        override config string dataMemory = "SDRAM";
   106        
   107        override config string stackMemory = "SDRAM";
   108    
   109        /*
   110         *  ======== l1PMode ========
   111         *  Define the amount of L1P RAM used for L1 Program Cache.
   112         *
   113         *  Check the device documentation for valid values.
   114         */
   115        config String l1PMode = "32k";
   116        
   117        /*
   118         *  ======== l1DMode ========
   119         *  Define the amount of L1D RAM used for L1 Data Cache.
   120         *
   121         *  Check the device documentation for valid values.
   122         */
   123        config String l1DMode = "32k";
   124        
   125        /*
   126         *  ======== l2Mode ========
   127         *  Define the amount of L2 RAM used for L2 Cache.
   128         *
   129         *  Check the device documentation for valid values.
   130         */
   131        config String l2Mode = "0k";
   132    };
   133    /*
   134     *  @(#) ti.platforms.sim6xxx; 1, 0, 1, 1,53; 12-3-2010 12:57:22; /db/ztree/library/trees/platform/platform-l29x/src/
   135     */
   136