From: Sebastien Bourdeauducq Date: Thu, 2 May 2013 09:49:23 +0000 (+0200) Subject: bank/description/CSRStorage: set reset property of storage for use in test benches X-Git-Tag: 24jan2021_ls180~2099^2~588 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b5b29f6d5d7717799395c83bfcfc4e75088ed3ff;p=litex.git bank/description/CSRStorage: set reset property of storage for use in test benches --- 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: