Atlys: pass extra keyword arguments to platform.
authorwhitequark <whitequark@whitequark.org>
Thu, 22 Aug 2019 21:32:26 +0000 (21:32 +0000)
committerwhitequark <whitequark@whitequark.org>
Fri, 30 Aug 2019 08:43:01 +0000 (08:43 +0000)
nmigen_boards/atlys.py

index 687312983976d1324f258fbffcf2bc9f71595cb7..cef0729f5a8e16edd1948ea0cc7e62158b2f5204 100644 (file)
@@ -17,9 +17,9 @@ class AtlysPlatform(XilinxSpartan6Platform):
     package    = "csg324"
     speed      = "3"
 
-    def __init__(self, JP12="2V5"):
-        super().__init__()
-        
+    def __init__(self, *, JP12="2V5", **kwargs):
+        super().__init__(**kwargs)
+
         assert JP12 in ["2V5", "3V3"]
         self._JP12 = JP12