Merge pull request #1501 from bunnie/axi-full-xbar-datawidth

AXICrossbar: absorb data width setting when building crossbar
This commit is contained in:
enjoy-digital 2022-11-14 08:24:23 +01:00 committed by GitHub
commit 68c34c64b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -574,7 +574,7 @@ class AXICrossbar(Module):
"""
def __init__(self, masters, slaves, register=False, timeout_cycles=1e6):
matches, busses = zip(*slaves)
access_m_s = [[AXIInterface() for j in slaves] for i in masters] # a[master][slave]
access_m_s = [[AXIInterface(data_width = interface.data_width) for (f, interface) in slaves] for i in masters] # a[master][slave]
access_s_m = list(zip(*access_m_s)) # a[slave][master]
# Decode each master into its access row.
for slaves, master in zip(access_m_s, masters):