platforms/minispartan6: add assert on available devices
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 17 Dec 2019 08:47:12 +0000 (09:47 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 17 Dec 2019 08:47:12 +0000 (09:47 +0100)
litex/boards/platforms/minispartan6.py

index f8538ca2d9c7827b26c2d53182c67764096d07b5..13a4cc532c7c959f071444cb953de4fde6c188cd 100644 (file)
@@ -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):