more setting bigendian
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 11 Jul 2020 20:06:51 +0000 (21:06 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 11 Jul 2020 20:06:51 +0000 (21:06 +0100)
src/soc/simple/test/test_issuer.py
src/soc/simple/test/test_microwatt.py

index 2e60086fb639269d4b26b118b920ddd6ab2d60cb..592394c6013abe8b76675ac8cec979d5c1b0a41d 100644 (file)
@@ -12,7 +12,7 @@ import unittest
 from soc.decoder.isa.caller import special_sprs
 from soc.decoder.isa.all import ISA
 from soc.decoder.power_enums import Function, XER_bits
-
+from soc.config.endian import bigendian
 
 from soc.simple.issuer import TestIssuer
 from soc.experiment.compalu_multi import find_ok # hack
@@ -100,7 +100,7 @@ class TestRunner(FHDLTestCase):
             for test in self.test_data:
 
                 # get core going
-                yield core.bigendian_i.eq(1)
+                yield core.bigendian_i.eq(bigendian)
                 yield core.core_start_i.eq(1)
                 yield
                 yield core.core_start_i.eq(0)
@@ -121,7 +121,8 @@ class TestRunner(FHDLTestCase):
                 sim = ISA(pdecode2, test.regs, test.sprs, test.cr, test.mem,
                           test.msr,
                           initial_insns=gen, respect_pc=True,
-                          disassembly=insncode)
+                          disassembly=insncode,
+                          bigendian=bigendian)
 
                 pc = 0 # start address
 
index 1abfa8eae903c2f6a1a882779dee09f3ed6a441f..3ffa9e52c10011648dd5193bbeb20cfbf3ec90ad 100644 (file)
@@ -85,7 +85,7 @@ class TestRunner(FHDLTestCase):
             for test in self.test_data:
 
                 # get core going
-                yield core.bigendian_i.eq(1)
+                yield core.bigendian_i.eq(bigendian)
                 yield core.core_start_i.eq(1)
                 yield
                 yield core.core_start_i.eq(0)