From 2f20a1656da3fff6a6053bfea028caacada53575 Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 22 Aug 2019 21:32:26 +0000 Subject: [PATCH] Atlys: pass extra keyword arguments to platform. --- nmigen_boards/atlys.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nmigen_boards/atlys.py b/nmigen_boards/atlys.py index 6873129..cef0729 100644 --- a/nmigen_boards/atlys.py +++ b/nmigen_boards/atlys.py @@ -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 -- 2.30.2