human
I am working on the file "PYNQLearn/FabricOnly/myHDL_PYNQZ12_FabricOnly.ipynb".
The first task is:
Project 1: 1 Switch 1 LED
https://timetoexplore.net/blog/arty-fpga-verilog-01
Constraints File
myHDL Code
Can you write Python program for it?
 Write me a the Python program you requested?
assistant
#Here is the Python program you requested.

@block
def S0L0(sw, clk, led):
    """
    FPGA Hello world of one switch controlling one LED based on
    https://timetoexplore.net/blog/arty-fpga-verilog-01
    
    Target:
        ZYNQ 7000 Board (Arty, PYNQ-Z1, PYNQ-Z2) with at least 2 
        switchs and 4 leds
    
    
    Input:
        sw(2bitVec):switch input
        clk(bool): clock input    
    Ouput:
        led(4bitVec): led output
        
    """
    
    @always(clk.posedge)
    def logic():
        if sw[0]==0:
            led.next[0]=True
        else:
            led.next[0]=False
    
    return instances()