From 3ebad7f7cc3a33cefb2708218638f6fd87727f12 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 18 Mar 2022 10:44:16 +0100 Subject: [PATCH] gsd_orangecrab/butterstick: Add assert on devices. --- litex_boards/platforms/gsd_butterstick.py | 1 + litex_boards/platforms/gsd_orangecrab.py | 1 + 2 files changed, 2 insertions(+) diff --git a/litex_boards/platforms/gsd_butterstick.py b/litex_boards/platforms/gsd_butterstick.py index d801473..05e270e 100644 --- a/litex_boards/platforms/gsd_butterstick.py +++ b/litex_boards/platforms/gsd_butterstick.py @@ -188,6 +188,7 @@ class Platform(LatticePlatform): def __init__(self, revision="1.0", device="85F", toolchain="trellis", **kwargs): assert revision in ["1.0"] + assert device in ["25F", "45F", "85F"] self.revision = revision io = {"1.0": _io_r1_0}[revision] connectors = {"1.0": _connectors_r1_0}[revision] diff --git a/litex_boards/platforms/gsd_orangecrab.py b/litex_boards/platforms/gsd_orangecrab.py index d8dcc5a..1abbca8 100644 --- a/litex_boards/platforms/gsd_orangecrab.py +++ b/litex_boards/platforms/gsd_orangecrab.py @@ -222,6 +222,7 @@ class Platform(LatticePlatform): def __init__(self, revision="0.2", device="25F", toolchain="trellis", **kwargs): assert revision in ["0.1", "0.2"] + assert device in ["25F", "45F", "85F"] self.revision = revision io = {"0.1": _io_r0_1, "0.2": _io_r0_2 }[revision] connectors = {"0.1": _connectors_r0_1, "0.2": _connectors_r0_2}[revision]