From: Sebastien Bourdeauducq Date: Sat, 17 Nov 2012 18:36:08 +0000 (+0100) Subject: bus/transactions: add busname parameter X-Git-Tag: 24jan2021_ls180~2099^2~784 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d0d4c48098e4f78eeee6417314ea144957d88aa3;p=litex.git bus/transactions: add busname parameter --- diff --git a/migen/bus/transactions.py b/migen/bus/transactions.py index 002344de..a3dd4840 100644 --- a/migen/bus/transactions.py +++ b/migen/bus/transactions.py @@ -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):