From d5bea94b228b956cfd119af9415fbb0e3abc53ac Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 3 Aug 2019 16:19:03 +0000 Subject: Update all boards to use default_clk. --- nmigen_boards/icebreaker.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'nmigen_boards/icebreaker.py') diff --git a/nmigen_boards/icebreaker.py b/nmigen_boards/icebreaker.py index 39d82d5..a62ecdc 100644 --- a/nmigen_boards/icebreaker.py +++ b/nmigen_boards/icebreaker.py @@ -10,9 +10,10 @@ __all__ = ["ICEBreakerPlatform"] class ICEBreakerPlatform(LatticeICE40Platform): - device = "iCE40UP5K" - package = "SG48" - resources = [ + device = "iCE40UP5K" + package = "SG48" + default_clk = "clk12" + resources = [ Resource("clk12", 0, Pins("35", dir="i"), Clock(12e6), Attrs(GLOBAL="1", IO_STANDARD="SB_LVCMOS33")), @@ -85,4 +86,4 @@ if __name__ == "__main__": from ._blinky import Blinky p = ICEBreakerPlatform() p.add_resources(p.break_off_pmod) - p.build(Blinky("clk12"), do_program=True) + p.build(Blinky(), do_program=True) -- cgit v1.2.3