mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
bus/transactions: add busname parameter
This commit is contained in:
parent
897a2e3f9c
commit
d0d4c48098
1 changed files with 2 additions and 1 deletions
|
@ -1,13 +1,14 @@
|
|||
from migen.fhdl.structure import bits_for
|
||||
|
||||
class Transaction:
|
||||
def __init__(self, address, data=0, sel=None):
|
||||
def __init__(self, address, data=0, sel=None, busname=None):
|
||||
self.address = address
|
||||
self.data = data
|
||||
if sel is None:
|
||||
bytes = (bits_for(data) + 7)//8
|
||||
sel = 2**bytes - 1
|
||||
self.sel = sel
|
||||
self.busname = busname
|
||||
self.latency = 0
|
||||
|
||||
def __str__(self):
|
||||
|
|
Loading…
Reference in a new issue