interconnect/wishbone/RegionsRemapper: Add default values for src_regions/dst_regions.

This commit is contained in:
Florent Kermarrec 2024-02-13 19:13:00 +01:00
parent 595118fd5d
commit cfbe3b028a
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ class Remapper(LiteXModule):
class RegionsRemapper(LiteXModule): class RegionsRemapper(LiteXModule):
"""Remaps Wishbone addresses from specified source regions to destination regions""" """Remaps Wishbone addresses from specified source regions to destination regions"""
def __init__(self, master, slave, src_regions, dst_regions): def __init__(self, master, slave, src_regions=[], dst_regions=[]):
assert len(src_regions) == len(dst_regions) assert len(src_regions) == len(dst_regions)
assert master.addressing == slave.addressing assert master.addressing == slave.addressing