OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [MB96350_Softune_Dice_Kit/] [Prc/] [romconst.prc] - Blame information for rev 613

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 584 jeremybenn
# Simulator only:
2
# Copy ROM-mirror area to bank 0x00
3
 
4
if %EVAL(ROMM_CONFIG & 0x01) == 0x01
5
 
6
set variable ROMM_BANK = %EVAL(ROMM_CONFIG >> 4)
7
set variable ROMM_SIZE = %EVAL((ROMM_CONFIG >> 1) & 0x03)
8
 
9
print "\n\n>Set ROM-mirror memory map...\n"
10
 
11
 
12
if %ROMM_SIZE == 0
13
set map /read H'00E000..H'00FFFF
14
 
15
if %ROMM_BANK == 0x00
16
show map
17
move H'f0e000..H'F0FFFF,H'e000
18
 
19
elseif %ROMM_BANK == 0x01
20
show map
21
move H'f1e000..H'F1FFFF,H'e000
22
 
23
elseif %ROMM_BANK == 0x02
24
show map
25
move H'f2e000..H'F2FFFF,H'e000
26
 
27
elseif %ROMM_BANK == 0x03
28
show map
29
move H'f3e000..H'F3FFFF,H'e000
30
 
31
elseif %ROMM_BANK == 0x04
32
show map
33
move H'f4e000..H'F4FFFF,H'e000
34
 
35
elseif %ROMM_BANK == 0x05
36
show map
37
move H'f5e000..H'F5FFFF,H'e000
38
 
39
elseif %ROMM_BANK == 0x06
40
show map
41
move H'f6e000..H'F6FFFF,H'e000
42
 
43
elseif %ROMM_BANK == 0x07
44
show map
45
move H'f7e000..H'F7FFFF,H'e000
46
 
47
elseif %ROMM_BANK == 0x08
48
show map
49
move H'f8e000..H'F8FFFF,H'e000
50
 
51
elseif %ROMM_BANK == 0x09
52
show map
53
move H'f9e000..H'F9FFFF,H'e000
54
 
55
elseif %ROMM_BANK == 0x0A
56
show map
57
move H'fAe000..H'FAFFFF,H'e000
58
 
59
elseif %ROMM_BANK == 0x0B
60
show map
61
move H'fBe000..H'FBFFFF,H'e000
62
 
63
elseif %ROMM_BANK == 0x0B
64
show map
65
move H'fBe000..H'FBFFFF,H'e000
66
 
67
elseif %ROMM_BANK == 0x0C
68
show map
69
move H'fCe000..H'FCFFFF,H'e000
70
 
71
elseif %ROMM_BANK == 0x0D
72
show map
73
move H'fde000..H'FDFFFF,H'e000
74
 
75
elseif %ROMM_BANK == 0x0E
76
show map
77
move H'fee000..H'FEFFFF,H'e000
78
 
79
elseif %ROMM_BANK == 0x0F
80
show map
81
move H'ffe000..H'FFFFFF,H'e000
82
 
83
endif # ROMM_BANK selection
84
 
85
elseif %ROMM_SIZE == 1
86
set map /read H'00C000..H'00FFFF
87
 
88
if %ROMM_BANK == 0x00
89
show map
90
move H'f0c000..H'F0FFFF,H'c000
91
 
92
elseif %ROMM_BANK == 0x01
93
show map
94
move H'f1c000..H'F1FFFF,H'c000
95
 
96
elseif %ROMM_BANK == 0x02
97
show map
98
move H'f2c000..H'F2FFFF,H'c000
99
 
100
elseif %ROMM_BANK == 0x03
101
show map
102
move H'f3c000..H'F3FFFF,H'c000
103
 
104
elseif %ROMM_BANK == 0x04
105
show map
106
move H'f4c000..H'F4FFFF,H'c000
107
 
108
elseif %ROMM_BANK == 0x05
109
show map
110
move H'f5c000..H'F5FFFF,H'c000
111
 
112
elseif %ROMM_BANK == 0x06
113
show map
114
move H'f6c000..H'F6FFFF,H'c000
115
 
116
elseif %ROMM_BANK == 0x07
117
show map
118
move H'f7c000..H'F7FFFF,H'c000
119
 
120
elseif %ROMM_BANK == 0x08
121
show map
122
move H'f8c000..H'F8FFFF,H'c000
123
 
124
elseif %ROMM_BANK == 0x09
125
show map
126
move H'f9c000..H'F9FFFF,H'c000
127
 
128
elseif %ROMM_BANK == 0x0A
129
show map
130
move H'fAc000..H'FAFFFF,H'c000
131
 
132
elseif %ROMM_BANK == 0x0B
133
show map
134
move H'fBc000..H'FBFFFF,H'c000
135
 
136
elseif %ROMM_BANK == 0x0B
137
show map
138
move H'fBc000..H'FBFFFF,H'c000
139
 
140
elseif %ROMM_BANK == 0x0C
141
show map
142
move H'fCc000..H'FCFFFF,H'c000
143
 
144
elseif %ROMM_BANK == 0x0D
145
show map
146
move H'fdc000..H'FDFFFF,H'c000
147
 
148
elseif %ROMM_BANK == 0x0E
149
show map
150
move H'fec000..H'FEFFFF,H'c000
151
 
152
elseif %ROMM_BANK == 0x0F
153
show map
154
move H'ffc000..H'FFFFFF,H'c000
155
 
156
endif # ROMM_BANK selection
157
 
158
elseif %ROMM_SIZE == 2
159
set map /read H'00A000..H'00FFFF
160
 
