Select Git revision
errorHandling.sh
Forked from
hqo1e21 / COMP1204_CW2
Source project has a limited visibility.
load_bitfile.py 374 B
import os, warnings
from pynq import PL
from pynq import Overlay
ol = Overlay("/home/xilinx/pynq/overlays/soclabs/design_1.bit")
if not os.path.exists(PL.bitfile_name):
warnings.warn('There is no overlay loaded after boot.', UserWarning)
ol = Overlay(PL.bitfile_name)
ol.download()
if ol.is_loaded():
print("Overlay Loaded")
else:
print("Overlay failed to load")