Skip to content

Commit

Permalink
Fix #48, add support for stream only IP
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Ruiz committed Dec 13, 2021
1 parent bd6a78e commit 2f9740c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pynq_composable/composable.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,8 @@ def __getattr__(self, name):
except AttributeError:
attr = super().__getattr__(self._paths[name]['fullpath'])
return attr
elif (key := self._hier + name) not in self._ol.ip_dict.keys():
return StreamingIP(key)
else:
try:
attr = super().__getattr__(name)
Expand Down Expand Up @@ -772,6 +774,13 @@ def __getattr__(self, name: str):
"\'{}\'".format(name, self.key))


class StreamingIP:
"""Handles Streaming only IP"""

def __init__(self, name: str):
self._fullpath = name


class UnloadedIP:
"""Handles IP objects that are not yet loaded into the hardware
Expand Down

0 comments on commit 2f9740c

Please sign in to comment.