161
if %ROMM_BANK == 0x00
162
show map
163
move H'f0a000..H'F0FFFF,H'a000
164
 
165
elseif %ROMM_BANK == 0x01
166
show map
167
move H'f1a000..H'F1FFFF,H'a000
168
 
169
elseif %ROMM_BANK == 0x02
170
show map
171
move H'f2a000..H'F2FFFF,H'a000
172
 
173
elseif %ROMM_BANK == 0x03
174
show map
175
move H'f3a000..H'F3FFFF,H'a000
176
 
177
elseif %ROMM_BANK == 0x04
178
show map
179
move H'f4a000..H'F4FFFF,H'a000
180
 
181
elseif %ROMM_BANK == 0x05
182
show map
183
move H'f5a000..H'F5FFFF,H'a000
184
 
185
elseif %ROMM_BANK == 0x06
186
show map
187
move H'f6a000..H'F6FFFF,H'a000
188
 
189
elseif %ROMM_BANK == 0x07
190
show map
191
move H'f7a000..H'F7FFFF,H'a000
192
 
193
elseif %ROMM_BANK == 0x08
194
show map
195
move H'f8a000..H'F8FFFF,H'a000
196
 
197
elseif %ROMM_BANK == 0x09
198
show map
199
move H'f9a000..H'F9FFFF,H'a000
200
 
201
elseif %ROMM_BANK == 0x0A
202
show map
203
move H'fAa000..H'FAFFFF,H'a000
204
 
205
elseif %ROMM_BANK == 0x0B
206
show map
207
move H'fBa000..H'FBFFFF,H'a000
208
 
209
elseif %ROMM_BANK == 0x0B
210
show map
211
move H'fBa000..H'FBFFFF,H'a000
212
 
213
elseif %ROMM_BANK == 0x0C
214
show map
215
move H'fCa000..H'FCFFFF,H'a000
216
 
217
elseif %ROMM_BANK == 0x0D
218
show map
219
move H'fda000..H'FDFFFF,H'a000
220
 
221
elseif %ROMM_BANK == 0x0E
222
show map
223
move H'fea000..H'FEFFFF,H'a000
224
 
225
elseif %ROMM_BANK == 0x0F
226
show map
227
move H'ffa000..H'FFFFFF,H'a000
228
 
229
endif # ROMM_BANK selection
230
 
231
elseif %ROMM_SIZE == 3
232
set map /read H'008000..H'00FFFF
233
 
234
if %ROMM_BANK == 0x00
235
show map
236
move H'f08000..H'F0FFFF,H'8000
237
 
238
elseif %ROMM_BANK == 0x01
239
show map
240
move H'f18000..H'F1FFFF,H'8000
241
 
242
elseif %ROMM_BANK == 0x02
243
show map
244
move H'f28000..H'F2FFFF,H'8000
245
 
246
elseif %ROMM_BANK == 0x03
247
show map
248
move H'f38000..H'F3FFFF,H'8000
249
 
250
elseif %ROMM_BANK == 0x04
251
show map
252
move H'f48000..H'F4FFFF,H'8000
253
 
254
elseif %ROMM_BANK == 0x05
255
show map
256
move H'f58000..H'F5FFFF,H'8000
257
 
258
elseif %ROMM_BANK == 0x06
259
show map
260
move H'f68000..H'F6FFFF,H'8000
261
 
262
elseif %ROMM_BANK == 0x07
263
show map
264
move H'f78000..H'F7FFFF,H'8000
265
 
266
elseif %ROMM_BANK == 0x08
267
show map
268
move H'f88000..H'F8FFFF,H'8000
269
 
270
elseif %ROMM_BANK == 0x09
271
show map
272
move H'f98000..H'F9FFFF,H'8000
273
 
274
elseif %ROMM_BANK == 0x0A
275
show map
276
move H'fA8000..H'FAFFFF,H'8000
277
 
278
elseif %ROMM_BANK == 0x0B
279
show map
280
move H'fB8000..H'FBFFFF,H'8000
281
 
282
elseif %ROMM_BANK == 0x0B
283
show map
284
move H'fB8000..H'FBFFFF,H'8000
285
 
286
elseif %ROMM_BANK == 0x0C
287
show map
288
move H'fC8000..H'FCFFFF,H'8000
289
 
290
elseif %ROMM_BANK == 0x0D
291
show map
292
move H'fd8000..H'FDFFFF,H'8000
293
 
294
elseif %ROMM_BANK == 0x0E
295
show map
296
move H'fe8000..H'FEFFFF,H'8000
297
 
298
elseif %ROMM_BANK == 0x0F
299
show map
300
move H'ff8000..H'FFFFFF,H'8000
301
 
302
endif # ROMM_BANK selection
303
 
304
endif # ROMM_SIZE selection
305
 
306
print ">Copy ROMCONST for simulation..."
307
print "OK"
308
 
309
print "\n-----------------------------------------------------------"
310
print "\nUse command \"batch prc\\romconst.prc\" after each download"
311
print "\n-----------------------------------------------------------"
312
 
313
else
314
 
315
print "\n----------------------"
316
print "\nROM Mirror disabled!!!"
317
print "\n----------------------"
318
 
319
endif
320
 
321
print "\n-------------------------------------------------------------------"
322
print "\nSetting CKMR to 0xF0 to allow for the Clock Wait in that start.asm."
323
print "\n-------------------------------------------------------------------"
324
 
325
set MEM /byte 0x0403 = 0xF0

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.