bus/transactions: add busname parameter
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sat, 17 Nov 2012 18:36:08 +0000 (19:36 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sat, 17 Nov 2012 18:36:08 +0000 (19:36 +0100)
migen/bus/transactions.py

index 002344dee3d1af64f6dc253b5cb816ad64e89e99..a3dd484052624be1b5e6fd731a6dcbcc07318aee 100644 (file)
@@ -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):