var OMAPL137 = xdc.useModule('ti.catalog.c6000.OMAPL137');
module-wide config parameters
[
'l1PMode',
{
desc: "L1P Cache",
base: 0x11E00000,
map: [
[
"0k",
0x0000
],
[
"4k",
0x1000
],
[
"8k",
0x2000
],
[
"16k",
0x4000
],
[
"32k",
0x8000
]
],
defaultValue: "32k",
memorySection: "L1PSRAM"
}
],
[
'l1DMode',
{
desc: "L1D Cache",
base: 0x11F00000,
map: [
[
"0k",
0x0000
],
[
"4k",
0x1000
],
[
"8k",
0x2000
],
[
"16k",
0x4000
],
[
"32k",
0x8000
]
],
defaultValue: "32k",
memorySection: "L1DSRAM"
}
],
[
'l2Mode',
{
desc: "L2 Cache",
base: 0x11800000,
map: [
[
"0k",
0x0000
],
[
"32k",
0x8000
],
[
"64k",
0x10000
],
[
"128k",
0x20000
],
[
"256k",
0x40000
]
],
defaultValue: "0k",
memorySection: "IRAM"
}
]
];
[
"0k",
0x0000
],
[
"4k",
0x1000
],
[
"8k",
0x2000
],
[
"16k",
0x4000
],
[
"32k",
0x8000
]
];
[
"0k",
0x00000
],
[
"32k",
0x08000
],
[
"64k",
0x10000
],
[
"128k",
0x20000
],
[
"256k",
0x40000
]
];
per-instance config parameters
[
"IROM",
{
comment: "Internal 1MB L2 ROM",
name: "IROM",
base: 0x11700000,
len: 0x00100000,
space: "code/data",
access: "RX"
}
],
[
"IRAM",
{
comment: "Internal 256KB L2 memory",
name: "IRAM",
base: 0x11800000,
len: 0x00040000,
space: "code/data",
access: "RWX"
}
],
[
"L1PSRAM",
{
comment: "Internal 32KB L1 program memory",
name: "L1PSRAM",
base: 0x11E00000,
len: 0x00008000,
space: "code",
access: "RWX"
}
],
[
"L1DSRAM",
{
comment: "Internal 32KB L1 data memory",
name: "L1DSRAM",
base: 0x11F00000,
len: 0x00008000,
space: "data",
access: "RW"
}
],
[
"L3_CBA_RAM",
{
comment: "128KB ARM/DSP local shared RAM",
name: "L3_CBA_RAM",
base: 0x80000000,
len: 0x00020000,
space: "code/data",
access: "RWX"
}
]
];
per-instance creation
per-instance functions
config OMAPL137.cacheMap // module-wide |
|
XDCscript usage |
meta-domain |
[
'l1PMode',
{
desc: "L1P Cache",
base: 0x11E00000,
map: [
[
"0k",
0x0000
],
[
"4k",
0x1000
],
[
"8k",
0x2000
],
[
"16k",
0x4000
],
[
"32k",
0x8000
]
],
defaultValue: "32k",
memorySection: "L1PSRAM"
}
],
[
'l1DMode',
{
desc: "L1D Cache",
base: 0x11F00000,
map: [
[
"0k",
0x0000
],
[
"4k",
0x1000
],
[
"8k",
0x2000
],
[
"16k",
0x4000
],
[
"32k",
0x8000
]
],
defaultValue: "32k",
memorySection: "L1DSRAM"
}
],
[
'l2Mode',
{
desc: "L2 Cache",
base: 0x11800000,
map: [
[
"0k",
0x0000
],
[
"32k",
0x8000
],
[
"64k",
0x10000
],
[
"128k",
0x20000
],
[
"256k",
0x40000
]
],
defaultValue: "0k",
memorySection: "IRAM"
}
]
];
config OMAPL137.cacheSizeL1 // module-wide |
|
XDCscript usage |
meta-domain |
OMAPL137.cacheSizeL1 = Long[string] [
[
"0k",
0x0000
],
[
"4k",
0x1000
],
[
"8k",
0x2000
],
[
"16k",
0x4000
],
[
"32k",
0x8000
]
];
config OMAPL137.cacheSizeL2 // module-wide |
|
XDCscript usage |
meta-domain |
OMAPL137.cacheSizeL2 = Long[string] [
[
"0k",
0x00000
],
[
"32k",
0x08000
],
[
"64k",
0x10000
],
[
"128k",
0x20000
],
[
"256k",
0x40000
]
];
Instance Config Parameters |
|
XDCscript usage |
meta-domain |
var params = new OMAPL137.Params;
// Instance config-params object
params.cpuCore = String "C674";
// 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
//
[
"IROM",
{
comment: "Internal 1MB L2 ROM",
name: "IROM",
base: 0x11700000,
len: 0x00100000,
space: "code/data",
access: "RX"
}
],
[
"IRAM",
{
comment: "Internal 256KB L2 memory",
name: "IRAM",
base: 0x11800000,
len: 0x00040000,
space: "code/data",
access: "RWX"
}
],
[
"L1PSRAM",
{
comment: "Internal 32KB L1 program memory",
name: "L1PSRAM",
base: 0x11E00000,
len: 0x00008000,
space: "code",
access: "RWX"
}
],
[
"L1DSRAM",
{
comment: "Internal 32KB L1 data memory",
name: "L1DSRAM",
base: 0x11F00000,
len: 0x00008000,
space: "data",
access: "RW"
}
],
[
"L3_CBA_RAM",
{
comment: "128KB ARM/DSP local shared RAM",
name: "L3_CBA_RAM",
base: 0x80000000,
len: 0x00020000,
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
// A map of peripherals available on the device
config OMAPL137.cpuCore // instance |
|
A string identifying the CPU Core
XDCscript usage |
meta-domain |
var params = new OMAPL137.Params;
...
params.cpuCore = String "C674";
DETAILS
This uniquely identifies the instruction set that the CPU can
decode and execute.
config OMAPL137.cpuCoreRevision // instance |
|
A string that uniquely identifies a revision of the core
XDCscript usage |
meta-domain |
var params = new OMAPL137.Params;
...
params.cpuCoreRevision = String "1.0";
config OMAPL137.dataWordSize // instance |
|
The size of an int on the target in 8-bit bytes
XDCscript usage |
meta-domain |
var params = new OMAPL137.Params;
...
params.dataWordSize = Int 4;
config OMAPL137.deviceHeader // instance |
|
The optional header file that define device specific constants and
structures
XDCscript usage |
meta-domain |
var params = new OMAPL137.Params;
...
params.deviceHeader = String undefined;
config OMAPL137.memMap // instance |
|
XDCscript usage |
meta-domain |
var params = new OMAPL137.Params;
...
[
"IROM",
{
comment: "Internal 1MB L2 ROM",
name: "IROM",
base: 0x11700000,
len: 0x00100000,
space: "code/data",
access: "RX"
}
],
[
"IRAM",
{
comment: "Internal 256KB L2 memory",
name: "IRAM",
base: 0x11800000,
len: 0x00040000,
space: "code/data",
access: "RWX"
}
],
[
"L1PSRAM",
{
comment: "Internal 32KB L1 program memory",
name: "L1PSRAM",
base: 0x11E00000,
len: 0x00008000,
space: "code",
access: "RWX"
}
],
[
"L1DSRAM",
{
comment: "Internal 32KB L1 data memory",
name: "L1DSRAM",
base: 0x11F00000,
len: 0x00008000,
space: "data",
access: "RW"
}
],
[
"L3_CBA_RAM",
{
comment: "128KB ARM/DSP local shared RAM",
name: "L3_CBA_RAM",
base: 0x80000000,
len: 0x00020000,
space: "code/data",
access: "RWX"
}
]
];
config OMAPL137.minDataUnitSize // instance |
|
The minimum addressable data unit size in 8-bit bytes
XDCscript usage |
meta-domain |
var params = new OMAPL137.Params;
...
params.minDataUnitSize = Int 1;
config OMAPL137.minProgUnitSize // instance |
|
The minimum addressable program unit size in 8-bit bytes
XDCscript usage |
meta-domain |
var params = new OMAPL137.Params;
...
params.minProgUnitSize = Int 1;
config OMAPL137.peripherals // instance |
|
A map of peripherals available on the device
XDCscript usage |
meta-domain |
var params = new OMAPL137.Params;
...
Instance Creation |
|
XDCscript usage |
meta-domain |
var params =
new OMAPL137.
Params;
// Allocate instance config-params
params.config = ...
// Assign individual configs
var inst = OMAPL137.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.
OMAPL137.getMemoryMap() // instance |
|
Get the memory map that corresponds to the values of the specified
registers
XDCscript usage |
meta-domain |
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.
OMAPL137.getRegisterSet() // instance |
|
The set of valid register names for this CPU
XDCscript usage |
meta-domain |
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().