de0{,cv}: {Altera→Intel}Platform
authorwhitequark <whitequark@whitequark.org>
Wed, 9 Oct 2019 22:40:29 +0000 (22:40 +0000)
committerwhitequark <whitequark@whitequark.org>
Wed, 9 Oct 2019 22:40:29 +0000 (22:40 +0000)
nmigen_boards/de0.py
nmigen_boards/de0cv.py

index a172221fc7418f4f5161a1720b4ef5a64bf60119..8574230713e2fec1e1cfc55a2d8840002bdb703b 100644 (file)
@@ -2,14 +2,14 @@ import os
 import subprocess
 
 from nmigen.build import *
-from nmigen.vendor.altera import *
+from nmigen.vendor.intel import *
 from .resources import *
 
 
 __all__ = ["DE0Platform"]
 
 
-class DE0Platform(AlteraPlatform):
+class DE0Platform(IntelPlatform):
     device      = "EP3C16" # Cyclone III 15K LEs
     package     = "F484"   # FBGA-484
     speed       = "C6"
index 4b0517e5b3c7ef7709face746ef0057bfe1193b1..163ad385513095012428437606b5a3a7a842efd0 100644 (file)
@@ -2,14 +2,14 @@ import os
 import subprocess
 
 from nmigen.build import *
-from nmigen.vendor.altera import *
+from nmigen.vendor.intel import *
 from .resources import *
 
 
 __all__ = ["DE0CVPlatform"]
 
 
-class DE0CVPlatform(AlteraPlatform):
+class DE0CVPlatform(IntelPlatform):
     device      = "5CEBA4" # Cyclone V 49K LEs
     package     = "F23"    # FBGA-484
     speed       = "C7"
@@ -25,7 +25,7 @@ class DE0CVPlatform(AlteraPlatform):
                  Clock(50e6), Attrs(io_standard="3.3-V LVTTL")),
 
         *LEDResources(
-            pins="AA2 AA1 W2 Y3 N2 N1 U2 U1 L2 L1",
+            pins="AA2 AA1 W2 Y3 N2 N1 U2 U1 L2 L1", invert=True,
             attrs=Attrs(io_standard="3.3-V LVTTL")),
         *ButtonResources(
             pins="U7 W9 M7 M6", invert=True,