1    /*
     2     *  Copyright (c) 2010 by 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    /*
    14     *  ======== TMS320C6454.xdc ========
    15     *
    16     */
    17    
    18    /*!
    19     *  ======== TMS320C6454 ========
    20     *  The 6454 device data sheet module.
    21     *
    22     *  This module implements the ICpuDataSheet interface and is 
    23     *  used by platforms to obtain "data sheet" information about this device.
    24     */
    25    metaonly module TMS320C6454 inherits ti.catalog.ICpuDataSheet
    26    {
    27        config long cacheSizeL1[string] = [
    28            ["0k",  0x0000],
    29            ["4k",  0x1000],
    30            ["8k",  0x2000],
    31            ["16k", 0x4000],
    32            ["32k", 0x8000],
    33        ];
    34    
    35        config long cacheSizeL2[string] = [
    36            ["0k",   0x00000],
    37            ["32k",  0x08000],
    38            ["64k",  0x10000],
    39            ["128k", 0x20000],
    40            ["256k", 0x40000]
    41        ];
    42    
    43        readonly config ti.catalog.c6000.ICacheInfo.CacheDesc cacheMap[string] =  [
    44             ['l1PMode',{desc:"L1P Cache",
    45                         map : [["0k",0x0000],
    46                                ["4k",0x1000],
    47                                ["8k",0x2000],
    48                                ["16k",0x4000],
    49                                ["32k",0x8000]],
    50                         defaultValue: "0k",
    51                         memorySection: "L1PSRAM"}],
    52         
    53                     ['l1DMode',{desc:"L1D Cache",
    54                         map : [["0k",0x0000],
    55                                ["4k",0x1000],
    56                                ["8k",0x2000],
    57                                ["16k",0x4000],
    58                                ["32k",0x8000]],
    59                         defaultValue: "0k",
    60                         memorySection: "L1DSRAM"}],
    61                     
    62             ['l2Mode',{desc:"L2 Cache",
    63                         map : [["0k",0x0000],
    64                                ["32k",0x8000],
    65                                ["64k",0x10000],
    66                                ["128k",0x20000],
    67                                ["256k",0x40000]],
    68                         defaultValue: "0k",
    69                         memorySection: "IRAM"}], 
    70        ];
    71    
    72    instance:
    73    
    74        override config string   cpuCore        = "64x+";
    75        override config string   isa = "64P";
    76        override config string   cpuCoreRevision = "1.0";
    77    
    78        override config int     minProgUnitSize = 1;
    79        override config int     minDataUnitSize = 1;    
    80        override config int     dataWordSize    = 4;
    81    
    82        /*!
    83         *  ======== memMap ========
    84         *  The default memory map for this device
    85         */
    86        config xdc.platform.IPlatform.Memory memMap[string]  = [
    87            ["IRAM", {
    88                comment:    "Internal 1MB UMAP0 memory",
    89                name:       "IRAM",
    90                base:       0x800000,
    91                len:        0x100000,
    92                space:      "code/data",
    93                access:     "RWX"
    94            }],
    95    
    96            ["L1PSRAM", {
    97                comment:    "Internal 32KB RAM/CACHE L1 program memory",
    98                name:       "L1PSRAM",
    99                base:       0xE00000,
   100                len:        0x008000,
   101                space:      "code",
   102                access:     "RWX"
   103            }],
   104    
   105            ["L1DSRAM", {
   106                comment:    "Internal 32KB RAM/CACHE L1 data memory",
   107                name:       "L1DSRAM",
   108                base:       0xF00000,
   109                len:        0x008000,
   110                space:      "data",
   111                access:     "RW"
   112            }],
   113    
   114        ];
   115    };
   116    /*
   117     *  @(#) ti.catalog.c6000; 1, 0, 0, 0,276; 8-7-2010 18:18:10; /db/ztree/library/trees/platform/platform-l20x/src/
   118     */
   119