always store full memory state (including zeros)
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 18 Sep 2021 15:05:09 +0000 (16:05 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 18 Sep 2021 15:05:09 +0000 (16:05 +0100)
src/soc/simple/test/teststate.py

index 3b7eeb208351547eadf235eafee18ca10feeae33..7375cfec60197086cab2fd497df4de1aba865617 100644 (file)
@@ -59,8 +59,7 @@ class HDLState(State):
         self.mem = []
         for i in range(hdlmem.depth):
             value = yield hdlmem._array[i]
-            if value != 0:  # for comparison purposes
-                self.mem.append(((i*8), value))
+            self.mem.append(((i*8), value))
 
 
 # add to State Factory