mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
migen/bank: do not create interface in default param
This commit is contained in:
parent
c3fdf42825
commit
62187aa23d
1 changed files with 3 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue