From: Sebastien Bourdeauducq Date: Thu, 6 Dec 2012 16:28:28 +0000 (+0100) Subject: migen/bank: do not create interface in default param X-Git-Tag: 24jan2021_ls180~2099^2~722 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=62187aa23d5e2ee3d81185b799f5ed5037d66d03;p=litex.git migen/bank: do not create interface in default param --- diff --git a/migen/bank/csrgen.py b/migen/bank/csrgen.py index cd87316b..4112e2b7 100644 --- a/migen/bank/csrgen.py +++ b/migen/bank/csrgen.py @@ -3,9 +3,11 @@ from migen.bus import csr from migen.bank.description import * class Bank: - def __init__(self, description, address=0, bus=csr.Interface()): + def __init__(self, description, address=0, bus=None): self.description = description self.address = address + if bus is None: + bus = csr.Interface() self.bus = bus def get_fragment(self):