)
]
-def Platform(*args, toolchain="vivado", **kwargs):
+def Platform(*args, toolchain="vivado", programmer="xc3sprog", **kwargs):
if toolchain == "ise":
xilinx_platform = XilinxISEPlatform
elif toolchain == "vivado":
xilinx_platform.__init__(self, "xc7k325t-ffg900-2", _io, crg_factory, _connectors)
def create_programmer(self):
- return XC3SProg("jtaghs1_fast", "bscan_spi_kc705.bit")
+ if programmer == "xc3sprog":
+ return XC3SProg("jtaghs1_fast", "bscan_spi_kc705.bit")
+ elif programmer == "vivado":
+ return VivadoProgrammer()
+ else:
+ raise ValueError("{} programmer is not supported".format(programmer))
def do_finalize(self, fragment):
try:
self.add_platform_command("CONFIG DCI_CASCADE = \"33 32 34\";")
else:
self.add_platform_command("set_property DCI_CASCADE {{32 34}} [get_iobanks 33]")
+
return RealPlatform(*args, **kwargs)