From: Florent Kermarrec Date: Tue, 17 Dec 2019 08:47:12 +0000 (+0100) Subject: platforms/minispartan6: add assert on available devices X-Git-Tag: 24jan2021_ls180~800 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=76e57414c3b7a5e5c50803d6b9078c0ab46ff1aa;p=litex.git platforms/minispartan6: add assert on available devices --- diff --git a/litex/boards/platforms/minispartan6.py b/litex/boards/platforms/minispartan6.py index f8538ca2..13a4cc53 100644 --- a/litex/boards/platforms/minispartan6.py +++ b/litex/boards/platforms/minispartan6.py @@ -118,6 +118,7 @@ class Platform(XilinxPlatform): default_clk_period = 1e9/32e6 def __init__(self, device="xc6slx25"): + assert device in ["xc6slx9", "xc6slx25"] XilinxPlatform.__init__(self, device+"-3-ftg256", _io, _connectors) def create_programmer(self):