From: Tim 'mithro' Ansell Date: Sun, 25 Nov 2018 20:57:11 +0000 (-0800) Subject: stream.Endpoint: Pass extra arguments to superclass. X-Git-Tag: 24jan2021_ls180~1460^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f565c51796aae7a63419c2f203b1d32dc20af74;p=litex.git stream.Endpoint: Pass extra arguments to superclass. --- diff --git a/litex/soc/interconnect/stream.py b/litex/soc/interconnect/stream.py index 5a070ea7..2974b7a0 100644 --- a/litex/soc/interconnect/stream.py +++ b/litex/soc/interconnect/stream.py @@ -41,12 +41,12 @@ class EndpointDescription: class Endpoint(Record): - def __init__(self, description_or_layout): + def __init__(self, description_or_layout, name=None, **kwargs): if isinstance(description_or_layout, EndpointDescription): self.description = description_or_layout else: self.description = EndpointDescription(description_or_layout) - Record.__init__(self, self.description.get_full_layout()) + Record.__init__(self, self.description.get_full_layout(), name, **kwargs) def __getattr__(self, name): try: