Skip to content
Snippets Groups Projects
Commit 0c6e84a6 authored by dwn1c21's avatar dwn1c21
Browse files

Add load_bitfile.py to CI_verification to load the bitfile onto the xilinx FPGA

parent 8fe9d914
No related branches found
No related tags found
No related merge requests found
import os, warnings
from pynq import PL
from pynq import Overlay
ol = Overlay("/home/xilinx/pynq/overlays/soclabs/design.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")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment