metaonly module ti.catalog.c6000.Vayu

The Vayu device data sheet module

This module implements the ICpuDataSheet interface and is used by platforms to obtain "data sheet" information about this device.
Configuration settings sourced in ti/catalog/c6000/Vayu.xdc
var Vayu = xdc.useModule('ti.catalog.c6000.Vayu');
module-wide config parameters
    const Vayu.cacheMap//  = ICacheInfo.CacheDesc[string] [
        [
            'l1PMode',
            {
                desc: "L1P Cache",
                base: 0x00E00000,
                map: [
                    [
                        "0k",
                        0x0000
                    ],
                    [
                        "4k",
                        0x1000
                    ],
                    [
                        "8k",
                        0x2000
                    ],
                    [
                        "16k",
                        0x4000
                    ],
                    [
                        "32k",
                        0x8000
                    ]
                ],
                defaultValue: "32k",
                memorySection: "L1PSRAM"
            }
        ],
        [
            'l1DMode',
            {
                desc: "L1D Cache",
                base: 0x00F00000,
                map: [
                    [
                        "0k",
                        0x0000
                    ],
                    [
                        "4k",
                        0x1000
                    ],
                    [
                        "8k",
                        0x2000
                    ],
                    [
                        "16k",
                        0x4000
                    ],
                    [
                        "32k",
                        0x8000
                    ]
                ],
                defaultValue: "32k",
                memorySection: "L1DSRAM"
            }
        ],
        [
            'l2Mode',
            {
                desc: "L2 Cache",
                base: 0x00800000,
                map: [
                    [
                        "0k",
                        0x0000
                    ],
                    [
                        "32k",
                        0x8000
                    ],
                    [
                        "64k",
                        0x10000
                    ],
                    [
                        "128k",
                        0x020000
                    ],
                    [
                        "256k",
                        0x040000
                    ]
                ],
                defaultValue: "0k",
                memorySection: "L2SRAM"
            }
        ]
    ];
 
    Vayu.cacheSizeL1//  = Long[string] [
        [
            "0k",
            0x0000
        ],
        [
            "4k",
            0x1000
        ],
        [
            "8k",
            0x2000
        ],
        [
            "16k",
            0x4000
        ],
        [
            "32k",
            0x8000
        ]
    ];
    Vayu.cacheSizeL2//  = Long[string] [
        [
            "0k",
            0x000000
        ],
        [
            "32k",
            0x008000
        ],
        [
            "64k",
            0x010000
        ],
        [
            "128k",
            0x020000
        ],
        [
            "256k",
            0x040000
        ]
    ];
per-instance config parameters
    var params = new Vayu.Params// Instance config-params object;
        params.cpuCore// A string identifying the CPU Core = String "6600";
        params.hdvicp0//  = HDVICP2.Instance undefined;
            [
                "L2SRAM",
                {
                    comment: "256KB L2 SRAM/CACHE",
                    name: "L2SRAM",
                    base: 0x00800000,
                    len: 0x00040000,
                    space: "code/data",
                    access: "RWX"
                }
            ],
            [
                "L1PSRAM",
                {
                    comment: "32KB RAM/CACHE L1 program memory",
                    name: "L1PSRAM",
                    base: 0x00E00000,
                    len: 0x00008000,
                    space: "code",
                    access: "RWX"
                }
            ],
            [
                "L1DSRAM",
                {
                    comment: "32KB RAM/CACHE L1 data memory",
                    name: "L1DSRAM",
                    base: 0x00F00000,
                    len: 0x00008000,
                    space: "data",
                    access: "RW"
                }
            ]
        ];
per-instance creation
    var inst = Vayu.create// Create an instance-object(String revision, params);
