migen/bank: do not create interface in default param

This commit is contained in:
Sebastien Bourdeauducq 2012-12-06 17:28:28 +01:00
parent c3fdf42825
commit 62187aa23d
1 changed files with 3 additions and 1 deletions

View File

@ -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):