Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors on PYNQ Overlay #96

Open
lloo099 opened this issue Sep 30, 2021 · 1 comment
Open

errors on PYNQ Overlay #96

lloo099 opened this issue Sep 30, 2021 · 1 comment

Comments

@lloo099
Copy link

lloo099 commented Sep 30, 2021

生成.bit和.tcl调用Overlay后报错:

ValueError Traceback (most recent call last)
in ()
3 # Load overlay and IP
4 #=================================================
----> 5 overlay = Overlay("yolov2.bit")
6 get_ipython().magic('pinfo overlay')

/usr/local/lib/python3.6/dist-packages/pynq/overlay.py in init(self, bitfile_name, dtbo, download, ignore_version, device)
339 self._register_drivers()
340
--> 341 self.parser = self.device.get_bitfile_metadata(self.bitfile_name)
342
343 self.ip_dict = self.gpio_dict = self.interrupt_controllers = \

/usr/local/lib/python3.6/dist-packages/pynq/pl_server/device.py in get_bitfile_metadata(self, bitfile_name)
780 else:
781 raise ValueError("Cannot find HWH file for {}.".format(
--> 782 bitfile_name))

ValueError: Cannot find HWH file for /home/xilinx/jupyter_notebooks/yolo_test/yolov2.bit.

@qing-2
Copy link

qing-2 commented Mar 28, 2022

According to current regulations,we need to use ".bit and .hwh" instead of ".bit and .tcl".
You can generated .bit and .hwh using the author's code and ".hwh" will be automatically generated with ".bit".

".hwh" file does't need to be added in python.
only use overlay = Overlay("yolov2.bit") ,and the .hwh file with the same name will be recognized automatically.
Of course, if there are no .hwh in the same directory at this time, an error will be reported like you showed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants