Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import subprocess
- from nmigen.build import *
- from nmigen.vendor.xilinx_spartan_3_6 import *
- from nmigen_boards.resources import *
- __all__ = ["NumatoMimasV2Platform"]
- class NumatoMimasV2Platform(XilinxSpartan6Platform):
- device = "xc6slx9"
- package = "csg324"
- speed = "2"
- default_clk = "clk"
- resources = [
- Resource("clk", 0, Pins("V10", dir="i"), Clock(100e6), Attrs(IOSTANDARD="LVCMOS33")),
- *LEDResources(pins="P15 P16 N15 N16 U17 U18 T17 T18", attrs=Attrs(IOSTANDARD="LVCMOS33")),
- *ButtonResources(pins="M18 L18 M16 L17 K17 K18", attrs=Attrs(IOSTANDARD="LVCMOS33", PULLUP="TRUE")),
- *SPIFlashResources(0, cs="V3", clk="R15", mosi="T13", miso="R13", attrs=Attrs(IOSTANDARD="LVCMOS33"))
- ]
- # TODO Programming this board is not currently supported.
- def toolchain_program(self, products, name):
- pass
- if __name__ == "__main__":
- from nmigen_boards.test.blinky import *
- NumatoMimasV2Platform().build(Blinky())
Add Comment
Please, Sign In to add comment