from magma import wire, compile, EndCircuit
from loam.boards.icestick import IceStick, SRFF

icestick = IceStick()
icestick.Clock.on()
icestick.J1[0].rename('I0').input().on()
icestick.J1[1].rename('I1').input().on()
icestick.D5.on()

main = icestick.main()

srff = SRFF()

srff(main.I0, main.I1)

wire(srff, main.D5)

EndCircuit()
