1 2 3 4 5 6 7 8
9
10 11 12 13
14
15 /*!
16 * ======== ITMS320CDRx40x ========
17 * An interface implemented by all DRx40x and DRx41x devices
18 *
19 * This interface is defined to factor common data about all DRA40x and
20 * DRA41x devices into a single file; they are all configured in the same way.
21 */
22 metaonly interface ITMS320CDRx40x inherits ti.catalog.ICpuDataSheet
23 {
24 config long cacheSizeL1[string] = [
25 ["0k", 0x0000],
26 ["4k", 0x1000],
27 ["8k", 0x2000],
28 ["16k", 0x4000],
29 ["32k", 0x8000],
30 ];
31
32 config long cacheSizeL2[string] = [
33 ["0k", 0x00000],
34 ["32k", 0x08000],
35 ["64k", 0x10000],
36 ["128k",0x20000],
37 ];
38
39 readonly config ti.catalog.c6000.ICacheInfo.CacheDesc cacheMap[string] = [
40 ['l1PMode',{desc:"L1P Cache",
41 map : [["0k",0x0000],
42 ["4k",0x1000],
43 ["8k",0x2000],
44 ["16k",0x4000],
45 ["32k",0x8000]],
46 defaultValue: "0k",
47 memorySection: "L1PSRAM"}],
48
49 ['l1DMode',{desc:"L1D Cache",
50 map : [["0k",0x0000],
51 ["4k",0x1000],
52 ["8k",0x2000],
53 ["16k",0x4000],
54 ["32k",0x8000]],
55 defaultValue: "0k",
56 memorySection: "L1DSRAM"}],
57
58 ['l2Mode',{desc:"L2 Cache",
59 map : [["0k",0x0000],
60 ["32k",0x8000],
61 ["64k",0x10000],
62 ["128k",0x20000]],
63 defaultValue: "0k",
64 memorySection: "IRAM"}]
65
66 ];
67
68 instance:
69
70 override config string cpuCore = "64x+";
71 override config string isa = "64P";
72 override config string cpuCoreRevision = "1.0";
73
74 override config int minProgUnitSize = 1;
75 override config int minDataUnitSize = 1;
76 override config int dataWordSize = 4;
77
78 /*!
79 * ======== memMap ========
80 * The default memory map for this device
81 */
82 config xdc.platform.IPlatform.Memory memMap[string] = [
83 ["IRAM", {
84 comment: "Internal 192KB UMAP0 memory",
85 name: "IRAM",
86 base: 0x11810000,
87 len: 0x00030000,
88 space: "code/data",
89 access: "RWX"
90 }],
91
92 ["L1PSRAM", {
93 comment: "Internal 16KB RAM/CACHE L1 program memory",
94 name: "L1PSRAM",
95 base: 0x11E00000,
96 len: 0x00004000,
97 space: "code",
98 access: "RWX"
99 }],
100
101 ["L1DSRAM", {
102 comment: "Internal 32KB RAM/CACHE L1 data memory",
103 name: "L1DSRAM",
104 base: 0x11F00000,
105 len: 0x00008000,
106 space: "data",
107 access: "RW"
108 }],
109
110 ["ARM_RAM", {
111 comment: "Internal ARM RAM memory",
112 name: "ARM_RAM",
113 base: 0x10008000,
114 len: 0x00004000,
115 space: "data",
116 access: "RW"
117 }],
118 ];
119 };
120 121 122
123