This module implements the xdc.platform.ICpuDataSheet interface and is
used by platforms to obtain "data sheet" information about this device.
Instance Config Parameters |
![](../../../../Arrow_up.png) |
XDCscript usage |
meta-domain |
var params = new TMS320C6A8168.Params;
// Instance config-params object
params.cpuCore = String "CM3";
// 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
//
//
//
// The memory map returned be getMemoryMap()
[
"L2_ROM",
{
name: "L2_ROM",
base: 0x00000000,
len: 0x00004000
}
],
[
"L2_RAM",
{
name: "L2_RAM",
base: 0x20000000,
len: 0x00040000
}
],
[
"OCMC_0",
{
name: "OCMC_0",
base: 0x00300000,
len: 0x00020000
}
],
[
"OCMC_1",
{
name: "OCMC_1",
base: 0x00400000,
len: 0x00020000
}
]
];
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 TMS320C6A8168.cpuCore // instance |
![](../../../../Arrow_up.png) |
A string identifying the CPU Core
XDCscript usage |
meta-domain |
var params = new TMS320C6A8168.Params;
...
params.cpuCore = String "CM3";
DETAILS
This uniquely identifies the instruction set that the CPU can
decode and execute.
config TMS320C6A8168.cpuCoreRevision // instance |
![](../../../../Arrow_up.png) |
A string that uniquely identifies a revision of the core
XDCscript usage |
meta-domain |
var params = new TMS320C6A8168.Params;
...
params.cpuCoreRevision = String "1.0";
config TMS320C6A8168.dataWordSize // instance |
![](../../../../Arrow_up.png) |
The size of an int on the target in 8-bit bytes
XDCscript usage |
meta-domain |
var params = new TMS320C6A8168.Params;
...
params.dataWordSize = Int 4;
config TMS320C6A8168.deviceHeader // instance |
![](../../../../Arrow_up.png) |
The optional header file that define device specific constants and
structures
XDCscript usage |
meta-domain |
var params = new TMS320C6A8168.Params;
...
params.deviceHeader = String undefined;
config TMS320C6A8168.hdvicp0 // instance |
![](../../../../Arrow_up.png) |
XDCscript usage |
meta-domain |
var params = new TMS320C6A8168.Params;
...
config TMS320C6A8168.hdvicp1 // instance |
![](../../../../Arrow_up.png) |
XDCscript usage |
meta-domain |
var params = new TMS320C6A8168.Params;
...
config TMS320C6A8168.hdvicp2 // instance |
![](../../../../Arrow_up.png) |
XDCscript usage |
meta-domain |
var params = new TMS320C6A8168.Params;
...
config TMS320C6A8168.memMap // instance |
![](../../../../Arrow_up.png) |
The memory map returned be getMemoryMap()
XDCscript usage |
meta-domain |
var params = new TMS320C6A8168.Params;
...
[
"L2_ROM",
{
name: "L2_ROM",
base: 0x00000000,
len: 0x00004000
}
],
[
"L2_RAM",
{
name: "L2_RAM",
base: 0x20000000,
len: 0x00040000
}
],
[
"OCMC_0",
{
name: "OCMC_0",
base: 0x00300000,
len: 0x00020000
}
],
[
"OCMC_1",
{
name: "OCMC_1",
base: 0x00400000,
len: 0x00020000
}
]
];
config TMS320C6A8168.minDataUnitSize // instance |
![](../../../../Arrow_up.png) |
The minimum addressable data unit size in 8-bit bytes
XDCscript usage |
meta-domain |
var params = new TMS320C6A8168.Params;
...
params.minDataUnitSize = Int 1;
config TMS320C6A8168.minProgUnitSize // instance |
![](../../../../Arrow_up.png) |
The minimum addressable program unit size in 8-bit bytes
XDCscript usage |
meta-domain |
var params = new TMS320C6A8168.Params;
...
params.minProgUnitSize = Int 1;
config TMS320C6A8168.peripherals // instance |
![](../../../../Arrow_up.png) |
A map of peripherals available on the device
XDCscript usage |
meta-domain |
var params = new TMS320C6A8168.Params;
...
Instance Creation |
![](../../../../Arrow_up.png) |
XDCscript usage |
meta-domain |
var params =
new TMS320C6A8168.
Params;
// Allocate instance config-params
params.config = ...
// Assign individual configs
var inst = TMS320C6A8168.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.
TMS320C6A8168.getMemoryMap() // instance |
![](../../../../Arrow_up.png) |
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.
TMS320C6A8168.getRegisterSet() // instance |
![](../../../../Arrow_up.png) |
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().