aboutsummaryrefslogtreecommitdiff
path: root/nmigen_boards/tinyfpga_bx.py
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2019-06-05 08:59:40 +0000
committerwhitequark <whitequark@whitequark.org>2019-06-05 08:59:40 +0000
commitec6316eb33412ba6abd606faae0bfd7674b4c85e (patch)
tree99ccfd2c8d89372f29d0a159573d759b6f36fece /nmigen_boards/tinyfpga_bx.py
parente8dcc1e4d361742b4242016bdff732dcfb5306f3 (diff)
Update to track changes in nmigen.
Diffstat (limited to 'nmigen_boards/tinyfpga_bx.py')
-rw-r--r--nmigen_boards/tinyfpga_bx.py15
1 files changed, 6 insertions, 9 deletions
diff --git a/nmigen_boards/tinyfpga_bx.py b/nmigen_boards/tinyfpga_bx.py
index 3d93dc8..0ad94b9 100644
--- a/nmigen_boards/tinyfpga_bx.py
+++ b/nmigen_boards/tinyfpga_bx.py
@@ -11,20 +11,17 @@ __all__ = ["TinyFPGABXPlatform"]
class TinyFPGABXPlatform(LatticeICE40Platform):
device = "iCE40LP8K"
package = "CM81"
- clocks = [
- ("clk16", 16e6),
- ]
resources = [
Resource("clk16", 0, Pins("B2", dir="i"),
- extras={"IO_STANDARD": "SB_LVCMOS33"}),
+ Clock(16e6), Attrs(IO_STANDARD="SB_LVCMOS33")),
- Resource("user_led", 0, Pins("B3", dir="o"), extras={"IO_STANDARD": "SB_LVCMOS33"}),
+ Resource("user_led", 0, Pins("B3", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS33")),
Resource("usb", 0,
Subsignal("d_p", Pins("B4", dir="io")),
Subsignal("d_n", Pins("A4", dir="io")),
Subsignal("pullup", Pins("A3", dir="o")),
- extras={"IO_STANDARD": "SB_LVCMOS33"}
+ Attrs(IO_STANDARD="SB_LVCMOS33")
),
Resource("spiflash", 0,
@@ -34,14 +31,14 @@ class TinyFPGABXPlatform(LatticeICE40Platform):
Subsignal("miso", Pins("H7", dir="i")),
Subsignal("wp", Pins("H4", dir="o")),
Subsignal("hold", Pins("J8", dir="o")),
- extras={"IO_STANDARD": "SB_LVCMOS33"}
+ Attrs(IO_STANDARD="SB_LVCMOS33")
),
Resource("spiflash4x", 0,
Subsignal("cs_n", Pins("F7", dir="o")),
Subsignal("clk", Pins("G7", dir="o")),
Subsignal("dq", Pins("G6 H7 H4 J8", dir="io")),
- extras={"IO_STANDARD": "SB_LVCMOS33"}
+ Attrs(IO_STANDARD="SB_LVCMOS33")
),
]
connectors = [
@@ -65,4 +62,4 @@ class TinyFPGABXPlatform(LatticeICE40Platform):
if __name__ == "__main__":
from ._blinky import build_and_program
- build_and_program(TinyFPGABXPlatform)
+ build_and_program(TinyFPGABXPlatform, "clk16", 16e6)