diff options
| author | whitequark <whitequark@whitequark.org> | 2019-08-03 16:19:03 +0000 |
|---|---|---|
| committer | whitequark <whitequark@whitequark.org> | 2019-08-03 16:20:16 +0000 |
| commit | d5bea94b228b956cfd119af9415fbb0e3abc53ac (patch) | |
| tree | c39b98fa6809d889d419638dce691b1eb0f45c13 /nmigen_boards/blackice.py | |
| parent | bc2d42e451d7b866f0a28c1c3888a8b54ed219d2 (diff) | |
Update all boards to use default_clk.
Diffstat (limited to 'nmigen_boards/blackice.py')
| -rw-r--r-- | nmigen_boards/blackice.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/nmigen_boards/blackice.py b/nmigen_boards/blackice.py index 591f74d..2ec16a1 100644 --- a/nmigen_boards/blackice.py +++ b/nmigen_boards/blackice.py @@ -10,9 +10,10 @@ __all__ = ["BlackIcePlatform"] class BlackIcePlatform(LatticeICE40Platform): - device = "iCE40HX4K" - package = "TQ144" - resources = [ + device = "iCE40HX4K" + package = "TQ144" + default_clk = "clk100" + resources = [ Resource("clk100", 0, Pins("129", dir="i"), Clock(100e6), Attrs(GLOBAL="1", IO_STANDARD="SB_LVCMOS33") ), @@ -55,8 +56,7 @@ class BlackIcePlatform(LatticeICE40Platform): Attrs(IO_STANDARD="SB_LVCMOS33"), ), ] - - connectors = [ + connectors = [ Connector("pmod", 0, " 94 91 88 85 - - 95 93 90 87 - -"), # PMOD1/2 Connector("pmod", 1, "105 102 99 97 - - 104 101 98 96 - -"), # PMOD3/4 Connector("pmod", 2, "143 114 112 107 - - 144 113 110 106 - -"), # PMOD5/6 @@ -73,6 +73,5 @@ class BlackIcePlatform(LatticeICE40Platform): if __name__ == "__main__": - from ._blinky import Blinky - p = BlackIcePlatform() - p.build(Blinky("clk100"), do_program=True) + from ._blinky import build_and_program + build_and_program(BlackIcePlatform) |
