From c6d79ec2e8256a72ec0effb628b0a65e2b798d93 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Thu, 4 Aug 2022 08:07:55 +0200 Subject: [PATCH] xilinx: flow_program/xc95: increase delay and use getClkFreq (issue #104) --- src/xilinx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xilinx.cpp b/src/xilinx.cpp index 3cb1671..a245574 100644 --- a/src/xilinx.cpp +++ b/src/xilinx.cpp @@ -681,7 +681,7 @@ bool Xilinx::flow_program(JedParser *jed) _jtag->shiftDR(wr_buf, NULL, 8 * (_xc95_line_len + 2)); if (ii == 14) - _jtag->toggleClk(20000); + _jtag->toggleClk((_jtag->getClkFreq() * 50) / 1000); else _jtag->toggleClk(1);