PYNQ: PYTHON PRODUCTIVITY FOR ZYNQ

Problems with a simple floating point adder overlay on PYNQZ-2

I have made a simple adder on Vivado HLS with float input and outputs.

float%20adder

On Jupyter Notebooks in PYNQ-Z2, I get the following errors.

How does one fix this problem?

Also, I am thinking of using Python to multiply inputs by some 10^n, write to the IP and dividing the outputs by 10^n. Is this inefficient when working with a larger set of data with a huge decimal place?

As you noticed, MMIO doesn’t support float. You need to manually ‘pack’ your float into something that can be written to the IP, and do the reverse if you need to read back the result.

You can use these types of techniques:

Cathal

1 Like