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