1    /*
     2     *  Copyright 2009 by Texas Instruments Incorporated.
     3     *
     4     *  All rights reserved. Property of Texas Instruments Incorporated.
     5     *  Restricted rights to use, duplicate or disclose this code are
     6     *  granted through contract.
     7     *
     8     */
     9    
    10    /*
    11     *  ======== Platform.xdc ========
    12     *
    13     */
    14    
    15    package ti.platforms.sim64Pxx;
    16    
    17    /*!
    18     *  ======== Platform ========
    19     *  Platform support for the sim64Pxx
    20     *
    21     *  This module implements xdc.platform.IPlatform and defines configuration
    22     *  parameters that correspond to this platform's Cpu's, Board's, etc.
    23     *
    24     *  The configuration parameters are initialized in this package's
    25     *  configuration script (package.cfg) and "bound" to the TCOM object
    26     *  model.  Once they are part of the model, these parameters are
    27     *  queried by a program's configuration script.
    28     *
    29     *  This particular platform has a single Cpu, and therefore, only
    30     *  declares a single CPU configuration object.  Multi-CPU platforms
    31     *  would declare multiple Cpu configuration parameters (one per
    32     *  platform CPU).
    33     */
    34    metaonly module Platform inherits xdc.platform.IPlatform
    35    {
    36        readonly config xdc.platform.IPlatform.Board BOARD = {      
    37            id:             "0",
    38            boardName:      "sim64Pxx",
    39            boardFamily:    "sim64Pxx",
    40            boardRevision:  null,
    41        };
    42            
    43        readonly config xdc.platform.IExeContext.Cpu CPU = {        
    44            id:             "0",
    45            clockRate:      1000,
    46            catalogName:    "ti.catalog.c6000",
    47            deviceName:     "TMS320CTCI6482",
    48            revision:       "",
    49        };
    50        
    51    instance:
    52    
    53        override readonly config xdc.platform.IPlatform.Memory
    54            externalMemoryMap[string] = [
    55                ["DDR", {name: "DDR", base: 0x80000000, len: 0x10000000}],
    56            ];
    57    
    58        /*!
    59         *  ======== deviceName ========
    60         *  The CPU simulated by this simulator platform.
    61         *
    62         *  This parameter is optional. If it's not set, then the Platform module
    63         *  parameter CPU.deviceName is used.
    64         */
    65        config string deviceName;
    66    
    67        /*!
    68         *  ======== ftpath ========
    69         *  Installation directory of the Foundational Tools Suite
    70         *
    71         *  The underlying simulation engine used to run executables produced
    72         *  using this platform is part of the Target Server / Foundational Tools
    73         *  product (http://www.hou.asp.ti.com/asp/sds/eft/projects/Foundation_Tools/Releases/index.html).
    74         */
    75        readonly config String ftpath;
    76    
    77        override config string codeMemory = "DDR";
    78        
    79        override config string dataMemory = "DDR";
    80    
    81        override config string stackMemory = "DDR";
    82    };
    83    /*
    84     *  @(#) ti.platforms.sim64Pxx; 1, 0, 0,224; 6-4-2009 14:10:49; /db/ztree/library/trees/platform-k10x/src/
    85     */
    86