yunqu / partial_reconfig_example Goto Github PK
View Code? Open in Web Editor NEWAn example of partial reconfiguration
License: MIT License
An example of partial reconfiguration
License: MIT License
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?
Hello,
I have version 2.3. Do you have any solution to run this project on that?
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?
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.