From cfbe3b028a2cc261dc66fd9e65d6efe4deb3a42b Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 13 Feb 2024 19:13:00 +0100 Subject: [PATCH] interconnect/wishbone/RegionsRemapper: Add default values for src_regions/dst_regions. --- litex/soc/interconnect/wishbone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/interconnect/wishbone.py b/litex/soc/interconnect/wishbone.py index 7204038f6..1cd1d3183 100644 --- a/litex/soc/interconnect/wishbone.py +++ b/litex/soc/interconnect/wishbone.py @@ -149,7 +149,7 @@ class Remapper(LiteXModule): class RegionsRemapper(LiteXModule): """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 master.addressing == slave.addressing