You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In yosys's C++ class hierarchy, several classes derive from AttrObject so that they have access to a common set of attribute getters/setters. A python wrapper is generated for AttrObject, but the wrappers for the derived classes don't include the inheritance information to enable the derived classes to use the AttrObject functions.
Steps to reproduce the issue
cd yosys/examples/python-api
python3 -i script.py
design.top_module().get_src_attribute()
Expected behavior
In python, wrapped derived classes can use AttrObject methods to get to attributes.
Actual behavior
In python, wrapped derived classes of AttrObject cannot access AttrObject methods:
>>> design.top_module().get_src_attribute()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Module' object has no attribute 'get_src_attribute'
The text was updated successfully, but these errors were encountered:
Preface
In yosys's C++ class hierarchy, several classes derive from AttrObject so that they have access to a common set of attribute getters/setters. A python wrapper is generated for AttrObject, but the wrappers for the derived classes don't include the inheritance information to enable the derived classes to use the AttrObject functions.
Steps to reproduce the issue
Expected behavior
In python, wrapped derived classes can use AttrObject methods to get to attributes.
Actual behavior
In python, wrapped derived classes of AttrObject cannot access AttrObject methods:
The text was updated successfully, but these errors were encountered: