From 135c38715586195b264d9b223d461801ed8e82e8 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 17 Jul 2020 12:04:06 +0200 Subject: [PATCH] platforms/ulx3s: add assertion for supported devices. --- litex_boards/platforms/ulx3s.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litex_boards/platforms/ulx3s.py b/litex_boards/platforms/ulx3s.py index ca5d1063..388ae0f5 100644 --- a/litex_boards/platforms/ulx3s.py +++ b/litex_boards/platforms/ulx3s.py @@ -108,6 +108,7 @@ class Platform(LatticePlatform): default_clk_period = 1e9/25e6 def __init__(self, device="LFE5U-45F", **kwargs): + assert device in ["LFE5U-25F", "LFE5U-45F", "LFE5U-85F"] LatticePlatform.__init__(self, device + "-6BG381C", _io, **kwargs) def create_programmer(self):