From: Florent Kermarrec Date: Wed, 18 Jul 2018 09:51:58 +0000 (+0200) Subject: boards/platforms/genesys2: add minimum HPC connectors to be able to test SATA, add... X-Git-Tag: 24jan2021_ls180~1669 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=10dd55fd887dd2a4d6d3a7165a86f7bf7c8673b5;p=litex.git boards/platforms/genesys2: add minimum HPC connectors to be able to test SATA, add programmer parameter --- diff --git a/litex/boards/platforms/genesys2.py b/litex/boards/platforms/genesys2.py index 0a5fdf15..f5d5a25c 100644 --- a/litex/boards/platforms/genesys2.py +++ b/litex/boards/platforms/genesys2.py @@ -89,12 +89,28 @@ _io = [ ] +_connectors = [ + ("HPC", { + "DP0_C2M_P": "Y2", + "DP0_C2M_N": "Y1", + "DP0_M2C_P": "AA4", + "DP0_M2C_N": "AA3", + "GBTCLK0_M2C_P": "L8", + "GBTCLK0_M2C_N": "L7", + } + ), +] + class Platform(XilinxPlatform): - def __init__(self): - XilinxPlatform.__init__(self, "xc7k325t-ffg900-2", _io, toolchain="vivado") + def __init__(self, programmer="vivado"): + XilinxPlatform.__init__(self, "xc7k325t-ffg900-2", _io, _connectors, toolchain="vivado") + self.programmer = programmer def create_programmer(self): - return VivadoProgrammer() + if self.programmer == "vivado": + return VivadoProgrammer() + else: + raise ValueError("{} programmer is not supported".format(programmer)) def do_finalize(self, fragment): XilinxPlatform.do_finalize(self, fragment)