overlay_tutorial icon indicating copy to clipboard operation
overlay_tutorial copied to clipboard

Where could i find the address?

Open bramblewalls opened this issue 7 years ago • 4 comments

In your sample, you use the function add_ip.write() to send data and add_ip.read() to receive data.There is a parameter in the function that i guess it the address of memory.So, i am wondering that where could i find the information of address.Looking forward to your reply!

bramblewalls avatar Apr 18 '18 10:04 bramblewalls

Those addresses can be found in the output of Vivado HLS. There's a video with more specific detail available https://www.youtube.com/watch?v=Dupyek4NUoI

PeterOgden avatar Apr 18 '18 12:04 PeterOgden

I have included the bitstream, tcl, and hwh file and receive this error when trying to access the register map:


AttributeError Traceback (most recent call last) in () ----> 1 add_ip.register_map

AttributeError: 'DefaultIP' object has no attribute 'register_map'

the add_ip.write(0x10,4) works but I would like to use the registermap

thanks!

P.S. I did not use your scripts, just the vivado gui to generate bitstream etc..

theDweeb avatar Apr 19 '19 16:04 theDweeb

Which version of PYNQ are you running? The register map was only added in 2.4

PeterOgden avatar May 22 '19 13:05 PeterOgden

I was using version 2.2. I recently upgraded to 2.4 and with the .hwh included everything worked fine. Thanks again!

theDweeb avatar May 22 '19 14:05 theDweeb