From: Sebastien Bourdeauducq Date: Sat, 18 Feb 2012 17:56:18 +0000 (+0100) Subject: bank/csrgen: fix RE generation X-Git-Tag: 24jan2021_ls180~2099^2~1008 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d8d4e81b6e0624cb7055dbb147a967f5975f294b;p=litex.git bank/csrgen: fix RE generation --- diff --git a/migen/bank/csrgen.py b/migen/bank/csrgen.py index fed5058d..5f5437f3 100644 --- a/migen/bank/csrgen.py +++ b/migen/bank/csrgen.py @@ -27,6 +27,7 @@ class Bank: self.interface.we & \ (self.interface.adr[:nbits] == Constant(i, BV(nbits))))) elif isinstance(reg, RegisterFields): + sync.append(reg.re.eq(0)) bwra = [Constant(i, BV(nbits))] offset = 0 for field in reg.fields: