Skip to content
Snippets Groups Projects
Select Git revision
  • c51c77471dbdbedf72a14a710212cde0e42f70b1
  • main default protected
2 results

errorHandling.sh

Blame
  • 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")