I am trying to create custom IP using HLS with PYNQ Z2. I have function like this
but i don’t understand how to make the correct IP design to make it work.
I tried a lot of different options of connection, but it fails with code like this:
`
in_buffer = xlnk.cma_array(shape=(num_of_input_bytes,),dtype = np.uint8) #uint8
out_buffer = xlnk.cma_array(shape=(num_of_input_bytes,),dtype = np.uint8)
input_bytes = np.array( bytearray(input_bytes))
np.copyto(in_buffer,input_bytes)
mmio.write(16, num_of_input_bytes )
while(not( mmio.read(0x00) & 0x4)) # infinite loop
pass
`
How should I connect my encrypt module and dma?
Thank you