1 2 3 4 5 6 7 8
9
10 11 12
13
14 package ti.platforms.simDucati;
15
16 /*!
17 * ======== Platform ========
18 * Simulation-based Platform support for TI Arm (470x) platforms
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 /*!
36 * ======== BOARD ========
37 * This platform's board attributes
38 */
39 readonly config xdc.platform.IPlatform.Board BOARD = {
40 id: "0",
41 boardName: "simDucati",
42 boardFamily: "simDucati",
43 boardRevision: null
44 };
45
46 /*!
47 * ======== CPU ========
48 * The CPU simulated by this platform.
49 *
50 * The device simulated is determined by the platform instance name
51 * or if this does not name a ti.catalog.arm module, then we
52 * we simulate a TMS470.
53 */
54 readonly config xdc.platform.IExeContext.Cpu CPU = {
55 id: "0",
56 clockRate: 200.0,
57 catalogName: "ti.catalog.arm.nda",
58 deviceName: "Ducati",
59 revision: "1.0",
60 };
61
62 instance:
63
64 /*!
65 * ======== externalMemoryMap ========
66 * Memory regions as defined in the Ducati Functional Specification
67 */
68
69 override readonly config xdc.platform.IPlatform.Memory
70 externalMemoryMap[string] = [
71
72 ["EXT_RAM", {
73 comment: "External RAM",
74 name: "EXT_RAM",
75 base: 0x80000000,
76 len: 0x20000000
77 }],
78
79 ];
80
81 override config string codeMemory = "EXT_RAM";
82 override config string dataMemory = "EXT_RAM";
83 override config string stackMemory = "EXT_RAM";
84 };
85 86 87
88