m.d.sync += ctr.eq(ctr - 1)
return m
-
-
-def build_and_program(platform_cls, **kwargs):
- platform_cls().build(Blinky(), do_program=True, **kwargs)
if __name__ == "__main__":
- from ._blinky import build_and_program
- build_and_program(BlackIcePlatform)
+ from ._blinky import Blinky
+ BlackIcePlatform().build(Blinky(), do_program=True)
if __name__ == "__main__":
- from ._blinky import build_and_program
- build_and_program(BlackIceIIPlatform)
+ from ._blinky import Blinky
+ BlackIceIIPlatform().build(Blinky(), do_program=True)
if __name__ == "__main__":
- from ._blinky import build_and_program
- build_and_program(ICE40HX1KBlinkEVNPlatform)
+ from ._blinky import Blinky
+ ICE40HX1KBlinkEVNPlatform().build(Blinky(), do_program=True)
if __name__ == "__main__":
- from ._blinky import build_and_program
- build_and_program(ICE40HX8KBEVNPlatform)
+ from ._blinky import Blinky
+ ICE40HX8KBEVNPlatform().build(Blinky(), do_program=True)
if __name__ == "__main__":
- from ._blinky import build_and_program
- build_and_program(ICEStickPlatform)
+ from ._blinky import Blinky
+ ICEStickPlatform().build(Blinky(), do_program=True)
if __name__ == "__main__":
- from ._blinky import build_and_program
- build_and_program(KC705Platform)
+ from ._blinky import Blinky
+ KC705Platform().build(Blinky(), do_program=True)
if __name__ == "__main__":
- from ._blinky import build_and_program
- build_and_program(TinyFPGABXPlatform)
+ from ._blinky import Blinky
+ TinyFPGABXPlatform().build(Blinky(), do_program=True)
if __name__ == "__main__":
- from ._blinky import build_and_program
- build_and_program(VersaECP5Platform)
+ from ._blinky import Blinky
+ VersaECP5Platform().build(Blinky(), do_program=True)
if __name__ == "__main__":
- from ._blinky import build_and_program
- build_and_program(VersaECP55GPlatform)
+ from ._blinky import Blinky
+ VersaECP55GPlatform().build(Blinky(), do_program=True)