metaonly module ti.catalog.arm.cortexa8.OMAP3405
Configuration settings sourced in ti/catalog/arm/cortexa8/OMAP3405.xdc
var OMAP3405 = xdc.useModule('ti.catalog.arm.cortexa8.OMAP3405');
per-instance config parameters
    var params = new OMAP3405.Params// Instance config-params object;
        params.cpuCore// A string identifying the CPU Core = String "v7A";
            [
                "SRAM",
                {
                    comment: "On-Chip SRAM",
                    name: "SRAM",
                    base: 0x40200000,
                    len: 0x00010000,
                    space: "code/data",
                    access: "RWX"
                }
            ]
        ];
per-instance creation
    var inst = OMAP3405.create// Create an instance-object(String revision, params);
per-instance functions
 
Instance Config Parameters

Configuration settings
var params = new OMAP3405.Params;
// Instance config-params object
    params.cpuCore = String "v7A";
    // 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.memMap = IPlatform.Memory[string] [
    // The memory map returned be getMemoryMap()
        [
            "SRAM",
            {
                comment: "On-Chip SRAM",
                name: "SRAM",
                base: 0x40200000,
                len: 0x00010000,
                space: "code/data",
                access: "RWX"
            }
        ]
    ];
    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 OMAP3405.Params.cpuCore  // instance

A string identifying the CPU Core

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

A string that uniquely identifies a revision of the core

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

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

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

The optional header file that define device specific constants and structures

Configuration settings
var params = new OMAP3405.Params;
  ...
params.deviceHeader = String undefined;
 
 
config OMAP3405.Params.memMap  // instance

The memory map returned be getMemoryMap()

Configuration settings
var params = new OMAP3405.Params;
  ...
params.memMap = IPlatform.Memory[string] [
    [
        "SRAM",
        {
            comment: "On-Chip SRAM",
            name: "SRAM",
            base: 0x40200000,
            len: 0x00010000,
            space: "code/data",
            access: "RWX"
        }
    ]
];
 
 
config OMAP3405.Params.minDataUnitSize  // instance

The minimum addressable data unit size in 8-bit bytes

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

The minimum addressable program unit size in 8-bit bytes

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

A map of peripherals available on the device

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

Configuration settings
var params = new OMAP3405.Params;
// Allocate instance config-params
params.config =   ...
// Assign individual configs
 
var inst = OMAP3405.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.
 
OMAP3405.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.
 
OMAP3405.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:05 GMT