per-instance functions
 
 
config Vayu.cacheMap  // module-wide
Configuration settings
const Vayu.cacheMap = ICacheInfo.CacheDesc[string] [
    [
        'l1PMode',
        {
            desc: "L1P Cache",
            base: 0x00E00000,
            map: [
                [
                    "0k",
                    0x0000
                ],
                [
                    "4k",
                    0x1000
                ],
                [
                    "8k",
                    0x2000
                ],
                [
                    "16k",
                    0x4000
                ],
                [
                    "32k",
                    0x8000
                ]
            ],
            defaultValue: "32k",
            memorySection: "L1PSRAM"
        }
    ],
    [
        'l1DMode',
        {
            desc: "L1D Cache",
            base: 0x00F00000,
            map: [
                [
                    "0k",
                    0x0000
                ],
                [
                    "4k",
                    0x1000
                ],
                [
                    "8k",
                    0x2000
                ],
                [
                    "16k",
                    0x4000
                ],
                [
                    "32k",
                    0x8000
                ]
            ],
            defaultValue: "32k",
            memorySection: "L1DSRAM"
        }
    ],
    [
        'l2Mode',
        {
            desc: "L2 Cache",
            base: 0x00800000,
            map: [
                [
                    "0k",
                    0x0000
                ],
                [
                    "32k",
                    0x8000
                ],
                [
                    "64k",
                    0x10000
                ],
                [
                    "128k",
                    0x020000
                ],
                [
                    "256k",
                    0x040000
                ]
            ],
            defaultValue: "0k",
            memorySection: "L2SRAM"
        }
    ]
];
 
 
config Vayu.cacheSizeL1  // module-wide
Configuration settings
Vayu.cacheSizeL1 = Long[string] [
    [
        "0k",
        0x0000
    ],
    [
        "4k",
        0x1000
    ],
    [
        "8k",
        0x2000
    ],
    [
        "16k",
        0x4000
    ],
    [
        "32k",
        0x8000
    ]
];
 
 
config Vayu.cacheSizeL2  // module-wide
Configuration settings
Vayu.cacheSizeL2 = Long[string] [
    [
        "0k",
        0x000000
    ],
    [
        "32k",
        0x008000
    ],
    [
        "64k",
        0x010000
    ],
    [
        "128k",
        0x020000
    ],
    [
        "256k",
        0x040000
    ]
];
 
Instance Config Parameters

Configuration settings
var params = new Vayu.Params;
// Instance config-params object
    params.cpuCore = String "6600";
    // A string identifying the CPU Core
    params.cpuCoreRevision = String "1.0";
    // A string that uniquely identifies a revision of the core
    params.dataWordSize = Int 4;
    // The size of an int on the target in 8-bit bytes
    params.deviceHeader = String undefined;
    // The optional header file that define device specific constants and structures
    params.hdvicp0 = HDVICP2.Instance undefined;
    // 
    params.memMap = IPlatform.Memory[string] [
    // The default memory map for this device
        [
            "L2SRAM",
            {
                comment: "256KB L2 SRAM/CACHE",
                name: "L2SRAM",
                base: 0x00800000,
                len: 0x00040000,
                space: "code/data",
                access: "RWX"
            }
        ],
        [
            "L1PSRAM",
            {
                comment: "32KB RAM/CACHE L1 program memory",
                name: "L1PSRAM",
                base: 0x00E00000,
                len: 0x00008000,
                space: "code",
                access: "RWX"
            }
        ],
        [
            "L1DSRAM",
            {
                comment: "32KB RAM/CACHE L1 data memory",
                name: "L1DSRAM",
                base: 0x00F00000,
                len: 0x00008000,
                space: "data",
                access: "RW"
            }
        ]
    ];
    params.minDataUnitSize = Int 1;
    // The minimum addressable data unit size in 8-bit bytes
    params.minProgUnitSize = Int 1;
    // The minimum addressable program unit size in 8-bit bytes
    params.peripherals = IPeripheral.Instance[string] undefined;
    // A map of peripherals available on the device
 
config Vayu.Params.cpuCore  // instance

A string identifying the CPU Core

Configuration settings
var params = new Vayu.Params;
  ...
params.cpuCore = String "6600";
 
DETAILS
This uniquely identifies the instruction set that the CPU can decode and execute.
 
config Vayu.Params.cpuCoreRevision  // instance

