platforms/ulx3s: add assertion for supported devices.

This commit is contained in:
Florent Kermarrec 2020-07-17 12:04:06 +02:00
parent 851378f0a9
commit 135c387155
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ class Platform(LatticePlatform):
default_clk_period = 1e9/25e6 default_clk_period = 1e9/25e6
def __init__(self, device="LFE5U-45F", **kwargs): def __init__(self, device="LFE5U-45F", **kwargs):
assert device in ["LFE5U-25F", "LFE5U-45F", "LFE5U-85F"]
LatticePlatform.__init__(self, device + "-6BG381C", _io, **kwargs) LatticePlatform.__init__(self, device + "-6BG381C", _io, **kwargs)
def create_programmer(self): def create_programmer(self):