numato_mimas: add spi_flash#0 resource.
authorwhitequark <whitequark@whitequark.org>
Wed, 18 Sep 2019 04:25:03 +0000 (04:25 +0000)
committerwhitequark <whitequark@whitequark.org>
Wed, 18 Sep 2019 04:25:36 +0000 (04:25 +0000)
nmigen_boards/numato_mimas.py

index 085a319f829a3cf019e26c5db767dfe29d85fda3..a85abc39a8d1417e46fd00d8f566b9fb8eb8677d 100644 (file)
@@ -43,6 +43,11 @@ class NumatoMimasPlatform(XilinxSpartan6Platform):
                  Attrs(IOSTANDARD="LVCMOS33", PULLUP="TRUE")),
         Resource("user_btn", 3, Pins("P120", dir="i"),
                  Attrs(IOSTANDARD="LVCMOS33", PULLUP="TRUE")),
+
+        *SPIFlashResources(0,
+            cs="P38", clk="P70", mosi="P64", miso="65",
+            attrs=Attrs(IOSTANDARD="LVCMOS33")
+        ),
     ]
     connectors  = [
         Connector("p", 1,