aboutsummaryrefslogtreecommitdiff
path: root/nmigen_boards/ice40_hx8k_b_evn.py
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2019-08-03 16:19:03 +0000
committerwhitequark <whitequark@whitequark.org>2019-08-03 16:20:16 +0000
commitd5bea94b228b956cfd119af9415fbb0e3abc53ac (patch)
treec39b98fa6809d889d419638dce691b1eb0f45c13 /nmigen_boards/ice40_hx8k_b_evn.py
parentbc2d42e451d7b866f0a28c1c3888a8b54ed219d2 (diff)
Update all boards to use default_clk.
Diffstat (limited to 'nmigen_boards/ice40_hx8k_b_evn.py')
-rw-r--r--nmigen_boards/ice40_hx8k_b_evn.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/nmigen_boards/ice40_hx8k_b_evn.py b/nmigen_boards/ice40_hx8k_b_evn.py
index 4ff8d85..39b478d 100644
--- a/nmigen_boards/ice40_hx8k_b_evn.py
+++ b/nmigen_boards/ice40_hx8k_b_evn.py
@@ -10,9 +10,10 @@ __all__ = ["ICE40HX8KBEVNPlatform"]
class ICE40HX8KBEVNPlatform(LatticeICE40Platform):
- device = "iCE40HX8K"
- package = "CT256"
- resources = [
+ device = "iCE40HX8K"
+ package = "CT256"
+ default_clk = "clk12"
+ resources = [
Resource("clk12", 0, Pins("J3", dir="i"),
Clock(12e6), Attrs(GLOBAL="1", IO_STANDARD="SB_LVCMOS33")),
@@ -35,7 +36,7 @@ class ICE40HX8KBEVNPlatform(LatticeICE40Platform):
attrs=Attrs(IO_STANDARD="SB_LVCMOS33")
),
]
- connectors = [
+ connectors = [
Connector("j", 1, # J1
"A16 - A15 B15 B13 B14 - - B12 B11"
"A11 B10 A10 C9 - - A9 B9 B8 A7"
@@ -67,4 +68,4 @@ class ICE40HX8KBEVNPlatform(LatticeICE40Platform):
if __name__ == "__main__":
from ._blinky import build_and_program
- build_and_program(ICE40HX8KBEVNPlatform, "clk12")
+ build_and_program(ICE40HX8KBEVNPlatform)