mibuild/platforms/minispartan6: add device parameter (board can be populated with lx9 or lx25)

This commit is contained in:
Florent Kermarrec 2015-03-21 18:28:09 +01:00
parent 1a03c340c9
commit 78b4f313bf

View file

@ -99,8 +99,8 @@ _connectors = [
class Platform(XilinxISEPlatform):
default_clk_name = "clk50"
default_clk_period = 20
def __init__(self):
XilinxISEPlatform.__init__(self, "xc6slx9-3-ftg256", _io,
def __init__(self, device="xc6slx9"):
XilinxISEPlatform.__init__(self, device+"-3-ftg256", _io,
lambda p: SimpleCRG(p, "clk50", None), _connectors)
def create_programmer(self):