A string that uniquely identifies a revision of the core

Configuration settings
var params = new Vayu.Params;
  ...
params.cpuCoreRevision = String "1.0";
 
 
config Vayu.Params.dataWordSize  // instance

The size of an int on the target in 8-bit bytes

Configuration settings
var params = new Vayu.Params;
  ...
params.dataWordSize = Int 4;
 
 
config Vayu.Params.deviceHeader  // instance

The optional header file that define device specific constants and structures

Configuration settings
var params = new Vayu.Params;
  ...
params.deviceHeader = String undefined;
 
 
config Vayu.Params.hdvicp0  // instance
Configuration settings
var params = new Vayu.Params;
  ...
params.hdvicp0 = HDVICP2.Instance undefined;
 
 
config Vayu.Params.memMap  // instance

The default memory map for this device

Configuration settings
var params = new Vayu.Params;
  ...
params.memMap = IPlatform.Memory[string] [
    [
        "L2SRAM",
        {
            comment: "256KB L2 SRAM/CACHE",
            name: "L2SRAM",
            base: 0x00800000,
            len: 0x00040000,
            space: "code/data",
            access: "RWX"
        }
    ],
    [
        "L1PSRAM",
        {
            comment: "32KB RAM/CACHE L1 program memory",
            name: "L1PSRAM",
            base: 0x00E00000,
            len: 0x00008000,
            space: "code",
            access: "RWX"
        }
    ],
    [
        "L1DSRAM",
        {
            comment: "32KB RAM/CACHE L1 data memory",
            name: "L1DSRAM",
            base: 0x00F00000,
            len: 0x00008000,
            space: "data",
            access: "RW"
        }
    ]
];
 
 
config Vayu.Params.minDataUnitSize  // instance

The minimum addressable data unit size in 8-bit bytes

Configuration settings
var params = new Vayu.Params;
  ...
params.minDataUnitSize = Int 1;
 
 
config Vayu.Params.minProgUnitSize  // instance

The minimum addressable program unit size in 8-bit bytes

Configuration settings
var params = new Vayu.Params;
  ...
params.minProgUnitSize = Int 1;
 
 
config Vayu.Params.peripherals  // instance

A map of peripherals available on the device

Configuration settings
var params = new Vayu.Params;
  ...
params.peripherals = IPeripheral.Instance[string] undefined;
 
Static Instance Creation

Configuration settings
var params = new Vayu.Params;
// Allocate instance config-params
params.config =   ...
// Assign individual configs
 
var inst = Vayu.create(String revision, params);
// Create an instance-object
ARGUMENTS
revision — a string that identifies revision of the CPU to be created.
DETAILS
A "data sheet" for a CPU allows one to get specific attributes for a CPU programatically; e.g., the memory map of the CPU.
Notice that we don't specify CPU registers when we create a a data-sheet; registers are provided as necessary to the other functions defined in this interface. This allows one to more easily get memory maps for several different setting of the registers, for example.
 
Vayu.getMemoryMap()  // instance

Get the memory map that corresponds to the values of the specified registers

Configuration settings
inst.getMemoryMap(Any registers) returns Any
 
ARGUMENTS
registers — a hash of named registers to values at the time an executable is to be loaded (for example)
DETAILS
If a register is not specified and this register can affect the memory map, the register is assumed to be set to its reset value (the value of the register immediately after a CPU reset).
RETURNS
Returns an array of xdc.platform.IPlatform.Memory objects that represent the memory visible to an executable running on the CPU.
 
Vayu.getRegisterSet()  // instance

The set of valid register names for this CPU

Configuration settings
inst.getRegisterSet() returns Any
 
DETAILS
This function returns the complete set of register names that may be passed to the getMemoryMap() function. This function is only used to enable one to write a "requires contract" for the getMemoryMap() function.
RETURNS
Returns an array of valid register names (strings) for this device; only names from this array are valid keys for the registers argument to getMemoryMap().
generated on Thu, 23 May 2019 00:24:03 GMT