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    package ti.platforms.simCM3;
    15    
    16    /*!
    17     *  ======== Platform ========
    18     *  Simulation-based Platform support for TI Cortex M3 platforms
    19     *
    20     *  This module implements xdc.platform.IPlatform and defines configuration
    21     *  parameters that correspond to this platform's Cpu's, Board's, etc.
    22     *
    23     *  The configuration parameters are initialized in this package's
    24     *  configuration script (package.cfg) and "bound" to the TCOM object
    25     *  model.  Once they are part of the model, these parameters are
    26     *  queried by a program's configuration script.
    27     *
    28     *  This particular platform has a single Cpu, and therefore, only
    29     *  declares a single CPU configuration object.  Multi-CPU platforms
    30     *  would declare multiple Cpu configuration parameters (one per
    31     *  platform CPU).
    32     */
    33    metaonly module Platform inherits xdc.platform.IPlatform
    34    {
    35        /*!
    36         *  ======== BOARD ========
    37         *  This platform's board attributes
    38         */
    39        readonly config xdc.platform.IPlatform.Board BOARD = {
    40            id:             "0",
    41            boardName:      "simCM3",
    42            boardFamily:    "simCM3",
    43            boardRevision:  null
    44        };
    45    
    46        /*!
    47         *  ======== CPU ========
    48         *  The CPU simulated by this platform.
    49         *
    50         *  The device simulated is determined by the platform instance name
    51         *  or if this does not name a ti.catalog.arm module, then we
    52         *  we simulate a TMS470.
    53         */
    54        readonly config xdc.platform.IExeContext.Cpu CPU = {        
    55            id:             "0",
    56            clockRate:      200.0,
    57            catalogName:    "ti.catalog.arm",
    58            deviceName:     "CortexM3",
    59            revision:       "1.0",
    60        };
    61    
    62    instance:
    63    
    64        override readonly config xdc.platform.IPlatform.Memory 
    65            externalMemoryMap[string] = [
    66    
    67                ["Code", {
    68                    comment: "Code Memory",
    69                    name:   "Code",
    70                    base:   0x00000000,
    71                    len:    0x20000000,
    72                    space:  "code",
    73                    access: "RWX"
    74                }],
    75    
    76                ["SRAM", {
    77                    comment: "Shared RAM",
    78                    name:   "SRAM", 
    79                    base:   0x20000000,
    80                    len:    0x20000000,
    81                    space:  "data",
    82                    access: "RW"
    83                }],
    84            ];
    85    
    86        override config string codeMemory = "Code";
    87        override config string dataMemory = "SRAM";
    88        override config string stackMemory = "SRAM";
    89    };
    90    /*
    91     *  @(#) ti.platforms.simCM3; 1, 0, 1, 0,68; 6-4-2009 14:12:41; /db/ztree/library/trees/platform-k10x/src/
    92     */
    93