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     *  ======== TMS320DA802.xdc ========
    35     *
    36     */
    37    package ti.catalog.c6000;
    38    
    39    /*!
    40     *  ======== TMS320DA802 ========
    41     *  The DA802 device data sheet module.
    42     */
    43    metaonly module TMS320DA802 inherits ITMS320DA8xx
    44    {
    45        override config long cacheSizeL2[string] = [
    46                ["0k",  0x00000],
    47                ["32k", 0x08000],
    48                ["64k", 0x10000],
    49                ["128k", 0x20000]
    50        ];
    51    
    52        override readonly config ti.catalog.c6000.ICacheInfo.CacheDesc cacheMap[string] =  [
    53                ['l1PMode',{desc:"L1P Cache",
    54                             base: 0x11E00000,
    55                             map : [["0k",0x0000],
    56                                    ["4k",0x1000],
    57                                    ["8k",0x2000],
    58                                    ["16k",0x4000],
    59                                    ["32k",0x8000]],
    60                             defaultValue: "32k",
    61                             memorySection: "L1PSRAM"}],
    62    
    63                ['l1DMode',{desc:"L1D Cache",
    64                             base: 0x11F00000,
    65                             map : [["0k",0x0000],
    66                                    ["4k",0x1000],
    67                                    ["8k",0x2000],
    68                                    ["16k",0x4000],
    69                                    ["32k",0x8000]],
    70                             defaultValue: "32k",
    71                             memorySection: "L1DSRAM"}],
    72    
    73                ['l2Mode',{desc:"L2 Cache",
    74                             base: 0x11800000,
    75                             map : [["0k",0x0000],
    76                                    ["32k",0x8000],
    77                                    ["64k",0x10000],
    78                                    ["128k",0x20000]],
    79                             defaultValue: "0k",
    80                             memorySection: "IRAM"}],
    81    
    82        ];
    83    
    84    
    85    instance:
    86    
    87        /*!
    88         *  ======== memMap ========
    89         *  The default memory map for this device
    90         */
    91        override config xdc.platform.IPlatform.Memory memMap[string] = [
    92            ["IROM", {
    93                comment:    "Internal 1MB L2 ROM",
    94                name:       "IROM",
    95                base:       0x11700000,
    96                len:        0x00100000,
    97                space:      "code/data",
    98                access:     "RX"
    99            }],
   100    
   101            ["IRAM", {
   102                comment:    "Internal 128KB L2 memory",
   103                name:       "IRAM",
   104                base:       0x11800000,
   105                len:        0x00020000,
   106                space:      "code/data",
   107                access:     "RWX"
   108            }],
   109    
   110            ["L1PSRAM", {
   111                comment:    "Internal 32KB L1 program memory",
   112                name:       "L1PSRAM",
   113                base:       0x11E00000,
   114                len:        0x00008000,
   115                space:      "code",
   116                access:     "RWX"
   117            }],
   118    
   119            ["L1DSRAM", {
   120                comment:    "Internal 32KB L1 data memory",
   121                name:       "L1DSRAM",
   122                base:       0x11F00000,
   123                len:        0x00008000,
   124                space:      "data",
   125                access:     "RW"
   126            }],
   127        ];
   128    };