From e6b94b1663664be6c49449ae32a9955529ee7cf3 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 3 Jul 2020 19:29:05 +0200 Subject: [PATCH] interconnect/stream: allow empty description/payload on Endpoint. --- litex/soc/interconnect/stream.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litex/soc/interconnect/stream.py b/litex/soc/interconnect/stream.py index 8fb3213a1..5f5bd5402 100644 --- a/litex/soc/interconnect/stream.py +++ b/litex/soc/interconnect/stream.py @@ -33,7 +33,7 @@ def set_reset_less(field): s.reset_less = True class EndpointDescription: - def __init__(self, payload_layout, param_layout=[]): + def __init__(self, payload_layout=[], param_layout=[]): self.payload_layout = payload_layout self.param_layout = param_layout @@ -59,7 +59,7 @@ class EndpointDescription: class Endpoint(Record): - def __init__(self, description_or_layout, name=None, **kwargs): + def __init__(self, description_or_layout=[], name=None, **kwargs): if isinstance(description_or_layout, EndpointDescription): self.description = description_or_layout else: