Skip to content

Commit

Permalink
kx705: add programmer parameter
Browse files Browse the repository at this point in the history
enjoy-digital committed Feb 28, 2015
1 parent b53e2b0 commit eb8ba14
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions mibuild/platforms/kc705.py
Original file line number Diff line number Diff line change
@@ -378,7 +378,7 @@
)
]

def Platform(*args, toolchain="vivado", **kwargs):
def Platform(*args, toolchain="vivado", programmer="xc3sprog", **kwargs):
if toolchain == "ise":
xilinx_platform = XilinxISEPlatform
elif toolchain == "vivado":
@@ -396,7 +396,12 @@ def __init__(self, crg_factory=lambda p: CRG_DS(p, "clk156", "cpu_reset")):
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:
@@ -415,4 +420,5 @@ def do_finalize(self, fragment):
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)

0 comments on commit eb8ba14

Please sign in to comment.