interconnect/wishbone: Add address_width property to make sure all interfaces (Wishbone/AXI-Lite/AXI) have it.
This commit is contained in:
parent
33efa09663
commit
db2ad78860
|
@ -50,8 +50,9 @@ class Interface(Record):
|
||||||
if kwargs.get("address_width", False):
|
if kwargs.get("address_width", False):
|
||||||
# FIXME: Improve or switch Wishbone to byte addressing instead of word addressing.
|
# FIXME: Improve or switch Wishbone to byte addressing instead of word addressing.
|
||||||
adr_width = kwargs["address_width"] - int(log2(data_width//8))
|
adr_width = kwargs["address_width"] - int(log2(data_width//8))
|
||||||
self.adr_width = adr_width
|
self.adr_width = adr_width
|
||||||
self.bursting = bursting
|
self.address_width = adr_width + int(log2(data_width//8))
|
||||||
|
self.bursting = bursting
|
||||||
Record.__init__(self, set_layout_parameters(_layout,
|
Record.__init__(self, set_layout_parameters(_layout,
|
||||||
adr_width = adr_width,
|
adr_width = adr_width,
|
||||||
data_width = data_width,
|
data_width = data_width,
|
||||||
|
|
Loading…
Reference in New Issue