1 2 3 4 5 6 7 8
9
10 11 12
13
14 package ti.platforms.generic;
15
16 /*!
17 * ======== Platform ========
18 * A generic platform that supports any HW platform
19 *
20 * This module implements xdc.platform.IPlatform and defines configuration
21 * parameters that correspond to this platform's Cpu's, Board's, etc.
22 *
23 * The configuration parameters are initialized in this package's
24 * configuration script (package.cfg) and "bound" to the TCOM object
25 * model. Once they are part of the model, these parameters are
26 * queried by a program's configuration script.
27 *
28 * This particular platform has a single Cpu, and therefore, only
29 * declares a single CPU configuration object. Multi-CPU platforms
30 * would declare multiple Cpu configuration parameters (one per
31 * platform CPU).
32 */
33 metaonly module Platform inherits xdc.platform.IPlatform
34 {
35 config xdc.platform.IPlatform.Board BOARD = {
36 id: "0",
37 boardName: "generic",
38 boardFamily: null,
39 boardRevision: null
40 };
41
42 instance:
43
44 config xdc.platform.IExeContext.Cpu CPU = {
45 id: "0",
46 clockRate: 0,
47 catalogName: null,
48 deviceName: null,
49 revision: "",
50 };
51
52 /*!
53 * ======== deviceName ========
54 * The CPU simulated by this simulator platform.
55 *
56 * This parameter is required.
57 */
58 config string deviceName;
59
60 /*!
61 * ======== catalogName ========
62 * The name of the package that contains the module 'deviceName'.
63 *
64 * This parameter is required.
65 */
66 config string catalogName;
67
68 /*!
69 * ======== clockRate ========
70 * The clock rate for the simulated device.
71 *
72 * This parameter is required. There are no checks if the simulated device
73 * supports the given clock rate.
74 */
75 config Double clockRate;
76
77 override config string codeMemory = null;
78
79 override config string dataMemory = null;
80
81 override config string stackMemory = null;
82 };
83 84 85
86