From: Florent Kermarrec Date: Sat, 31 May 2014 10:03:19 +0000 (+0200) Subject: migen/bank/description: add reset parameter to CSRStatus X-Git-Tag: 24jan2021_ls180~2099^2~352 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=70a2ee4368867d04a398b0c9f008299c58efec5e;p=litex.git migen/bank/description: add reset parameter to CSRStatus --- diff --git a/migen/bank/description.py b/migen/bank/description.py index 8632dd2c..7bb3b95a 100644 --- a/migen/bank/description.py +++ b/migen/bank/description.py @@ -33,9 +33,9 @@ class _CompoundCSR(_CSRBase, Module): raise NotImplementedError class CSRStatus(_CompoundCSR): - def __init__(self, size=1, name=None): + def __init__(self, size=1, reset=0, name=None): _CompoundCSR.__init__(self, size, name) - self.status = Signal(self.size) + self.status = Signal(self.size, reset=reset) def do_finalize(self, busword): nwords = (self.size + busword - 1)//busword