move debug printout to see whats going on for ldst
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 25 Sep 2021 19:28:07 +0000 (20:28 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 8 Oct 2021 13:30:35 +0000 (14:30 +0100)
src/soc/simple/test/test_runner.py

index 32c19db5d119a93cf4a463be60c4dd0e1190e9b7..d8716b3790c776b672b91f547664fe57a0a0ac20 100644 (file)
@@ -478,11 +478,6 @@ class TestRunner(FHDLTestCase):
                     else:
                         last_sim = None # err what are you doing??
 
-                    if self.run_hdl and self.run_sim:
-                        for simstate, hdlstate in zip(sim_states, hdl_states):
-                            simstate.compare(hdlstate)     # register check
-                            simstate.compare_mem(hdlstate) # memory check
-
                     if self.run_hdl:
                         print ("hdl_states")
                         for state in hdl_states:
@@ -493,6 +488,11 @@ class TestRunner(FHDLTestCase):
                         for state in sim_states:
                             print (state)
 
+                    if self.run_hdl and self.run_sim:
+                        for simstate, hdlstate in zip(sim_states, hdl_states):
+                            simstate.compare(hdlstate)     # register check
+                            simstate.compare_mem(hdlstate) # memory check
+
                     # compare against expected results
                     if test.expected is not None:
                         # have to put these in manually