stream.Endpoint: Pass extra arguments to superclass.
authorTim 'mithro' Ansell <me@mith.ro>
Sun, 25 Nov 2018 20:57:11 +0000 (12:57 -0800)
committerTim 'mithro' Ansell <me@mith.ro>
Sun, 25 Nov 2018 20:57:11 +0000 (12:57 -0800)
litex/soc/interconnect/stream.py

index 5a070ea7e75680ca29e562c1e0bda60a4c92ccb3..2974b7a0f71f0d9d9353a8114dcd2589b7219def 100644 (file)
@@ -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: