I have generated the block design and exported the bitstream and the tcl file from vivado
I am trying to pass inputs through DMA and to get the output. I have attached the block design and the python code
import numpy as np
from pynq import allocate
from pynq import Overlay
I am getting the error here
overlay = Overlay(“streamingvitis.bit”)
ValueError Traceback (most recent call last)
in ()
----> 1 overlay = Overlay(“streamingvitis.bit”)
2 dma = overlay.axi_dma
3 input_buffer = allocate(shape=(16,), dtype=np.uint8)
4 output_buffer = allocate(shape=(8,), dtype=np.uint8)
/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/Pynq/streamingvitis.bit.
dma = overlay.axi_dma
input_buffer = allocate(shape=(16,), dtype=np.uint8)
output_buffer = allocate(shape=(8,), dtype=np.uint8)
for i in range(5):
if(i<8):
input_buffer[i] = 1
else :
input_buffer[i] = 2
dma.sendchannel.transfer(input_buffer)
dma.recvchannel.transfer(output_buffer)
dma.sendchannel.wait()
dma.recvchannel.wait()
design_1.pdf (86.0 KB)