bank/description: define reset value of read signal
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Wed, 5 Dec 2012 15:40:44 +0000 (16:40 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Wed, 5 Dec 2012 15:40:44 +0000 (16:40 +0100)
migen/bank/description.py

index 969e30c1f066f9d41f8ac788ebcd60af53916909..bfe4c3fb9739e8429252a5a1bb1612ea3bceb50a 100644 (file)
@@ -27,7 +27,7 @@ class Field:
                        self.w = Signal(self.size)
                else:
                        if self.access_dev == READ_ONLY or self.access_dev == READ_WRITE:
-                               self.r = Signal(self.size)
+                               self.r = Signal(self.size, reset=reset)
                        if self.access_dev == WRITE_ONLY or self.access_dev == READ_WRITE:
                                self.w = Signal(self.size)
                                self.we = Signal()