Merge pull request #1250 from pftbest/connect_to_pads_last

Fix missing "last" pin connection when using connect_to_pads
This commit is contained in:
enjoy-digital 2022-03-24 14:46:25 +01:00 committed by GitHub
commit 0bd2abf68d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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)