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     *  ======== IHimalaya.xdc ========
    15     *
    16     */
    17    package ti.catalog.c6000;
    18    
    19    /*!
    20     *  ======== IHimalaya ========
    21     *  An interface implemented by all Himalaya devices
    22     *
    23     *  This interface is defined to factor common data about all Himalaya devices
    24     *  into a single place; they are all the same from the configuration point of
    25     *  view.
    26     */
    27    metaonly interface IHimalaya inherits ti.catalog.ICpuDataSheet
    28    {
    29    
    30        config long cacheSizeL1[string] = [
    31            ["0k",  0x0000],
    32            ["4k",  0x1000],
    33            ["8k",  0x2000],
    34            ["16k", 0x4000],
    35            ["32k", 0x8000],
    36        ];
    37    
    38        config long cacheSizeL2[string] = [
    39            ["0k",   0x00000],
    40            ["32k",  0x08000],
    41            ["64k",  0x10000],
    42            ["128k", 0x20000],
    43            ["256k", 0x40000]
    44        ];
    45    
    46        readonly config ti.catalog.c6000.ICacheInfo.CacheDesc cacheMap[string] =  [
    47                 ['l1PMode',{desc:"L1P Cache",
    48                             base:0xE00000,
    49                             map : [["0k",0x0000],
    50                                    ["4k",0x1000],
    51                                    ["8k",0x2000],
    52                                    ["16k",0x4000],
    53                                    ["32k",0x8000]],
    54                             defaultValue: "32k",
    55                             memorySection: "L1PSRAM"}],
    56             
    57                     ['l1DMode',{desc:"L1D Cache",
    58                             base:0xF00000,
    59                             map : [["0k",0x0000],
    60                                    ["4k",0x1000],
    61                                    ["8k",0x2000],
    62                                    ["16k",0x4000],
    63                                    ["32k",0x8000]],
    64                             defaultValue: "32k",
    65                             memorySection: "L1DSRAM"}],
    66                         
    67                 ['l2Mode',{desc:"L2 Cache",
    68                             base:0x800000,
    69                             map : [["0k",0x0000],
    70                                    ["32k",0x8000],
    71                                    ["64k",0x10000],
    72                                    ["128k", 0x20000],
    73                                ["256k", 0x40000]],
    74                             defaultValue: "0k",
    75                             memorySection: "IRAM"}], 
    76    
    77        ];  
    78    
    79    instance:
    80    
    81        override config string   cpuCore         = "64x+";
    82        override config string   isa = "64P";
    83        override config string   cpuCoreRevision = "1.0";
    84    
    85        override config int     minProgUnitSize = 1;
    86        override config int     minDataUnitSize = 1;    
    87        override config int     dataWordSize    = 4;
    88    
    89        /*!
    90         *  ======== memMap ========
    91         *  The default memory map for this device
    92         */
    93        config xdc.platform.IPlatform.Memory memMap[string]  = [
    94            ["IRAM", {
    95                comment:    "Internal 2MB UMAP0 memory",
    96                name:       "IRAM",
    97                base:       0x800000,
    98                len:        0x200000,
    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:       0xE00000,
   107                len:        0x008000,
   108                space:      "code",
   109                access:     "RWX"
   110            }],
   111    
   112            ["L1DSRAM", {
   113                comment:    "Internal 32KB RAM/CACHE L1 data memory",
   114                name:       "L1DSRAM",
   115                base:       0xF00000,
   116                len:        0x008000,
   117                space:      "data",
   118                access:     "RW"
   119            }],
   120    
   121        ];
   122    };
   123    /*
   124     *  @(#) ti.catalog.c6000; 1, 0, 0, 0,295; 12-3-2010 11:43:58; /db/ztree/library/trees/platform/platform-l29x/src/
   125     */
   126