whoops cut/paste error
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 21 Mar 2020 18:58:39 +0000 (18:58 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 21 Mar 2020 18:58:39 +0000 (18:58 +0000)
src/soc/decoder/test/test_decoder_gas.py

index 6485cbcf243cf0f0c7153eacd98e8970a622bc58..ad4faf67d5c4cb62faadb2718b76429fcae6bc94 100644 (file)
@@ -428,8 +428,8 @@ class DecoderTestCase(FHDLTestCase):
                     print("code", mode, hex(ibin), bin(ibin))
 
                     # ask the decoder to decode this binary data (endian'd)
-                    yield pdecode2.dec.bigendian.eq(endian) # little / big?
-                    yield instruction.eq(ibin)              # raw binary instr.
+                    yield pdecode2.dec.bigendian.eq(mode) # little / big?
+                    yield instruction.eq(ibin)            # raw binary instr.
                     yield Delay(1e-6)
 
                     yield from checker.check_results(pdecode2)