From b5b29f6d5d7717799395c83bfcfc4e75088ed3ff Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 2 May 2013 11:49:23 +0200 Subject: [PATCH] bank/description/CSRStorage: set reset property of storage for use in test benches --- migen/bank/description.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migen/bank/description.py b/migen/bank/description.py index 7cc2caa1..2369579c 100644 --- a/migen/bank/description.py +++ b/migen/bank/description.py @@ -51,7 +51,7 @@ class CSRStorage(_CompoundCSR): _CompoundCSR.__init__(self, size, name) self.alignment_bits = alignment_bits self.storage_full = Signal(self.size, reset=reset) - self.storage = Signal(self.size - self.alignment_bits) + self.storage = Signal(self.size - self.alignment_bits, reset=reset >> alignment_bits) self.comb += self.storage.eq(self.storage_full[self.alignment_bits:]) self.atomic_write = atomic_write if write_from_dev: -- 2.30.2