PeterOgden / overlay_tutorial

Premade bitstreams and block designs to complemented the PYNQ overlay tutorial
http://pynq.readthedocs.io/en/v2.0/overlay_design_methodology/overlay_tutorial.html
BSD 3-Clause "New" or "Revised" License
38 stars 19 forks source link

Where could i find the address? #3

Open bramblewalls opened 6 years ago

bramblewalls commented 6 years ago

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!

PeterOgden commented 6 years ago

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

theDweeb commented 5 years ago

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..
PeterOgden commented 5 years ago

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

theDweeb commented 5 years ago

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