struct ExeContext.Cpu |
|
CPU attributes necessary to create an execution context
XDCscript usage |
meta-domain |
var obj = new ExeContext.Cpu;
obj.id = String ...
// unique id within the platform
obj.catalogName = String ...
// name of catalog package
obj.deviceName = String ...
// module name within catalog package
obj.revision = String ...
// revision of specified device
obj.clockRate = Float ...
// clock rate in MHz of CPU on board
DETAILS
Attributes that uniquely identify the CPU responsible for executing
an executable image.
Instance Config Parameters |
|
XDCscript usage |
meta-domain |
var params = new ExeContext.Params;
// Instance config-params object
// The CPU "data-sheet" attributes
// The board-level attributes
params.catalogName = String undefined;
// The name of the package containing the module named by deviceName
params.clockRate = Float undefined;
// The clock rate in MHz of the CPU
params.deviceName = String undefined;
// The name of a CPU device within the catalog package catalogName
params.id = String undefined;
// The CPU's unique id within the platform
// The memory map seen by executables at the time they are loaded
params.revision = String "";
// The revision of the CPU
config ExeContext.attrs // instance |
|
The CPU "data-sheet" attributes
XDCscript usage |
meta-domain |
var params = new ExeContext.Params;
...
DETAILS
This "data sheet" allows one to get information about the CPU that
runs the run the executable associated with this execution context.
Multi-CPU platforms provide multiple execution contexts; each
context is associated with a single CPU on the platform.
READONLY
This parameter is set by the platform and is readonly for
configuration scripts.
config ExeContext.board // instance |
|
The board-level attributes
XDCscript usage |
meta-domain |
var params = new ExeContext.Params;
...
DETAILS
This parameter defines the static attributes of the board
containing the CPU that runs the executable.
READONLY
This parameter is set by the platform and is readonly for
configuration scripts.
config ExeContext.catalogName // instance |
|
The name of the package containing the module named by deviceName
XDCscript usage |
meta-domain |
var params = new ExeContext.Params;
...
params.catalogName = String undefined;
DETAILS
This string names a package containing one or more modules that
implements the
xdc.platform.ICpuDataSheet interface.
READONLY
This parameter is set by the platform and is readonly for
configuration scripts.
config ExeContext.clockRate // instance |
|
The clock rate in MHz of the CPU
XDCscript usage |
meta-domain |
var params = new ExeContext.Params;
...
params.clockRate = Float undefined;
READONLY
This parameter is set by the platform and is readonly for
configuration scripts.
config ExeContext.deviceName // instance |
|
The name of a CPU device within the catalog package catalogName
XDCscript usage |
meta-domain |
var params = new ExeContext.Params;
...
params.deviceName = String undefined;
DETAILS
This string names a module in the catalog package, specified by
catalogName, that represents the CPU that runs the executable; i.e.,
it implements the
xdc.platform.ICpuDataSheet interface.
config ExeContext.id // instance |
|
The CPU's unique id within the platform
XDCscript usage |
meta-domain |
var params = new ExeContext.Params;
...
params.id = String undefined;
DETAILS
This id is the string used to identify a specific CPU within
the platform that provides this execution context.
READONLY
This parameter is set by the platform and is readonly
for configuration scripts.
config ExeContext.memoryMap // instance |
|
The memory map seen by executables at the time they are loaded
XDCscript usage |
meta-domain |
var params = new ExeContext.Params;
...
READONLY
This parameter is set by the platform and is readonly for
configuration scripts.
config ExeContext.revision // instance |
|
The revision of the CPU
XDCscript usage |
meta-domain |
var params = new ExeContext.Params;
...
params.revision = String "";
READONLY
This parameter is set by the platform and is readonly for
configuration scripts.
Instance Creation |
|
XDCscript usage |
meta-domain |
var params =
new ExeContext.
Params;
// Allocate instance config-params
params.config = ...
// Assign individual configs
// Create an instance-object
ARGUMENTS
DETAILS
An execution context is the "view" that an executable has of the
CPU it is running on; e.g., the accessible memory map including
platform specific memory or memory mapped registers.