Code Monkey home page Code Monkey logo

partial_reconfig_example's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

partial_reconfig_example's Issues

Providing the tcl file for the partial modules

Hello there,

In create_pr.tcl file, you used tcl files for rms (in line 12). How can I have those files? It seems we should provide them one by one, then convert the hierarchy block (gpio_0) to a partial region and use them to get the bitstream. However, in the tutorial video, it is shown how to get tcl when the hierarchy part (gpio_0) is already converted to PR. How we can have them to be imported in create_pr.tcl?

PYNQ image version

Hello,
I have version 2.3. Do you have any solution to run this project on that?

TimeoutError: [Errno 110] Connection times out after multiple reconfigurations

Thank you for a clear explanation of how to partially reconfigure the PYNQ board. After installing the code and generating the design, the jupyter notebook works exactly as you describe.

However, repeating the partial reconfiguration a number of times invariably results in an fpga-manager "Connection Timeout [Errno 110" at random instances. This behavior can be replicated with the minimal python code shown below. Other partial reconfiguration programs on the PYNQ experience the same timeout.

Code:

from pynq import Overlay
ol = Overlay('gpio_pr.bit')
count=1
while(1):
    print(count)
    count = count + 1
    ol.pr_download('gpio_0', 'led_5.bit')
    print('LEDS = '+str(ol.ip_dict['gpio_0/leds_gpio']['parameters']['C_DOUT_DEFAULT']))
    ol.pr_download('gpio_0', 'led_a.bit')
    print('LEDS = '+str(ol.ip_dict['gpio_0/leds_gpio']['parameters']['C_DOUT_DEFAULT']))

Output:

xilinx@pynq:~/jupyter_notebooks/partial_reconfig$ sudo python3 t.py
1
LEDS = 0x00000005
LEDS = 0x0000000a
2
LEDS = 0x00000005
LEDS = 0x0000000a
3
LEDS = 0x00000005
LEDS = 0x0000000a
4
LEDS = 0x00000005
LEDS = 0x0000000a
5
LEDS = 0x00000005
LEDS = 0x0000000a
6
LEDS = 0x00000005
LEDS = 0x0000000a
7
LEDS = 0x00000005
LEDS = 0x0000000a
8
fpga_manager fpga0: Error after writing image data to FPGA
fpga_manager fpga0: Error after writing image data to FPGA
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "t.py", line 7, in
ol.pr_download('gpio_0', 'led_5.bit')
File "/usr/local/lib/python3.6/dist-packages/pynq/overlay.py", line 452, in pr_download
pr_block.download(bitfile_name=partial_bit, dtbo=dtbo)
File "/usr/local/lib/python3.6/dist-packages/pynq/overlay.py", line 1061, in download
self._load_bitstream(bitfile_name)
File "/usr/local/lib/python3.6/dist-packages/pynq/overlay.py", line 1102, in _load_bitstream
self.bitstreams[bitfile_name].download()
File "/usr/local/lib/python3.6/dist-packages/pynq/bitstream.py", line 187, in download
self.device.download(self, parser)
File "/usr/local/lib/python3.6/dist-packages/pynq/pl_server/device.py", line 770, in download
fd.write(bitstream.binfile_name)
TimeoutError: [Errno 110] Connection timed out

Do you know what causes this problem and how to resolve it?

AttributeError: Could not find IP or hierarchy pr_download in overlay

Hello! Thank you so much for the great demo posted on YouTube. While I'm trying the PR example (i.e., partial_reconfiguration_example.ipynb), I encountered the AttributeError in the line of ol.pr_download('gpio_0', 'led_5.bit'). I'm currently using the v2.4 image. I would truly appreciate you taking the time to help to solve the problem.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.