CoDeNet
CoDeNet copied to clipboard
Could you share `bitfile.hwh`?
Hi, @hqjenny
Thank you very much for sharing your great work!!
I'm try running CoDeNet on ultra96v2 with sw/codenet.ipynb
.
The following error occurs when invoking the accelerator, meaning 'batch.hwh' is required.
I really appreciate it if you would share it, so that I could run CoDeNet on FPGA without synthesizing with vivado.
Thanks in advance.
accel = CoDeNetAccel(MAX_D=128, MAX_IC=1024, MAX_OC=1024, PA=16, PE=16, bitfile="batch.bit")
x = np.random.randint(256, size=(1,64,64,32))
y = accel.CoDeNet(x, w2=False)
accel.print_stats()
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-4-152fd8eaf58e> in <module>()
----> 1 accel = CoDeNetAccel(MAX_D=128, MAX_IC=1024, MAX_OC=1024, PA=16, PE=16, bitfile="batch.bit")
2 x = np.random.randint(256, size=(1,64,64,32))
3 y = accel.CoDeNet(x, w2=False)
4 accel.print_stats()
<ipython-input-3-7390bd9f2905> in __init__(self, MAX_D, MAX_IC, MAX_OC, PA, PE, bitfile, MAX_BATCH)
25 # downloads the FPGA bitstream
26 self.bitstream_name = os.path.join(ROOT_DIR, bitfile)
---> 27 self.overlay = Overlay(self.bitstream_name)
28 self.accel = self.overlay.top_0
29 self.overlay.download()
/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/CoDeNet/sw/bitfile/batch.bit.
Hi @in-die-nibelungen, Sorry for the late reply. Could you try downloading the bitfile folder here? And upload the folder to your ipython notebook?
If that does not work, we can try generating the bitfile.hwh for you.