1    /*
     2     * Copyright (c) 2016, Texas Instruments Incorporated
     3     * All rights reserved.
     4     *
     5     * Redistribution and use in source and binary forms, with or without
     6     * modification, are permitted provided that the following conditions
     7     * are met:
     8     *
     9     * *  Redistributions of source code must retain the above copyright
    10     *    notice, this list of conditions and the following disclaimer.
    11     *
    12     * *  Redistributions in binary form must reproduce the above copyright
    13     *    notice, this list of conditions and the following disclaimer in the
    14     *    documentation and/or other materials provided with the distribution.
    15     *
    16     * *  Neither the name of Texas Instruments Incorporated nor the names of
    17     *    its contributors may be used to endorse or promote products derived
    18     *    from this software without specific prior written permission.
    19     *
    20     * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    21     * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
    22     * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    23     * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
    24     * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
    25     * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
    26     * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
    27     * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
    28     * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
    29     * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
    30     * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    31     */
    32    
    33    /*
    34     *  ======== TMS320CDRA447.xdc ========
    35     *
    36     */
    37    
    38    /*!
    39     *  ======== TMS320CDRA447 ========
    40     *  The DRA447 device data sheet module.
    41     *
    42     *  This module implements the xdc.platform.ICpuDataSheet interface and is
    43     *  used by platforms to obtain "data sheet" information about this device.
    44     */
    45    metaonly module TMS320CDRA447 inherits ITMS320CDRA44x
    46    {
    47    
    48        override config long cacheSizeL2[string] = [
    49            ["0k",  0x00000],
    50            ["32k", 0x08000],
    51            ["64k", 0x10000],
    52            ["128k", 0x20000]
    53        ];
    54    
    55        override readonly config ti.catalog.c6000.ICacheInfo.CacheDesc cacheMap[string] =  [
    56                 ['l1PMode',{desc:"L1P Cache",
    57                             base: 0x11E08000,
    58                             map : [["0k",0x0000],
    59                                    ["4k",0x1000],
    60                                    ["8k",0x2000],
    61                                    ["16k",0x4000],
    62                                    ["32k",0x8000]],
    63                             defaultValue: "32k",
    64                             memorySection: "L1PSRAM"}],
    65    
    66                     ['l1DMode',{desc:"L1D Cache",
    67                             base: 0x11F04000,
    68                             map : [["0k",0x0000],
    69                                    ["4k",0x1000],
    70                                    ["8k",0x2000],
    71                                    ["16k",0x4000],
    72                                    ["32k",0x8000]],
    73                             defaultValue: "32k",
    74                             memorySection: "L1DSRAM"}],
    75    
    76                 ['l2Mode',{desc:"L2 Cache",
    77                             base: 0x11800000,
    78                             map : [["0k",0x0000],
    79                                    ["32k",0x8000],
    80                                    ["64k",0x10000],
    81                                    ],
    82                             defaultValue: "0k",
    83                             memorySection: "IRAM"}],
    84    
    85        ];
    86    
    87    instance:
    88    
    89        /*!
    90         *  ======== memMap ========
    91         *  The default memory map for this device
    92         */
    93        override config xdc.platform.IPlatform.Memory memMap[string] = [
    94            ["IRAM", {
    95                comment:    "Internal 128KB UMAP0 memory",
    96                name:       "IRAM",
    97                base:       0x11800000,
    98                len:        0x00020000,
    99                space:      "code/data",
   100                access:     "RWX"
   101            }],
   102    
   103            ["L1PSRAM", {
   104                comment:    "Internal 32KB RAM/CACHE L1 program memory",
   105                name:       "L1PSRAM",
   106                base:       0x11E08000,
   107                len:        0x00008000,
   108                space:      "code",
   109                access:     "RWX"
   110            }],
   111    
   112            ["L1DSRAM", {
   113                comment:    "Internal 80KB RAM/CACHE L1 data memory",
   114                name:       "L1DSRAM",
   115                base:       0x11F04000,
   116                len:        0x00014000,
   117                space:      "data",
   118                access:     "RW"
   119            }],
   120    
   121            ["ARM_RAM", {
   122                comment:    "Internal ARM RAM memory",
   123                name:       "ARM_RAM",
   124                base:       0x10008000,
   125                len:        0x00004000,
   126                space:      "data",
   127                access:     "RW"
   128            }],
   129        ];
   130    
   131    };