mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
bank/csrgen: allow specifying existing CSR interface
This commit is contained in:
parent
2a4e49e381
commit
b9c533be51
1 changed files with 4 additions and 2 deletions
|
@ -3,10 +3,12 @@ from migen.bus.csr import *
|
||||||
from migen.bank.description import *
|
from migen.bank.description import *
|
||||||
|
|
||||||
class Bank:
|
class Bank:
|
||||||
def __init__(self, description, address=0):
|
def __init__(self, description, address=0, interface=None):
|
||||||
self.description = description
|
self.description = description
|
||||||
self.address = address
|
self.address = address
|
||||||
self.interface = Interface()
|
if interface is None:
|
||||||
|
interface = Interface()
|
||||||
|
self.interface = interface
|
||||||
|
|
||||||
def get_fragment(self):
|
def get_fragment(self):
|
||||||
comb = []
|
comb = []
|
||||||
|
|
Loading…
Reference in a new issue