This interface describes the execution environment provided by a
platform as seen by an executable on a particular CPU at the time
it is loaded.
Execution contexts are created by platforms via
xdc.platform.IPlatform.getExeContext(). Execution contexts are
created implicitly just prior to executing a program's configuration
script. This execution context is made available to the configuration
script as the global read-only
Program.cpu configuration parameter;
see
xdc.cfg.Program.
struct IExeContext.Cpu |
|
CPU attributes necessary to create an execution context
metaonly struct Cpu {
String id;
// unique id within the platform
String catalogName;
// name of catalog package
String deviceName;
// module name within catalog package
String revision;
// revision of specified device
Float clockRate;
// clock rate in MHz of CPU on board
};
DETAILS
Attributes that uniquely identify the CPU responsible for executing
an executable image.
config IExeContext.attrs // instance |
|
The CPU "data-sheet" attributes
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 IExeContext.board // instance |
|
The board-level attributes
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 IExeContext.catalogName // instance |
|
The name of the package containing the module named by deviceName
config String catalogName;
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 IExeContext.clockRate // instance |
|
The clock rate in MHz of the CPU
READONLY
This parameter is set by the platform and is readonly for
configuration scripts.
config IExeContext.deviceName // instance |
|
The name of a CPU device within the catalog package catalogName
config String deviceName;
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 IExeContext.id // instance |
|
The CPU's unique id within the platform
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 IExeContext.memoryMap // instance |
|
The memory map seen by executables at the time they are loaded
READONLY
This parameter is set by the platform and is readonly for
configuration scripts.
config IExeContext.revision // instance |
|
The revision of the CPU
config String revision = "";
READONLY
This parameter is set by the platform and is readonly for
configuration scripts.