mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
stream.Endpoint: Pass extra arguments to superclass.
This commit is contained in:
parent
3b9e4c4df6
commit
4f565c5179
1 changed files with 2 additions and 2 deletions
|
@ -41,12 +41,12 @@ class EndpointDescription:
|
||||||
|
|
||||||
|
|
||||||
class Endpoint(Record):
|
class Endpoint(Record):
|
||||||
def __init__(self, description_or_layout):
|
def __init__(self, description_or_layout, name=None, **kwargs):
|
||||||
if isinstance(description_or_layout, EndpointDescription):
|
if isinstance(description_or_layout, EndpointDescription):
|
||||||
self.description = description_or_layout
|
self.description = description_or_layout
|
||||||
else:
|
else:
|
||||||
self.description = EndpointDescription(description_or_layout)
|
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):
|
def __getattr__(self, name):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue