aboutsummaryrefslogtreecommitdiff
path: root/nmigen_boards/icebreaker.py
diff options
context:
space:
mode:
Diffstat (limited to 'nmigen_boards/icebreaker.py')
-rw-r--r--nmigen_boards/icebreaker.py9
1 files changed, 5 insertions, 4 deletions
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)