From 62187aa23d5e2ee3d81185b799f5ed5037d66d03 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 6 Dec 2012 17:28:28 +0100 Subject: [PATCH] migen/bank: do not create interface in default param --- migen/bank/csrgen.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/migen/bank/csrgen.py b/migen/bank/csrgen.py index cd87316b0..4112e2b73 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):