1 2 3 4 5 6 7 8
9
10 11 12 13
14
15 /*!
16 * ======== Platform ========
17 * Platform support for the app510
18 *
19 * This module implements xdc.platform.IPlatform and defines configuration
20 * parameters that correspond to this platform's Cpu's, Board's, etc.
21 *
22 * The configuration parameters are initialized in this package's
23 * configuration script (package.cfg) and "bound" to the TCOM object
24 * model. Once they are part of the model, these parameters are
25 * queried by a program's configuration script.
26 */
27
28 metaonly module Platform inherits xdc.platform.IPlatform
29 {
30 enum RuntimeEnv {
31 STDIO,
32 POSIX,
33 BIOS
34 };
35
36 readonly config xdc.platform.IPlatform.Board BOARD = {
37 id: "0",
38 boardName: "app510",
39 boardFamily: "app510",
40 boardRevision: null,
41 };
42
43 readonly config xdc.platform.IExeContext.Cpu CPU = {
44 id: "0",
45 clockRate: 180.0,
46 catalogName: "ti.catalog.arm",
47 deviceName: "TMS320CDM510",
48 revision: "1.0",
49 };
50
51 instance:
52
53 override readonly config xdc.platform.IPlatform.Memory
54 externalMemoryMap[string] = [
55 ["DDR2", {name: "DDR2", base: 0x80000000, len: 0x01000000}],
56 ];
57
58
59 override config string codeMemory = "DDR2";
60
61
62 override config string dataMemory = "DDR2";
63
64
65 override config string stackMemory = "DDR2";
66
67 /*!
68 * ======== runTime ========
69 * The runtime environment available to executables
70 */
71 config RuntimeEnv runTime = STDIO;
72
73 /*!
74 * ======== singleCore ========
75 * no longer used!
76 * @_nodoc
77 */
78 config Bool singleCore = true;
79 }
80 81 82
83