From 70a2ee4368867d04a398b0c9f008299c58efec5e Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sat, 31 May 2014 12:03:19 +0200 Subject: [PATCH] migen/bank/description: add reset parameter to CSRStatus --- migen/bank/description.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2