Fix missing "last" pin connection when using connect_to_pads

When using  connect_to_pads on full AXI interface the "last" pin was not connected because of this typo.
This commit is contained in:
Vadzim Dambrouski 2022-03-24 15:37:59 +04:00 committed by GitHub
parent ef6d450820
commit c1898b9355
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,7 +93,7 @@ def connect_to_pads(bus, pads, mode="master", axi_full=False):
for channel, mode in channel_modes.items():
ch = getattr(bus, channel)
sig_list = [("valid", 1)] + ch.description.payload_layout
if ch in ["w", "r"] and axi_full:
if channel in ["w", "r"] and axi_full:
sig_list += [("last", 1)]
for name, width in sig_list:
sig = getattr(ch, name)