-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsampleOutput.txt
462 lines (380 loc) · 16.7 KB
/
sampleOutput.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
Script started on 2019-03-06 11:59:04-0700
]0;bijan@bijan: ~/ECEN5813_SP19_Project1[01;32mbijan@bijan[00m:[01;34m~/ECEN5813_SP19_Project1[00m$ all[K[K[K./memtest
This is a simple program for testing memory.
Type 'help' for more details or 'exit' to leave the program:
PES_Prj1 >> help
mem_test commands
help - this message
allocate <word> - allocate <words> of memory
free - free previously allocated memory
read <-i> <address> [<words>] -
read from <address> for one or <words> [<-i> immediate addressing]
write <-i> <address> <value>] -
write <value> to <address> [<-i> immediate addressing]
invert <-i> <address> <words>] -
invert bits starting from <address> for <words> [<-i> immediate addressing]
pattern <-i> <address> <words> [<seed>] -
write pseudorandom pattern at <address> for <words> using <seed> [<-i> immediate addressing]
verify <-i> <address> <words> [<seed>] -
verify pseudorandom pattern at <address> for <words> using <seed> [<-i> immediate addressing]
exit - exit the program
Note: Please enter hexadecimal numbers without '0x'
PES_Prj1 >> allocate
Please enter not more than a valid non-zero offset value w/o any extra, or <help> for details
PES_Prj1 >> allocate 10
Memory block allocated.
Address: 0x5620bddf7a80 size: 10 (40 Bytes)
Enter another command
PES_Prj1 >> read 0 10
Address Value Index
------------ ---------- ------
0x5620bddf7a80 0x00000000 0
0x5620bddf7a84 0x00000000 1
0x5620bddf7a88 0x00000000 2
0x5620bddf7a8c 0x00000000 3
0x5620bddf7a90 0x00000000 4
0x5620bddf7a94 0x00000000 5
0x5620bddf7a98 0x00000000 6
0x5620bddf7a9c 0x00000000 7
0x5620bddf7aa0 0x00000000 8
0x5620bddf7aa4 0x00000000 9
PES_Prj1 >> read 0
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> read 0 20
Please enter valid length between 1 to 10
PES_Prj1 >> read -i
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> read -i 3
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> read -i 5620bddf7a88
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> read -i 5620bddf7a88 55
Please enter valid length between 1 to 8
PES_Prj1 >> read -i 5620bddf7aff 5
Please enter the starting memory address between 0x5620bddf7a80 and 0x5620bddf7aa4
PES_Prj1 >> read -i 5620bddf7a88 5
Address Value Index
------------ ---------- ------
0x5620bddf7a88 0x00000000 0
0x5620bddf7a8c 0x00000000 1
0x5620bddf7a90 0x00000000 2
0x5620bddf7a94 0x00000000 3
0x5620bddf7a98 0x00000000 4
PES_Prj1 >> write
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> write 2
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> wrtie 2 aaabbb
Invalid input, please try again:
PES_Prj1 >> write 2 aaabbb
Value: aaabbb written at address: 0x5620bddf7a88
PES_Prj1 >> read 0 10
Address Value Index
------------ ---------- ------
0x5620bddf7a80 0x00000000 0
0x5620bddf7a84 0x00000000 1
0x5620bddf7a88 0x00aaabbb 2
0x5620bddf7a8c 0x00000000 3
0x5620bddf7a90 0x00000000 4
0x5620bddf7a94 0x00000000 5
0x5620bddf7a98 0x00000000 6
0x5620bddf7a9c 0x00000000 7
0x5620bddf7aa0 0x00000000 8
0x5620bddf7aa4 0x00000000 9
PES_Prj1 >> write -i
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> write -i 5620bddf7a88
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> write -i 5620bddf7a88 ffffffffffffff
Please enter a valid 32bit hex number for the value
PES_Prj1 >> write -i 5620bddf7a88 12345678
Value: 12345678 written at address: 0x5620bddf7a88
PES_Prj1 >> read 0 10
Address Value Index
------------ ---------- ------
0x5620bddf7a80 0x00000000 0
0x5620bddf7a84 0x00000000 1
0x5620bddf7a88 0x12345678 2
0x5620bddf7a8c 0x00000000 3
0x5620bddf7a90 0x00000000 4
0x5620bddf7a94 0x00000000 5
0x5620bddf7a98 0x00000000 6
0x5620bddf7a9c 0x00000000 7
0x5620bddf7aa0 0x00000000 8
0x5620bddf7aa4 0x00000000 9
PES_Prj1 >> invert
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> invert 2
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> invert 3 4
Invert function execution time is milli: 0.006000sec.
Enter another command
PES_Prj1 >> read 0 10
Address Value Index
------------ ---------- ------
0x5620bddf7a80 0x00000000 0
0x5620bddf7a84 0x00000000 1
0x5620bddf7a88 0x12345678 2
0x5620bddf7a8c 0xffffffff 3
0x5620bddf7a90 0xffffffff 4
0x5620bddf7a94 0xffffffff 5
0x5620bddf7a98 0xffffffff 6
0x5620bddf7a9c 0x00000000 7
0x5620bddf7aa0 0x00000000 8
0x5620bddf7aa4 0x00000000 9
PES_Prj1 >> invert 3 10
Please enter valid length between 1 to 7
PES_Prj1 >> invert 5
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> invert -i
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> invert -i 4554
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> invert -i 65468 3
Please enter a valid hex number for the memory address
PES_Prj1 >> invert 5620bddf7a88
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> invert -i 5620bddf7a88
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> invert -i 5620bddf7a88 10
Please enter valid length between 1 to 3
PES_Prj1 >> invert -i 5620bddf7a88 3
Invert function execution time is milli: 0.005000sec.
Enter another command
PES_Prj1 >> read 0 10
Address Value Index
------------ ---------- ------
0x5620bddf7a80 0x00000000 0
0x5620bddf7a84 0x00000000 1
0x5620bddf7a88 0x12345678 2
0x5620bddf7a8c 0xffffffff 3
0x5620bddf7a90 0xffffffff 4
0x5620bddf7a94 0xffffffff 5
0x5620bddf7a98 0xffffffff 6
0x5620bddf7a9c 0xffffffff 7
0x5620bddf7aa0 0xffffffff 8
0x5620bddf7aa4 0xffffffff 9
PES_Prj1 >> allocate 10
Memory is current allocated in address 0x0x5620bddf7a80
Do you wish to override this data? (Y?)
PES_Prj1 >> n
Memory allocated remains in address 0x0x5620bddf7a80
Enter another command
PES_Prj1 >> read 0 10
Address Value Index
------------ ---------- ------
0x5620bddf7a80 0x00000000 0
0x5620bddf7a84 0x00000000 1
0x5620bddf7a88 0x12345678 2
0x5620bddf7a8c 0xffffffff 3
0x5620bddf7a90 0xffffffff 4
0x5620bddf7a94 0xffffffff 5
0x5620bddf7a98 0xffffffff 6
0x5620bddf7a9c 0xffffffff 7
0x5620bddf7aa0 0xffffffff 8
0x5620bddf7aa4 0xffffffff 9
PES_Prj1 >> allocate 10
Memory is current allocated in address 0x0x5620bddf7a80
Do you wish to override this data? (Y?)
PES_Prj1 >> y
40 Bytes of heap released from address 0x5620bddf7a80 to 0x5620bddf7aa8
Memory block allocated.
Address: 0x5620bddf7ab0 size: 10 (40 Bytes)
Enter another command
PES_Prj1 >> read 0 10
Address Value Index
------------ ---------- ------
0x5620bddf7ab0 0x00000000 0
0x5620bddf7ab4 0x00000000 1
0x5620bddf7ab8 0x00000000 2
0x5620bddf7abc 0x00000000 3
0x5620bddf7ac0 0x00000000 4
0x5620bddf7ac4 0x00000000 5
0x5620bddf7ac8 0x00000000 6
0x5620bddf7acc 0x00000000 7
0x5620bddf7ad0 0x00000000 8
0x5620bddf7ad4 0x00000000 9
PES_Prj1 >> pattern
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> pattern 2
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> pattern 2 3
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> pattern 2 3 1
##########################
# Random numbers #
##########################
Address Value Index
------------ ---------- ------
0x5620bddf7ab8 0x3c88596c 0
0x5620bddf7abc 0x5e8885db 1
0x5620bddf7ac0 0x8116017e 2
PES_Prj1 >> Pattern function execution time is milli: 0.057000sec.
Enter another command
PES_Prj1 >> pattern -i
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> pattern -i errg434
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> pattern -i 5620bddf7a88
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> pattern -i 5620bddf7ac8 10
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> pattern -i 5620bddf7ac8 10 1
Please enter valid length between 1 to 4
PES_Prj1 >> pattern -i 5620bddf7ac8 3
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> pattern -i 5620bddf7ac8 3 1
##########################
# Random numbers #
##########################
Address Value Index
------------ ---------- ------
0x5620bddf7ac8 0x3c88596c 0
0x5620bddf7acc 0x5e8885db 1
0x5620bddf7ad0 0x8116017e 2
PES_Prj1 >> Pattern function execution time is milli: 0.065000sec.
Enter another command
PES_Prj1 >> read 0 10
Address Value Index
------------ ---------- ------
0x5620bddf7ab0 0x00000000 0
0x5620bddf7ab4 0x00000000 1
0x5620bddf7ab8 0x3c88596c 2
0x5620bddf7abc 0x5e8885db 3
0x5620bddf7ac0 0x8116017e 4
0x5620bddf7ac4 0x00000000 5
0x5620bddf7ac8 0x3c88596c 6
0x5620bddf7acc 0x5e8885db 7
0x5620bddf7ad0 0x8116017e 8
0x5620bddf7ad4 0x00000000 9
PES_Prj1 >> free
40 Bytes of heap released from address 0x5620bddf7ab0 to 0x5620bddf7ad4
Enter another command
PES_Prj1 >> allocate 0 10
Please enter not more than a valid non-zero offset value w/o any extra, or <help> for details
PES_Prj1 >> read 0 10
Memory is not allocated yet!
PES_Prj1 >> allocate 10
Memory block allocated.
Address: 0x5620bddf7ae0 size: 10 (40 Bytes)
Enter another command
PES_Prj1 >> read 0 10
Address Value Index
------------ ---------- ------
0x5620bddf7ae0 0x00000000 0
0x5620bddf7ae4 0x00000000 1
0x5620bddf7ae8 0x00000000 2
0x5620bddf7aec 0x00000000 3
0x5620bddf7af0 0x00000000 4
0x5620bddf7af4 0x00000000 5
0x5620bddf7af8 0x00000000 6
0x5620bddf7afc 0x00000000 7
0x5620bddf7b00 0x00000000 8
0x5620bddf7b04 0x00000000 9
PES_Prj1 >> verify
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> verify 0
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> verify 0 3
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> verify 0 3 1
##########################
# Random numbers #
##########################
Address Value Index
------------ ---------- ------
0x5620bddf7ae0 0x3c88596c 0
0x5620bddf7ae4 0x5e8885db 1
0x5620bddf7ae8 0x8116017e 2
PES_Prj1 >> The expected and actual values are identical!
Pattern function execution time is milli: 0.004000sec.
Enter another command
PES_Prj1 >> read 0 10
Address Value Index
------------ ---------- ------
0x5620bddf7ae0 0x3c88596c 0
0x5620bddf7ae4 0x5e8885db 1
0x5620bddf7ae8 0x8116017e 2
0x5620bddf7aec 0x00000000 3
0x5620bddf7af0 0x00000000 4
0x5620bddf7af4 0x00000000 5
0x5620bddf7af8 0x00000000 6
0x5620bddf7afc 0x00000000 7
0x5620bddf7b00 0x00000000 8
0x5620bddf7b04 0x00000000 9
PES_Prj1 >> verify -i
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> verify -i 455trg
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> verify -i 5620bddf7aec
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> verify -i 5620bddf7aec 12
Please enter sufficient parameters for this command, or <help> for details
PES_Prj1 >> verify -i 5620bddf7aec 12 1
Please enter valid length between 1 to 7
PES_Prj1 >> verify -i 5620bddf7aec 3 2
##########################
# Random numbers #
##########################
Address Value Index
------------ ---------- ------
0x5620bddf7aec 0x3ca1bf79 0
0x5620bddf7af0 0x75c0e284 1
0x5620bddf7af4 0x305f0c13 2
PES_Prj1 >> The expected and actual values are identical!
Pattern function execution time is milli: 0.004000sec.
Enter another command
PES_Prj1 >> read 0 10
Address Value Index
------------ ---------- ------
0x5620bddf7ae0 0x3c88596c 0
0x5620bddf7ae4 0x5e8885db 1
0x5620bddf7ae8 0x8116017e 2
0x5620bddf7aec 0x3ca1bf79 3
0x5620bddf7af0 0x75c0e284 4
0x5620bddf7af4 0x305f0c13 5
0x5620bddf7af8 0x00000000 6
0x5620bddf7afc 0x00000000 7
0x5620bddf7b00 0x00000000 8
0x5620bddf7b04 0x00000000 9
PES_Prj1 >> verify 0 10 5
##########################
# Random numbers #
##########################
Address Value Index
------------ ---------- ------
0x5620bddf7ae0 0x3cedf1a0 0
0x5620bddf7ae4 0xbb69f87f 1
0x5620bddf7ae8 0x3e3a2bd2 2
0x5620bddf7aec 0xda5ad909 3
0x5620bddf7af0 0xb7668ed4 4
0x5620bddf7af4 0x5c40ac23 5
0x5620bddf7af8 0x7fb8a326 6
0x5620bddf7afc 0x3886604d 7
0x5620bddf7b00 0x0d258548 8
0x5620bddf7b04 0xde796807 9
PES_Prj1 >> The expected and actual values are identical!
Pattern function execution time is milli: 0.004000sec.
Enter another command
PES_Prj1 >> read 0 10
Address Value Index
------------ ---------- ------
0x5620bddf7ae0 0x3cedf1a0 0
0x5620bddf7ae4 0xbb69f87f 1
0x5620bddf7ae8 0x3e3a2bd2 2
0x5620bddf7aec 0xda5ad909 3
0x5620bddf7af0 0xb7668ed4 4
0x5620bddf7af4 0x5c40ac23 5
0x5620bddf7af8 0x7fb8a326 6
0x5620bddf7afc 0x3886604d 7
0x5620bddf7b00 0x0d258548 8
0x5620bddf7b04 0xde796807 9
PES_Prj1 >> free
Null pointer was provided. Previous released memory:
40 Bytes of heap released from address 0x5620bddf7ae0 to 0x5620bddf7b04
Enter another command
PES_Prj1 >> exit
Good Bye!
]0;bijan@bijan: ~/ECEN5813_SP19_Project1[01;32mbijan@bijan[00m:[01;34m~/ECEN5813_SP19_Project1[00m$ exit
exit
Script done on 2019-03-06 12:14:02-0700