Add a simple test case

We use 2 32bit RAMs, so we need to split the test case into
two files.
caravel-20210105
Anton Blanchard 4 years ago committed by Anton Blanchard
parent 26fa3eda69
commit 9747879643

@ -0,0 +1,337 @@
4800012c
00000000
08000048
a600607d
05009f42
14004a39
a64b7b7d
480000f4
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
08000048
a600607d
05009f42
14004a39
a64b7b7d
48000004
60210000
64210000
3d800000
798c07c6
618c0414
4e800421
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
ebc1fff0
ebe1fff8
4e800020
38428a00
fbe1fff8
f821ffd1
60000000
38628000
60000000
60000000
5463063e
480000b9
2c1f000d
3860000a
60000000
00000000
00000180
38428a00
89228090
39428088
41820030
39290014
7d204eaa
4182ffec
7c0004ac
5463063e
e92a0000
7c0004ac
71290001
e86a0000
7c0004ac
4bffffd0
00000000
3c400001
60000000
60000000
2c090000
e92a0000
7c0004ac
71290020
e92a0000
7c604faa
e92a0000
7c0004ac
71290008
5469063e
7c0004ac
4e800020
00000000
3c400001
7c0802a6
fbc1fff0
f8010010
8fdf0001
40820010
38600000
281e000a
3860000d
7fc3f378
4bffffd0
01000000
7c691b78
7d4918ae
4d820020
4bfffff0
00000000
3c400001
3d40c000
794a0020
7d4056ea
794a0600
79290020
7d204eea
41820018
61290040
7c0004ac
7929f804
79290fc3
79080020
f9028088
61082000
41820084
39200001
3d00c000
3920ff80
7c0004ac
e9228088
7d404faa
794ac202
7c0004ac
e9228088
3929000c
7d404faa
39290010
7d404faa
39400007
7c0004ac
4e800020
394affff
3d20c000
79290020
7d404fea
00000000
00000000
38428a00
89228090
2f890000
e9228088
41820024
2c230000
614a0001
7c0004ac
4e800020
4bffffe0
60630002
7c0004ac
4e800020
00000000
00000010
00527a01
00010c1b
00000018
00000070
9f7e4111
00000010
00527a01
00010c1b
00000018
00000084
00000010
fffffcf8
00000000
00000040
00000060
9e019f00
447e4111
4106dedf
00000010
fffffd98
00000000
00000080
0000012c
00000010
fffffec4
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
2020200a
20202e6f
20222e20
202e2220
776d2e20
4d202020
74746177
726f7720
202e2020
20202e20
205c2020
20202020
2e2e3b20
0a202020
3b2e2e3b
200a2020
20277777

@ -0,0 +1,337 @@
00000000
00000000
48000024
01006b69
a602487d
a64b5a7d
2402004c
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
48000024
01006b69
a602487d
a64b5a7d
2402004c
3c200000
782107c6
60211f00
618c0000
658c0000
7d8903a6
48000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
e8010010
7c0803a6
3c400001
7c0802a6
f8010010
480001ed
60000000
48000155
48000049
7c7f1b78
57ff063e
60000000
4082ffe0
480000a5
4bffffd0
01000000
3c400001
60000000
60000000
2c090000
e92a0000
7c0004ac
71290001
e86a0000
7c601eaa
4e800020
39290010
7d204eea
4082ffec
38630008
7c601eea
00000000
00000000
38428a00
89228090
39428088
4182002c
39290014
7d204eaa
4182ffec
7c0004ac
4e800020
39290010
7d204eea
4082ffec
e94a0000
7d2057ea
00000000
00000000
38428a00
fbe1fff8
3be3ffff
f821ffd1
2c3e0000
38210030
4bfffe44
4082000c
4bffff45
4bffff3d
00000000
00000280
38600000
2c0a0000
38630001
00000000
00000000
38428a00
614a0020
7c0004ac
3d20c000
61290008
7c0004ac
71290020
3d20c000
79290020
7d204eea
3d00c000
61082000
60000000
3d00001c
7d4a4392
60000000
99228090
6108200c
79080020
7d2047aa
7c0004ac
e9228088
39290004
7d404faa
39400003
7c0004ac
e9228088
7c0004ac
e9228088
39290008
7d404faa
60000000
99228090
61292018
7c0004ac
4e800020
00000000
3c400001
60000000
2c240000
60000000
419e0030
39400002
41820008
39290004
7d404faa
39400000
41820008
39290020
7c604fea
00000000
00000000
00000000
01417804
00000018
fffffc48
300e4600
00000001
00000000
01417804
00000010
fffffc88
00000000
0000002c
00000080
00000028
fffffd64
41094500
300e4302
42000e0a
0000000b
0000006c
00000028
00000010
fffffdac
00000000
00000094
00000074
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
4f4f6f2e
0a202020
20202020
203b200a
3b20202e
6f726369
7469202c
0a2e736b
27202027
200a2020
2f207c7c
2020200a
2020203b
20202020
20202020
60202020
000a2020

@ -0,0 +1,24 @@
#!/usr/bin/python3

import sys
import subprocess
import struct

even = open('even.hex', 'w')
odd = open('odd.hex', 'w')

with open(sys.argv[1], "rb") as f:
while True:
even_word = f.read(4)
if len(even_word) == 0:
exit(0)
if len(even_word) != 4:
raise Exception("Bad length")
even.write("%08x\n" % struct.unpack('<I', even_word));

odd_word = f.read(4)
if len(odd_word) == 0:
exit(0)
if len(odd_word) != 4:
raise Exception("Bad length")
odd.write("%08x\n" % struct.unpack('<I', odd_word));
Loading…
Cancel
Save